javaNonSuspendRun

fun javaNonSuspendRun(agentInput: Input, sessionId: String? = null, executorService: ERROR CLASS: Symbol not found for ExecutorService?? = null): Output(source)

Executes the AI agent task based on the provided input and an optional executor service.

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.

executorService

An optional ExecutorService to provide a coroutine context for execution. If not provided, the default coroutine context is used.