Skip to main content

Module agent_engine

Module agent_engine 

Source
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 with Content-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§

AddSessionToMemoryInput
Input for async_add_session_to_memory.
AgentEngineOptions
Options for serve_agent_engine and build_agent_engine_app.
AgentEngineState
Shared state for the Agent Engine dispatch handlers.
AgentRunRequest
The ADK AgentRunRequest carried inside StreamingAgentRunWithEventsInput::request_json.
CreateSessionInput
Input for create_session / async_create_session.
DeleteSessionInput
Input for delete_session / async_delete_session.
DispatchRequest
A dispatch request as delivered by the Agent Engine host to the container.
GetSessionInput
Input for get_session / async_get_session.
ListSessionsInput
Input for list_sessions / async_list_sessions.
SearchMemoryInput
Input for async_search_memory.
StreamQueryInput
Input for stream_query / async_stream_query.
StreamingAgentRunWithEventsInput
Input for streaming_agent_run_with_events.

Enums§

ApiMode
The platform API mode an operation is registered under.
ClassMethod
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 /health liveness route.
serve_agent_engine
Serves an agent as a complete Agent Engine container.