Skip to main content

Module events

Module events 

Source
Expand description

Shared types for agent events.

This module provides types used across multiple Aether packages:

  • Agent event types (AgentEvent, Command)
  • ACP protocol extension payloads (SubAgentProgressPayload)

Structs§

ContextUsage
Context/token usage reported after an LLM call.
RetryInfo
A retry of a failed LLM call.
SubAgentProgressPayload
Payload for sub-agent progress updates emitted by MCP tools.

Enums§

AgentCommand
Runtime-internal operations that modify agent state without user interaction.
AgentEvent
A canonical event on the agent’s output stream.
Command
The unified command type sent to the agent input channel.
ContextEvent
Context lifecycle events.
LlmCallOutcome
How a single LLM call ended.
LlmCallPurpose
What an LLM call was issued for.
MessageEvent
Streaming message content from the agent.
ModelEvent
Model configuration events.
ToolEvent
Tool call lifecycle events.
TurnEvent
Turn lifecycle events.
TurnOutcome
How a turn reached its terminal state.
UserCommand
User-initiated actions that the agent processes as part of normal interaction.

Traits§

AgentObserver
Observer of the agent’s event stream. Observers receive the same events the agent sends on its event channel, synchronously and in order — including events that channel consumers such as UIs and session persistence filter out downstream.

Functions§

aether_tool_name_meta
humanize_tool_name
parse_tool_call_chunk

Type Aliases§

ObserverFactory