Start
Quickstart
Build a two-specialist team in a few lines.
Declare specialists on a root Agent via sub_agents, then call .build(). Each specialist needs an orchestrator-facing description and its own system_prompt.
python
from langchain_core.tools import tool
from convax_adk import Agent, resolve_model
@tool
def get_flight_status(flight_number: str) -> str:
"""Look up airline flight status by flight number."""
return f"Flight {flight_number}: on time"
model = resolve_model()
root = Agent(
name="travel_desk",
description="Routes travel specialists.",
system_prompt="You coordinate travel_expert and weather_expert.",
model=model,
sub_agents=[
Agent(
name="travel_expert",
description="Handle ALL flight status questions.",
system_prompt="Always call get_flight_status. Reply in one sentence.",
tools=[get_flight_status],
),
Agent(
name="weather_expert",
description="Handle ALL weather questions.",
system_prompt="Answer weather questions briefly.",
),
],
)
app = root.build(thread_id="1")
# Equivalent: AgentTeam.from_root(root).build(thread_id="1")
print(app.chat("Is UA422 on time?"))Optional: set the orchestrator instructions on the root system_prompt or via team.set_orchestrator_prompt(...) before build().
What each Agent accepts
| Field | Role |
|---|---|
description | What the orchestrator sees when choosing who to call |
system_prompt | The specialist's own instructions |
tools | Optional leaf tools for that specialist |
sub_agents | Nested specialists (compiled as an inner tools-mode team) |
model | Optional per-agent override |
planner / reasoning | Thinking config |
skills | Path this agent uses for SKILL.md folders |
return_to_parent | Agents mode only |
For fuller apps that exercise skills, planners, and coding tools, see Examples & evals.