DummyAIAgentContext

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

A mock implementation of the AIAgentContextBase 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, id: String = "DummyAgentId")

Creates a new instance of DummyAIAgentContext using a predefined AIAgentContextMockBuilder.

Properties

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: AIAgentConfigBase
Link copied to clipboard
open override val environment: AIAgentEnvironment
Link copied to clipboard
open override val id: String
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 pipeline: AIAgentPipeline
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, agentInput: Any?, agentInputType: KType, config: AIAgentConfigBase, llm: AIAgentLLMContext, stateManager: AIAgentStateManager, storage: AIAgentStorage, runId: String, strategyId: String, pipeline: AIAgentPipeline): AIAgentContextBase
Link copied to clipboard
Link copied to clipboard
open override fun <Feature : Any> feature(key: AIAgentStorageKey<Feature>): Feature?
open override fun <Feature : Any> feature(feature: AIAgentFeature<*, Feature>): Feature?
Link copied to clipboard
Link copied to clipboard
open suspend override fun fork(): AIAgentContextBase
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: AIAgentContextBase)
Link copied to clipboard
open override fun store(key: AIAgentStorageKey<*>, value: Any)