AIAgentLLMContext

expect constructor(tools: List<ToolDescriptor>, toolRegistry: ToolRegistry = ToolRegistry.EMPTY, prompt: Prompt, model: LLModel, responseProcessor: ResponseProcessor?, promptExecutor: PromptExecutor, environment: AIAgentEnvironment, config: AIAgentConfig, clock: Clock)(source)

Parameters

tools

A list of tools described by ToolDescriptor that the agent can interact with.

toolRegistry

A registry of available tools, defaulting to an empty ToolRegistry.

prompt

The initial prompt used in the context, represented by a Prompt instance.

model

The language model used for processing prompts and generating responses.

responseProcessor

An optional ResponseProcessor for handling and processing model responses.

promptExecutor

Responsible for executing the logic for prompt processing in the context.

environment

The operational environment of the AI agent, represented by an AIAgentEnvironment.

config

Configuration settings for the AI agent, encapsulated in an AIAgentConfig.

clock

A clock instance for managing time-related operations within the context.

actual constructor(tools: List<ERROR CLASS: Symbol not found for ToolDescriptor>, toolRegistry: ERROR CLASS: Symbol not found for ToolRegistry, prompt: ERROR CLASS: Symbol not found for Prompt, model: ERROR CLASS: Symbol not found for LLModel, responseProcessor: ERROR CLASS: Symbol not found for ResponseProcessor??, promptExecutor: ERROR CLASS: Symbol not found for PromptExecutor, environment: AIAgentEnvironment, config: AIAgentConfig, clock: ERROR CLASS: Symbol not found for Clock)(source)
actual constructor(tools: List<ToolDescriptor>, toolRegistry: ToolRegistry, prompt: Prompt, model: LLModel, responseProcessor: ResponseProcessor?, promptExecutor: PromptExecutor, environment: AIAgentEnvironment, config: AIAgentConfig, clock: Clock)(source)

Parameters

tools

A list of tools described by ToolDescriptor that the agent can interact with.

toolRegistry

A registry of available tools, defaulting to an empty ToolRegistry.

prompt

The initial prompt used in the context, represented by a Prompt instance.

model

The language model used for processing prompts and generating responses.

responseProcessor

An optional ResponseProcessor for handling and processing model responses.

promptExecutor

Responsible for executing the logic for prompt processing in the context.

environment

The operational environment of the AI agent, represented by an AIAgentEnvironment.

config

Configuration settings for the AI agent, encapsulated in an AIAgentConfig.

clock

A clock instance for managing time-related operations within the context.