Documentation
¶
Index ¶
Constants ¶
View Source
const ( EventSystemInit = "system.init" EventTaskStarted = "system.task_started" EventTaskProgress = "system.task_progress" EventTaskNotification = "system.task_notification" EventResult = "result" EventError = "error" EventToolCall = "tool_call" )
EventType constants for Claude stream-json output.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
Type string // top-level type (e.g., "system", "result")
Subtype string // parsed from "type.subtype" format (e.g., "init")
Raw json.RawMessage // original JSON line
}
Event represents a parsed stream-json event.
type InitData ¶
type InitData struct {
MCPServers []string `json:"mcp_servers,omitempty"`
Tools []string `json:"tools,omitempty"`
}
InitData holds data from a "system.init" event.
Click to show internal directories.
Click to hide internal directories.