Hacer la edge function que te dé sugerencias #7

Closed
opened 2026-01-27 22:23:04 +00:00 by alexrg · 1 comment
Owner

PSEUDOCÓDIGO

function sugerir-mejora-plan(plan_id, [campos...], prompt) {
    estructura = supabase.get('estructura').from('plan').using('plan_id')
    conversation_id = supabase.eq('id', plan_id).select('conversation_id')
    estructura_limpia = filtrar(estructura, campos)

    estructura_limpia.append({mensaje_casual_de_la_ia})
    
    responses.create(prompt, tools=get_plan, conversation_id, estructura_limpia)
}
# PSEUDOCÓDIGO ```js function sugerir-mejora-plan(plan_id, [campos...], prompt) { estructura = supabase.get('estructura').from('plan').using('plan_id') conversation_id = supabase.eq('id', plan_id).select('conversation_id') estructura_limpia = filtrar(estructura, campos) estructura_limpia.append({mensaje_casual_de_la_ia}) responses.create(prompt, tools=get_plan, conversation_id, estructura_limpia) } ```
Guillermo.Arrieta was assigned by alexrg 2026-01-27 22:23:05 +00:00
Guillermo.Arrieta removed their assignment 2026-02-16 20:59:50 +00:00
alexrg was assigned by Guillermo.Arrieta 2026-02-16 20:59:50 +00:00
Collaborator

Se creó la función de create-chat-conversation

Se creó la función de create-chat-conversation
Sign in to join this conversation.