AgentCompletedEvent

data class AgentCompletedEvent(val eventId: String, val executionInfo: AgentExecutionInfo, val agentId: String, val runId: String, val result: String?, val timestamp: Long = Clock.System.now().toEpochMilliseconds()) : DefinedFeatureEvent(source)

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

This event is emitted when an AI Agent finishes executing a strategy, providing information about the strategy and its result. It can be used for logging, tracing, or monitoring the outcomes of agent operations.

Constructors

Link copied to clipboard
constructor(eventId: String, executionInfo: AgentExecutionInfo, agentId: String, runId: String, result: String?, timestamp: Long = Clock.System.now().toEpochMilliseconds())
constructor(agentId: String, runId: String, result: String?)

Properties

Link copied to clipboard

The unique identifier of the AI agent;

Link copied to clipboard
open override val eventId: String

A unique identifier for the event or a group of events;

Link copied to clipboard

Provides contextual information about the execution associated with this event.

Link copied to clipboard
open override val messageType: FeatureMessage.Type

Specifies the type of the feature message for this event.

Link copied to clipboard

The result of the strategy execution, or null if unavailable;

Link copied to clipboard

The unique identifier of the AI agen run;

Link copied to clipboard
open override val timestamp: Long

The timestamp of the event, in milliseconds since the Unix epoch.