Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
data class AgentClosingEvent(val agentId: String, val timestamp: Long = Clock.System.now().toEpochMilliseconds()) : DefinedFeatureEvent

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

Link copied to clipboard
data class AgentCompletedEvent(val agentId: String, val runId: String, val result: String?, val timestamp: Long = Clock.System.now().toEpochMilliseconds()) : DefinedFeatureEvent

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

Link copied to clipboard
data class AgentExecutionFailedEvent(val agentId: String, val runId: String, val error: AIAgentError, val timestamp: Long = Clock.System.now().toEpochMilliseconds()) : DefinedFeatureEvent

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

Link copied to clipboard
data class AgentStartingEvent(val agentId: String, val runId: String, val timestamp: Long = Clock.System.now().toEpochMilliseconds()) : DefinedFeatureEvent

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

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard
data class FunctionalStrategyStartingEvent(val runId: String, val strategyName: String, val timestamp: Long = Clock.System.now().toEpochMilliseconds()) : StrategyStartingEvent

Represents an event triggered at the start of executing a functional strategy by an AI agent.

Link copied to clipboard
data class GraphStrategyStartingEvent(val runId: String, val strategyName: String, val graph: StrategyEventGraph, val timestamp: Long = Clock.System.now().toEpochMilliseconds()) : StrategyStartingEvent

Represents an event triggered at the start of an AI agent strategy execution that involves the use of a graph-based operational model.

Link copied to clipboard
data class LLMCallCompletedEvent(val runId: String, val prompt: Prompt, val model: String, val responses: List<Message.Response>, val moderationResponse: ModerationResult? = null, val timestamp: Long = Clock.System.now().toEpochMilliseconds()) : DefinedFeatureEvent

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

Link copied to clipboard
data class LLMCallStartingEvent(val runId: String, val prompt: Prompt, val model: String, val tools: List<String>, val timestamp: Long = Clock.System.now().toEpochMilliseconds()) : DefinedFeatureEvent

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

Link copied to clipboard
data class LLMStreamingCompletedEvent(val runId: String, val prompt: Prompt, val model: String, val tools: List<String>, val timestamp: Long = Clock.System.now().toEpochMilliseconds()) : DefinedFeatureEvent

Represents an event that occurs when the streaming process of a Large Language Model (LLM) call is completed.

Link copied to clipboard
data class LLMStreamingFailedEvent(val runId: String, val error: AIAgentError, val timestamp: Long = Clock.System.now().toEpochMilliseconds()) : DefinedFeatureEvent

Represents an event indicating a failure in the streaming process of a Language Learning Model (LLM).

Link copied to clipboard
data class LLMStreamingFrameReceivedEvent(val runId: String, val frame: StreamFrame, val timestamp: Long = Clock.System.now().toEpochMilliseconds()) : DefinedFeatureEvent

Event representing the receipt of a streaming frame from a Language Learning Model (LLM).

Link copied to clipboard
data class LLMStreamingStartingEvent(val runId: String, val prompt: Prompt, val model: String, val tools: List<String>, val timestamp: Long = Clock.System.now().toEpochMilliseconds()) : DefinedFeatureEvent

Represents an event triggered when a language model (LLM) streaming operation is starting.

Link copied to clipboard
data class NodeExecutionCompletedEvent(val runId: String, val nodeName: String, val input: String, val output: String, val timestamp: Long = Clock.System.now().toEpochMilliseconds()) : DefinedFeatureEvent

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

Link copied to clipboard
data class NodeExecutionFailedEvent(val runId: String, val nodeName: String, val error: AIAgentError, val timestamp: Long = Clock.System.now().toEpochMilliseconds()) : DefinedFeatureEvent

Represents an event that signifies the occurrence of an error during the execution of a specific node within an AI agent's process.

Link copied to clipboard
data class NodeExecutionStartingEvent(val runId: String, val nodeName: String, val input: String, val timestamp: Long = Clock.System.now().toEpochMilliseconds()) : DefinedFeatureEvent

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

Link copied to clipboard
data class StrategyCompletedEvent(val runId: String, val strategyName: String, val result: String?, val timestamp: Long = Clock.System.now().toEpochMilliseconds()) : DefinedFeatureEvent

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

Link copied to clipboard

Represents a graph structure used by an AI agent, consisting of a collection of nodes and directed edges connecting these nodes.

Link copied to clipboard

Represents a directed edge in the AI agent graph.

Link copied to clipboard
data class StrategyEventGraphNode(val id: String, val name: String)

Represents a node within an AI agent's processing graph.

Link copied to clipboard

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

Link copied to clipboard
data class ToolCallCompletedEvent(val runId: String, val toolCallId: String?, val toolName: String, val toolArgs: JsonObject, val result: String?, val timestamp: Long = Clock.System.now().toEpochMilliseconds()) : DefinedFeatureEvent

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

Link copied to clipboard
Link copied to clipboard
data class ToolCallFailedEvent(val runId: String, val toolCallId: String?, val toolName: String, val toolArgs: JsonObject, val error: AIAgentError, val timestamp: Long = Clock.System.now().toEpochMilliseconds()) : DefinedFeatureEvent

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

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class ToolCallStartingEvent(val runId: String, val toolCallId: String?, val toolName: String, val toolArgs: JsonObject, val timestamp: Long = Clock.System.now().toEpochMilliseconds()) : DefinedFeatureEvent

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

Link copied to clipboard
data class ToolValidationFailedEvent(val runId: String, val toolCallId: String?, val toolName: String, val toolArgs: JsonObject, val error: String, val timestamp: Long = Clock.System.now().toEpochMilliseconds()) : DefinedFeatureEvent

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

Functions

Link copied to clipboard

Constructs an instance of AIAgentEventGraph by converting the metadata information of the current AIAgentGraphStrategy into its graph representation. The method creates nodes and edges that define the structure and flow of execution for the underlying AI agent strategy.