Architecture Overview
Who this is for: developers and architects evaluating runtime design.
Areas
- Host and orchestration.
- Agent runtime.
- Programmatic workflow orchestration.
- Decision loop.
- Model drivers.
- Conversation model.
- Tools and skills.
- Tracing and evaluation.
Current architecture notes
The runtime now supports two parent orchestration styles:
- model-driven routing through
AgentDecisionvalues such ascall_subagentandcall_subagents - deterministic programmatic routing through
Agent.execute_programmatic_workflow(...)
The second path is intentionally agent-owned rather than host-owned. A behavior can short-circuit from before_run(...), but the workflow runner still delegates child execution through the same parent-side subagent orchestration internals used by model-driven decisions. That preserves parent transcript, audit, hook, and callback behavior instead of requiring custom trace emulation in application code.
The evaluator also supports run-scoped model overrides for the agent under test. That split is implemented in the runtime layers that already own model resolution:
root_onlyoverrides only the top-level tested agent atAgentHost.run_agent(...)timeall_agentsoverrides every agent loaded for that run atAgentRegistryload time
This is deliberate. The evaluator UI and CLI only pass the selected model and scope through; they do not implement a separate model-resolution system. That keeps evaluator runs aligned with the same host/registry semantics used elsewhere in the framework.