DummyAIAgentContext

@TestOnly
class DummyAIAgentContext(builder: AIAgentContextMockBuilder, val agentId: String = "DummyAgentId") : AIAgentGraphContextBase(source)

A mock implementation of the AIAgentContext interface, used for testing purposes.

Parameters

builder

A builder object used to initialize the mock properties of the context.

Constructors

Link copied to clipboard
constructor(builder: AIAgentContextMockBuilder, agentId: String = "DummyAgentId")

Creates a new instance of DummyAIAgentContext using a predefined AIAgentContextMockBuilder.

Properties

Link copied to clipboard
open override val agentId: String
Link copied to clipboard
open override val agentInput: Any
Link copied to clipboard
open override val agentInputType: KType
Link copied to clipboard
open override val config: AIAgentConfig
Link copied to clipboard
open override val environment: AIAgentEnvironment
Link copied to clipboard

Indicates whether the environment for the agent context is defined.

Link copied to clipboard

Indicates whether a Language Learning Model (LLM) is defined in the current context.

Link copied to clipboard
open override val llm: AIAgentLLMContext
Link copied to clipboard
open override val parentContext: AIAgentGraphContextBase? = null
Link copied to clipboard
open override val pipeline: AIAgentGraphPipeline
Link copied to clipboard
open override val runId: String
Link copied to clipboard
Link copied to clipboard
open override val storage: AIAgentStorage
Link copied to clipboard
open override val strategyName: String

Functions

Link copied to clipboard
open override fun copy(environment: AIAgentEnvironment, agentId: String, agentInput: Any?, agentInputType: KType, config: AIAgentConfig, llm: AIAgentLLMContext, stateManager: AIAgentStateManager, storage: AIAgentStorage, runId: String, strategyName: String, pipeline: AIAgentGraphPipeline): AIAgentGraphContextBase

Creates a new instance of AIAgentContextBase with the specified parameters, copying the properties from the current instance with the provided updates.

Link copied to clipboard
open suspend override fun fork(): AIAgentGraphContextBase
Link copied to clipboard
open override fun <T> get(key: AIAgentStorageKey<*>): T
Link copied to clipboard
open suspend override fun getHistory(): List<Message>
Link copied to clipboard
open override fun remove(key: AIAgentStorageKey<*>): Boolean
Link copied to clipboard
open suspend override fun replace(context: AIAgentContext)
Link copied to clipboard
open override fun store(key: AIAgentStorageKey<*>, value: Any)