Expand description
Agent Engine dispatch surface for the Gemini Enterprise Agent Platform.
Makes an adk-rust agent in a BYOC container drivable by
reasoningEngines.query, reasoningEngines.streamQuery, the console
Playground, and the platform SDKs. The host POSTs a
DispatchRequest envelope naming a ClassMethod; this module routes
it to the session service, memory service, or Runner.
POST /api/reasoning_engine— unary operations, responding{"output": ...}.POST /api/stream_reasoning_engine— streaming operations, responding newline-delimited JSON events withContent-Type: application/json(no SSE framing).
§Example
use adk_server::agent_engine::{AgentEngineState, agent_engine_router};
use adk_runner::Runner;
use std::sync::Arc;
let state = AgentEngineState::new(runner);
agent_engine_router(state)Modules§
- remote
- Remote ReasoningEngine invocation — call other deployed Agent Engine agents as sub-agents.
Structs§
- AddSession
ToMemory Input - Input for
async_add_session_to_memory. - Agent
Engine Options - Options for
serve_agent_engineandbuild_agent_engine_app. - Agent
Engine State - Shared state for the Agent Engine dispatch handlers.
- Agent
RunRequest - The ADK
AgentRunRequestcarried insideStreamingAgentRunWithEventsInput::request_json. - Create
Session Input - Input for
create_session/async_create_session. - Delete
Session Input - Input for
delete_session/async_delete_session. - Dispatch
Request - A dispatch request as delivered by the Agent Engine host to the container.
- GetSession
Input - Input for
get_session/async_get_session. - List
Sessions Input - Input for
list_sessions/async_list_sessions. - Search
Memory Input - Input for
async_search_memory. - Stream
Query Input - Input for
stream_query/async_stream_query. - Streaming
Agent RunWith Events Input - Input for
streaming_agent_run_with_events.
Enums§
- ApiMode
- The platform API mode an operation is registered under.
- Class
Method - One dispatchable operation of the Agent Engine contract.
Functions§
- agent_
engine_ router - Builds the Agent Engine dispatch router.
- build_
agent_ engine_ app - Builds the complete Agent Engine app for an agent: the dispatch router
plus a
GET /healthliveness route. - serve_
agent_ engine - Serves an agent as a complete Agent Engine container.