Skip to main content

run_collect

Function run_collect 

Source
pub async fn run_collect(
    __arg0: State<RuntimeController>,
    headers: HeaderMap,
    __arg2: Json<RunSseRequest>,
) -> Result<Json<Vec<Event>>, (StatusCode, String)>
Expand description

POST /run - plain-JSON, non-streaming endpoint (Google ADK api_server parity)

Accepts the same JSON body as POST /run_sse, runs the agent to completion, and returns every produced event as a JSON array instead of an SSE stream. The streaming body field is ignored — the run always uses StreamingMode::None.