Documentation
¶
Overview ¶
Package jsonmode emits NDJSON events for bee's --json output mode.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Emitter ¶
type Emitter struct {
// contains filtered or unexported fields
}
Emitter writes NDJSON events to an io.Writer, safe for concurrent use.
type Event ¶
type Event struct {
Type string `json:"type"`
Delta string `json:"delta,omitempty"`
Name string `json:"name,omitempty"`
Input any `json:"input,omitempty"`
UseID string `json:"use_id,omitempty"`
Content string `json:"content,omitempty"`
Error bool `json:"error,omitempty"`
Message string `json:"message,omitempty"`
Usage *Usage `json:"usage,omitempty"`
}
Event is one NDJSON record.
Click to show internal directories.
Click to hide internal directories.