Attributes
- Companion
- trait
- Graph
-
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
AgentEvent.type
Members list
Type members
Classlikes
Agent execution completed successfully.
Agent execution completed successfully.
Value parameters
- durationMs
-
Total execution time in milliseconds
- finalState
-
The final agent state
- timestamp
-
When execution completed
- totalSteps
-
Total number of steps taken
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait AgentEventclass Objecttrait Matchableclass AnyShow all
Agent execution failed.
Agent execution failed.
Value parameters
- error
-
The error that caused failure
- stepNumber
-
Step where failure occurred (if known)
- timestamp
-
When failure occurred
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait AgentEventclass Objecttrait Matchableclass AnyShow all
Agent execution started.
Agent execution started.
Value parameters
- query
-
The user's query
- timestamp
-
When execution started
- toolCount
-
Number of tools available
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait AgentEventclass Objecttrait Matchableclass AnyShow all
Handoff completed - control returned from target agent.
Handoff completed - control returned from target agent.
Value parameters
- success
-
Whether the target agent succeeded
- targetAgentName
-
Name of the agent that handled the request
- timestamp
-
When handoff completed
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait AgentEventclass Objecttrait Matchableclass AnyShow all
Agent is handing off to another agent.
Agent is handing off to another agent.
Value parameters
- preserveContext
-
Whether context is being transferred
- reason
-
Reason for the handoff (if provided)
- targetAgentName
-
Name/description of the target agent
- timestamp
-
When handoff was initiated
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait AgentEventclass Objecttrait Matchableclass AnyShow all
Input guardrail validation completed.
Input guardrail validation completed.
Value parameters
- guardrailName
-
Name of the guardrail
- passed
-
Whether validation passed
- timestamp
-
When validation completed
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait AgentEventclass Objecttrait Matchableclass AnyShow all
Input guardrail validation started.
Input guardrail validation started.
Value parameters
- guardrailName
-
Name of the guardrail
- timestamp
-
When validation started
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait AgentEventclass Objecttrait Matchableclass AnyShow all
Output guardrail validation completed.
Output guardrail validation completed.
Value parameters
- guardrailName
-
Name of the guardrail
- passed
-
Whether validation passed
- timestamp
-
When validation completed
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait AgentEventclass Objecttrait Matchableclass AnyShow all
Output guardrail validation started.
Output guardrail validation started.
Value parameters
- guardrailName
-
Name of the guardrail
- timestamp
-
When validation started
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait AgentEventclass Objecttrait Matchableclass AnyShow all
An execution step completed.
An execution step completed.
Value parameters
- hasToolCalls
-
Whether this step produced tool calls
- stepNumber
-
Zero-based step index
- timestamp
-
When the step completed
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait AgentEventclass Objecttrait Matchableclass AnyShow all
A new execution step started.
A new execution step started.
An agent may take multiple steps when tools are involved: Step 0: Initial LLM call Step 1: Process tool results Step N: Continue until complete
Value parameters
- stepNumber
-
Zero-based step index
- timestamp
-
When the step started
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait AgentEventclass Objecttrait Matchableclass AnyShow all
Text generation for the current step completed.
Text generation for the current step completed.
Value parameters
- fullText
-
The complete generated text for this step
- timestamp
-
When generation completed
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait AgentEventclass Objecttrait Matchableclass AnyShow all
A chunk of text was generated by the LLM.
A chunk of text was generated by the LLM.
These events are emitted in real-time during streaming generation, allowing incremental display to users.
Value parameters
- delta
-
The text chunk (may be partial words)
- timestamp
-
When the chunk was received
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait AgentEventclass Objecttrait Matchableclass AnyShow all
A tool call completed execution.
A tool call completed execution.
Value parameters
- durationMs
-
Execution time in milliseconds
- result
-
The result returned by the tool (as string)
- success
-
Whether the tool executed successfully
- timestamp
-
When the tool completed
- toolCallId
-
Unique identifier matching the start event
- toolName
-
Name of the tool that was invoked
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait AgentEventclass Objecttrait Matchableclass AnyShow all
A tool call failed during execution.
A tool call failed during execution.
Value parameters
- error
-
Description of the failure
- timestamp
-
When the failure occurred
- toolCallId
-
Unique identifier matching the start event
- toolName
-
Name of the tool that failed
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait AgentEventclass Objecttrait Matchableclass AnyShow all
A tool call was requested by the LLM.
A tool call was requested by the LLM.
Emitted when the LLM decides to invoke a tool. The tool has not yet been executed at this point.
Value parameters
- arguments
-
JSON string of arguments passed to the tool
- timestamp
-
When the tool call was requested
- toolCallId
-
Unique identifier for this tool call
- toolName
-
Name of the tool being invoked
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait AgentEventclass Objecttrait Matchableclass AnyShow all
Inherited and Abstract types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
Create an AgentCompleted event with current timestamp.
Create an AgentCompleted event with current timestamp.
Attributes
Create an AgentFailed event with current timestamp.
Create an AgentFailed event with current timestamp.
Attributes
Create an AgentStarted event with current timestamp.
Create an AgentStarted event with current timestamp.
Attributes
Create a StepCompleted event with current timestamp.
Create a StepCompleted event with current timestamp.
Attributes
Create a StepStarted event with current timestamp.
Create a StepStarted event with current timestamp.
Attributes
Create a TextComplete event with current timestamp.
Create a TextComplete event with current timestamp.
Attributes
Create a TextDelta event with current timestamp.
Create a TextDelta event with current timestamp.
Attributes
Create a ToolCallCompleted event with current timestamp.
Create a ToolCallCompleted event with current timestamp.
Attributes
Create a ToolCallStarted event with current timestamp.
Create a ToolCallStarted event with current timestamp.