AgentCompletedEvent

data class AgentCompletedEvent(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(agentId: String, runId: String, result: String?, timestamp: Long = Clock.System.now().toEpochMilliseconds())

Properties

Link copied to clipboard

The unique identifier of the AI agent;

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.