ai.events

Page actions AI-ready formats and sharing
Open LLM text
Share with AI
Ask Claude Ask ChatGPT Ask Gemini Ask Copilot

Unified stream events for LLM and agent loops.

All streaming paths (LLM.stream_events, AgentRun.stream) yield this union. Distinct fromchirp.tools.events.ToolCallEvent, which fires after a tool handler completes for activity dashboards.

Unified stream events for LLM and agent loops.

All streaming paths (LLM.stream_events, AgentRun.stream) yield this union. Distinct fromchirp.tools.events.ToolCallEvent, which fires after a tool handler completes for activity dashboards.

ai.events

Name Type Default Description
type
qualified_name
element_type
description
source_file
line_number
is_autodoc
autodoc_element
_autodoc_template
_autodoc_url_path
_autodoc_page_type
title
doc_content_hash

Symbols on this page

TokenEvent
class

Incremental text token from the model.

StreamToolCallEvent
class

Model requested a tool invocation (pending dispatch).

StreamToolResultEvent
class

Tool dispatch completed (success or handler error string).

StreamToolApprovalEvent
class

Tool call paused until a human approves or denies via web UI.

ErrorEvent
class

Provider or framework error surfaced on the stream.

DoneEvent
class

Stream finished normally.

View source · /home/runner/work/chirp/chirp/site/../src/chirp/ai/events.py:1