Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
Kind Kind
Text string
Item *agentsdk.RunItem
Result *agentsdk.RunResult
Err error
History []agentsdk.RunItem
Pending *agentsdk.Interruption
Snapshot agentsdk.ProgressSnapshot
Child *agentsdk.ChildToolEvent
SubAgent *agentsdk.SubAgentStreamEvent
}
Event is the typed SDK event shape hosts can render or persist.
type LineWriter ¶
type LineWriter struct {
// contains filtered or unexported fields
}
LineWriter turns JSONL content events into typed SDK events.
Hosts can attach this to SessionEventStream and render typed events instead of reparsing event JSON themselves.
func NewLineWriter ¶
func NewLineWriter(sink Sink) *LineWriter
Click to show internal directories.
Click to hide internal directories.