Module agents

Module agents 

Source
Expand description

Agent builders, the agent trait, and the operator/pattern combinators.

Note: the L1 gemini_adk_rs::agent::Agent trait is re-exported here as AgentTrait to avoid colliding with the L2 Agent (the AgentBuilder) builder alias.

Re-exports§

pub use crate::builder::*;
pub use crate::operators::*;
pub use crate::patterns::*;

Modules§

orchestration
Agent orchestration — invoke an agent in a Mode.

Structs§

AgentSession
Intercepting wrapper around a SessionWriter.
NoOpSessionWriter
A SessionWriter that discards all writes. Used for isolated agent execution (AgentTool) where no real WebSocket exists.
Resolver
A named async value source whose inputs come from State and whose result lands back in State under {name}:result (or {name}:error).

Enums§

AgentMode
How an agent is invoked.
InputEvent
Input events broadcast to input-streaming tools. Distinct from SessionCommand — this is observation-only.

Traits§

AgentTrait
The fundamental agent trait. Everything that can process a live session implements this — LLM agents, function agents, pipelines, routers.

Functions§

call_agent
Invoke agent synchronously: run it to completion, write its result to {name}:result (or its error to {name}:error), and return the result.
provenance
The provenance source of a value at key (e.g. "agent", "fetch", "llm", or "extraction"), if one was recorded under state_meta:{key}.