Skip to main content

Crate gadk_engine

Crate gadk_engine 

Source
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::new per application rather than by re-implementing its checks.
error
Workflow errors: the sentinel kinds, WorkflowError and the dynamic child failure NodeRunError.
llm
The LLM agent and its flow.
plugin
Built-in plugins.
runner
The runner (context compaction is in compaction, live mode is in live): Runner, RunnerConfig, PluginConfig, RunOptions.
telemetry
The engine’s ADK telemetry as tracing spans and events: the spans (invoke_workflow, invoke_node, generate_content, execute_tool, compact_events; agents’ own invoke_agent spans come from gadk-agent) and the OTel log records. No OpenTelemetry: the static span name is the operation and otel.name the full span name; every other field is an OTel attribute (structured values per converters). All spans are INFO. A tracing span records only the fields it declares, so each constructor declares every attribute that may be set on it later as Empty, plus otel.status_code and error.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.