Patrones
Patrón: Referenciar recursos en el prompt
Menciones @ y {llaves} para señalar variables, acciones y subagentes.
Fuente: patterns/ascript-patterns-resource-references.md
reasoning: instructions: -> | Refer to the user by preferred name {!@variables.preferred_name}. Output a summary to the user in the following format: Order Name: {!@variables.order_name} Order Date: {!@variables.order_date} Order Status: {!@variables.order_status}
reasoning: instructions: -> | If the user wants information about a past order, ask for the Order ID or Restaurant Name and use {!@actions.lookup_order}. If the user asks for a service agent or seems upset, go to {!@actions.go_to_escalation}.
Temas relacionados