BaseAsyncLlmAgent
open class BaseAsyncLlmAgent(val broker: LlmBroker, val model: String, var behaviour: String = "You are a helpful assistant.", tools: List<LlmTool> = emptyList(), val config: CompletionConfig = CompletionConfig()) : Agent
LLM-backed agent. Subclasses override receiveEvent to map incoming events to prompts and feed the LLM response back into the event stream.
Mirrors the Python reference's BaseAsyncLLMAgent. The Kotlin port keeps the tool list mutable so subclasses can register tools after construction.
Inheritors
Functions
Link copied to clipboard
Run a single LLM turn with content appended as a user message. Returns the full LlmGatewayResponse so subclasses can inspect content, tool calls, and structured output.
Link copied to clipboard
Default implementation does nothing — override to emit follow-up events.