runBlocking

fun runBlocking(agentInput: Input, sessionId: String? = null): Output(source)

Executes the AI agent task based on the provided input.

Return

The output resulting from the execution of the AI agent with the given input.

Parameters

agentInput

The input data required for the AI agent to perform its task.

sessionId

An optional session ID for the agent run.