Package-level declarations

Types

Link copied to clipboard
data class AgentClosingContext(val agentId: String) : AgentEventContext

Represents the context passed to the handler that is executed before an agent is closed.

Link copied to clipboard
fun interface AgentClosingHandler

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

Link copied to clipboard
data class AgentCompletedContext(val agentId: String, val runId: String, val result: Any?) : AgentEventContext

Represents the context for handling the completion of an agent's execution.

Link copied to clipboard
fun interface AgentCompletedHandler

Functional interface for handling the completion of an agent's operation. This handler is executed when an agent has finished its work, and it provides the name of the strategy that was executed along with an optional result.

Link copied to clipboard

Handler for creating a feature instance in a stage context.

Link copied to clipboard
class AgentCreateContext<FeatureT>(val strategy: AIAgentGraphStrategy<*, *>, val agent: GraphAIAgent<*, *>, val feature: FeatureT)

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

Link copied to clipboard

Provides a context for executing transformations and operations within an AI agent's environment.

Link copied to clipboard

Handler for transforming an instance of AgentEnvironment.

Link copied to clipboard

Provides the context for handling events specific to AI agents. This interface extends the foundational event handling context, EventHandlerContext, and is specialized for scenarios involving agents and their associated workflows or features.

Link copied to clipboard
class AgentEventHandler<TFeature : Any>(val feature: TFeature)

Feature implementation for agent and strategy interception.

Link copied to clipboard
data class AgentExecutionFailedContext(val agentId: String, val runId: String, val throwable: Throwable) : AgentEventContext

Represents the context for handling errors that occur during the execution of an agent run.

Link copied to clipboard

Functional interface for handling errors that occur during the execution of an agent run.

Link copied to clipboard
data class AgentStartingContext<TFeature>(val agent: AIAgent<*, *>, val runId: String, val feature: TFeature, val context: AIAgentContext) : AgentEventContext

Represents the context available during the start of an AI agent.

Link copied to clipboard

Functional interface to define a handler that is invoked before an agent starts. This handler allows custom pre-start logic to be executed with access to the provided agent start context and associated feature.