Build
Reasoning
BuiltInPlanner, PlanReActPlanner, and reasoning sugar.
Configure how hard each agent thinks. The API shape mirrors a planner= argument; the portable knob is LangChain reasoning_effort.
| Option | When |
|---|---|
BuiltInPlanner + ThinkingConfig | Models with native reasoning |
reasoning="high" | Sugar for BuiltInPlanner |
PlanReActPlanner | Any model — prompt tags, no native thinking required |
Priority: per-agent planner → per-agent reasoning → settings (orchestrator uses orchestrator_planner / orchestrator_reasoning). If both planner and reasoning are set, planner wins.
python
from convax_adk import (
AdkSettings,
Agent,
BuiltInPlanner,
ThinkingConfig,
resolve_model,
)
settings = AdkSettings()
settings.reasoning = "low"
settings.orchestrator_reasoning = "minimal"
coder = Agent(
name="coder",
description="Implements non-trivial code changes.",
system_prompt="Implement carefully; verify with tests.",
planner=BuiltInPlanner(
thinking_config=ThinkingConfig(reasoning_effort="high")
),
)
triage = Agent(
name="triage",
description="Classifies simple requests.",
system_prompt="Route or answer briefly.",
reasoning="low",
)
root = Agent(
name="desk",
description="Routes specialists.",
system_prompt="Coordinate coder and triage.",
model=resolve_model(),
sub_agents=[coder, triage],
)
app = root.build(settings=settings)Effort values commonly supported: none, minimal, low, medium, high (plus provider-specific levels when available).
Capability-filtered extras
thinking_budget, include_thoughts, thinking, and extra bind only if the concrete model declares them.
PlanReActPlanner
Extends the system prompt with /*PLANNING*/ → /*ACTION*/ → /*REASONING*/ → /*FINAL_ANSWER*/.