Package-level declarations

Types

Link copied to clipboard
class AgentContextData(messageHistory: List<Message>, nodeId: String, lastInput: JsonElement)
Link copied to clipboard
class AIAgentContext(val environment: AIAgentEnvironment, val agentInputType: KType, val agentInput: Any?, val config: AIAgentConfigBase, llm: AIAgentLLMContext, stateManager: AIAgentStateManager, storage: AIAgentStorage, val runId: String, val strategyName: String, val pipeline: AIAgentPipeline, val id: String) : AIAgentContextBase

Implements the AIAgentContext interface, providing the context required for an AI agent's execution. This class encapsulates configurations, the execution pipeline, agent environment, and tools for handling agent lifecycles and interactions.

Link copied to clipboard

The AIAgentContextBase interface represents the context of an AI agent in the lifecycle. It provides access to the environment, configuration, LLM context, state management, storage, and other metadata necessary for the operation of the agent. Additionally, it supports features for custom workflows and extensibility.

Link copied to clipboard
class AIAgentLLMContext(tools: List<ToolDescriptor>, val toolRegistry: ToolRegistry = ToolRegistry.Companion.EMPTY, prompt: Prompt, model: LLModel, val promptExecutor: PromptExecutor, environment: AIAgentEnvironment, config: AIAgentConfigBase, clock: Clock)

Represents the context for an AI agent LLM, managing tools, prompt handling, and interaction with the environment and execution layers. It provides mechanisms for concurrent read and write operations through sessions, ensuring thread safety.

Link copied to clipboard
annotation class DetachedPromptExecutorAPI

Annotation for marking APIs as detached prompt executors within the AIAgentLLMContext.

Properties

Link copied to clipboard

A storage key utilized for associating and retrieving AgentContextData within the AI agent's storage system.

Functions

Link copied to clipboard

Utility function to get AIAgentContextBase.agentInput and try to cast it to some expected type.

Link copied to clipboard

Retrieves the agent-specific context data associated with the current instance.

Link copied to clipboard

Removes the agent-specific context data associated with the current context.

Link copied to clipboard

Stores the given agent context data within the current AI agent context.