AgentHandler

class AgentHandler<TFeature : Any>(val feature: TFeature)(source)

Feature implementation for agent and strategy interception.

Parameters

TFeature

The type of feature

Constructors

Link copied to clipboard
constructor(feature: TFeature)

Properties

Link copied to clipboard

A handler that is triggered before an agent is closed.

Link copied to clipboard

Defines a handler invoked when an agent execution is completed. This handler processes the outcome of the agent's operation, allowing for custom behavior upon completion.

Link copied to clipboard

A handler invoked when an error occurs during an agent's execution. This handler allows custom logic to be executed in response to execution errors.

Link copied to clipboard

A handler invoked before an agent is started. This can be used to perform custom logic such as initialization or validation before the agent begins execution.

Link copied to clipboard

Configurable transformer used to manipulate or modify an instance of AgentEnvironment. Allows customization of the environment during agent creation or updates by applying the provided transformation logic.

Link copied to clipboard

The feature instance

Functions

Link copied to clipboard

Handles the logic to be executed before an agent starts.

Link copied to clipboard

Handles preliminary processes required before an agent is started, using an unsafe context cast.

Link copied to clipboard

Transforms the provided AgentEnvironment using the configured environment transformer.