AgentCreateContext

class AgentCreateContext<FeatureT>(val strategy: AIAgentStrategy<*, *>, val agent: AIAgent<*, *>, val feature: FeatureT)(source)

Functional interface for handling logic that needs to be executed before an agent is closed.

Parameters

FeatureT

The type of the feature associated with the context.

Constructors

Link copied to clipboard
constructor(strategy: AIAgentStrategy<*, *>, agent: AIAgent<*, *>, feature: FeatureT)

Properties

Link copied to clipboard
val agent: AIAgent<*, *>

The AI agent being managed or operated upon in the context.

Link copied to clipboard

An additional feature or configuration associated with the context.

Link copied to clipboard

The AI agent strategy that defines the workflow and execution logic for the AI agent.

Functions

Link copied to clipboard
suspend fun readStrategy(block: suspend (AIAgentStrategy<*, *>) -> Unit)

Executes a given block of code with the AIAgentStrategy instance of this context.