surf-spot-finder / examples /multi_agent.yaml
Nathan Brake
Make location/framework/date/distance be inputs rather than config controlled by default (#55)
ba24588 unverified
raw
history blame
1.35 kB
main_agent:
name: main_agent
model_id: # optional, will prompt for it if not provided
instructions: >
# System context\n
You are part of a multi-agent system, designed to make agent coordination and execution easy.
Agents uses two primary abstraction: **Agents** and **Handoffs**.
An agent encompasses instructions and tools and can hand off a conversation to another agent when appropriate.
Handoffs are achieved by calling a handoff function, generally named `transfer_to_<agent_name>`.
Transfers between agents are handled seamlessly in the background; do not mention or draw attention to these transfers in your conversation with the user.\n
managed_agents:
- name: user-verification-agent
model_id: # optional, will prompt for it if not provided
instructions: Ask users to verify a step, plan or answer.
tools:
- any_agent.tools.ask_user_verification
- name: general-web-search-agent
model_id: # optional, will prompt for it if not provided
instructions: Search the web and visit webpages to find answers.
tools:
- any_agent.tools.search_web
- any_agent.tools.visit_webpage
- name: user-communication-agent
model_id: # optional, will prompt for it if not provided
instructions: Communicates to the user
tools:
- any_agent.tools.show_final_output