Package-level declarations

Types

Link copied to clipboard
data class AfterLLMCallEvent(val runId: String, val prompt: Prompt, val model: String, val responses: List<Message.Response>, val moderationResponse: ModerationResult? = null, val eventId: String = AfterLLMCallEvent::class.simpleName!!) : DefinedFeatureEvent

Represents an event signaling the completion of an LLM (Large Language Model) call.

Link copied to clipboard
data class AIAgentBeforeCloseEvent(val agentId: String, val eventId: String = AIAgentBeforeCloseEvent::class.simpleName!!) : DefinedFeatureEvent

Represents an event that signifies the closure or termination of an AI agent identified by a unique agentId.

Link copied to clipboard

Represents an error encountered by an AI agent, encapsulating error details such as the message, stack trace, and an optional cause.

Link copied to clipboard
data class AIAgentFinishedEvent(val agentId: String, val runId: String, val result: String?, val eventId: String = AIAgentFinishedEvent::class.simpleName!!) : DefinedFeatureEvent

Event representing the completion of an AI Agent's execution.

Link copied to clipboard
data class AIAgentNodeExecutionEndEvent(val runId: String, val nodeName: String, val input: String, val output: String, val eventId: String = AIAgentNodeExecutionEndEvent::class.simpleName!!) : DefinedFeatureEvent

Represents an event indicating the completion of a node's execution within an AI agent.

Link copied to clipboard
data class AIAgentNodeExecutionStartEvent(val runId: String, val nodeName: String, val input: String, val eventId: String = AIAgentNodeExecutionStartEvent::class.simpleName!!) : DefinedFeatureEvent

Represents an event triggered when the execution of a specific AI agent node starts.

Link copied to clipboard
data class AIAgentRunErrorEvent(val agentId: String, val runId: String, val error: AIAgentError, val eventId: String = AIAgentRunErrorEvent::class.simpleName!!) : DefinedFeatureEvent

Represents an event triggered when an AI agent run encounters an error.

Link copied to clipboard
data class AIAgentStartedEvent(val agentId: String, val runId: String, val strategyName: String, val eventId: String = AIAgentStartedEvent::class.simpleName!!) : DefinedFeatureEvent

Represents an event triggered when an AI agent starts executing a strategy.

Link copied to clipboard
data class AIAgentStrategyFinishedEvent(val runId: String, val strategyName: String, val result: String?, val eventId: String = AIAgentStrategyFinishedEvent::class.simpleName!!) : DefinedFeatureEvent

Event that represents the completion of an AI agent's strategy execution.

Link copied to clipboard
data class AIAgentStrategyStartEvent(val runId: String, val strategyName: String, val eventId: String = AIAgentStrategyStartEvent::class.simpleName!!) : DefinedFeatureEvent

Represents an event triggered at the start of an AI agent strategy execution.

Link copied to clipboard
data class BeforeLLMCallEvent(val runId: String, val prompt: Prompt, val model: String, val tools: List<String>, val eventId: String = BeforeLLMCallEvent::class.simpleName!!) : DefinedFeatureEvent

Represents an event indicating the start of a call to a Language Learning Model (LLM).

Link copied to clipboard

Represents a sealed class for defining feature-related events in the system.

Link copied to clipboard
data class ToolCallEvent(val runId: String, val toolCallId: String?, val toolName: String, val toolArgs: ToolArgs, val eventId: String = ToolCallEvent::class.simpleName!!) : DefinedFeatureEvent

Represents an event triggered when a tool is called within the system.

Link copied to clipboard
data class ToolCallFailureEvent(val runId: String, val toolCallId: String?, val toolName: String, val toolArgs: ToolArgs, val error: AIAgentError, val eventId: String = ToolCallFailureEvent::class.simpleName!!) : DefinedFeatureEvent

Captures an event where a tool call has failed during its execution.

Link copied to clipboard
data class ToolCallResultEvent(val runId: String, val toolCallId: String?, val toolName: String, val toolArgs: ToolArgs, val result: ToolResult?, val eventId: String = ToolCallResultEvent::class.simpleName!!) : DefinedFeatureEvent

Represents an event that contains the results of a tool invocation.

Link copied to clipboard
data class ToolValidationErrorEvent(val runId: String, val toolCallId: String?, val toolName: String, val toolArgs: ToolArgs, val error: String, val eventId: String = ToolValidationErrorEvent::class.simpleName!!) : DefinedFeatureEvent

Represents an event indicating that a tool encountered a validation error during its execution.

Functions

Link copied to clipboard

Converts a Throwable instance to an AIAgentError.