run

expect abstract suspend fun run(agentInput: Input, sessionId: String? = null): Output(source)

Executes the AI agent with the given input and retrieves the resulting output.

Return

The output produced by the agent.

Parameters

agentInput

The input for the agent.

actual abstract suspend fun run(agentInput: Input, sessionId: String?): Output(source)
actual abstract suspend fun run(agentInput: Input, sessionId: String?): Output(source)