Crafting Effective Examples
- Provide Task Demonstrations: Use examples that clearly illustrate the tasks that your agents will perform.
- Use Realistic Scenarios: Include interactions that mirror actual conversations that your agent will handle.
- Use Preferred Tone and Style: Ensure the agent’s replies in your examples match your desired brand voice.
Defining Few-Shot Examples
In the Agency Swarm framework, few-shot examples are structured using the OpenAI message object format, including therole
and content
fields.
Example: Technical Support Agent:
attachments
and metadata
can be included if needed but are not required for basic examples.