Skip to main content
The SDK exposes multiple event surfaces.

AgentRuntimeEvent

Direct AgentRuntime usage emits low-level runtime events through agent.subscribe(listener).
Common runtime events include model events, tool execution events, run lifecycle events, and failure events. Runtime results use AgentRunResult.status rather than finishReason.

AgentEvent

Core/host-facing agent events are emitted through AgentConfig.onEvent and core adapters.

Done Event

Usage Event

CoreSessionEvent

ClineCore.subscribe(listener, options?) emits session-level events from the runtime host.