Expand description
gadk-engine: the LLM agent and flow, workflow engine, workflow agents, runner and built-in tools.
Dropping a runner stream early unwinds rather than aborts: started work (tool calls, parallel
branches, workflow nodes) finishes before the after-run callbacks — see runner::Runner::run.
Re-exports§
pub use agents::loop_agent;pub use agents::parallel_agent;pub use agents::sequential_agent;pub use agents::workflow_agent;pub use llm::agent as llm_agent;pub use runner::RunOptions;pub use runner::Runner;pub use runner::RunnerConfig;pub use error::*;
Modules§
- agents
- Workflow-backed agents: the workflow agent and the sequential, parallel and loop agents.
- compactionvalidate
- Whether a compaction config can serve the applications behind a serving surface (the REST
server, the trigger controllers), checked by a dry run of
Runner::newper application rather than by re-implementing its checks. - error
- Workflow errors: the sentinel kinds,
WorkflowErrorand the dynamic child failureNodeRunError. - llm
- The LLM agent and its flow.
- plugin
- Built-in plugins.
- runner
- The runner (context compaction is in
compaction, live mode is inlive):Runner,RunnerConfig,PluginConfig,RunOptions. - telemetry
- The engine’s ADK telemetry as
tracingspans and events: the spans (invoke_workflow,invoke_node,generate_content,execute_tool,compact_events; agents’ owninvoke_agentspans come from gadk-agent) and the OTel log records. No OpenTelemetry: the static span name is the operation andotel.namethe full span name; every other field is an OTel attribute (structured values perconverters). All spans areINFO. Atracingspan records only the fields it declares, so each constructor declares every attribute that may be set on it later asEmpty, plusotel.status_codeanderror.message(the span status and its description). - tool
- Built-in tools: function, streaming function, agent and exit-loop tools, and the task tools.
- workflow
- The workflow graph engine.