Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromOpencode ¶ added in v0.0.18
func FromOpencode(events []Event, _ string) []types.AgentEvent
Types ¶
type CacheTokens ¶ added in v0.0.18
type ErrorDetail ¶
type Event ¶
type Event struct {
Type EventType `json:"type"`
Timestamp int64 `json:"timestamp,omitempty"`
SessionID string `json:"sessionID,omitempty"`
Part any `json:"part,omitempty"`
Error *ErrorDetail `json:"error,omitempty"`
Done bool `json:"done,omitempty"`
}
func ToOpencode ¶
func ToOpencode(events []types.AgentEvent, sessionID string) []Event
type ReasoningPart ¶
type StepFinishPart ¶ added in v0.0.18
type StepStartPart ¶ added in v0.0.18
type Tokens ¶ added in v0.0.18
type Tokens struct {
Input int `json:"input"`
Output int `json:"output"`
Reasoning int `json:"reasoning"`
Cache CacheTokens `json:"cache"`
}
type ToolUsePart ¶
type ToolUsePart struct {
ID string `json:"id"`
Type PartType `json:"type"`
CallID string `json:"callID"`
Tool string `json:"tool"`
State ToolUseState `json:"state"`
}
type ToolUseState ¶
type ToolUseState struct {
Input map[string]any `json:"input,omitempty"`
Output string `json:"output,omitempty"`
Stderr string `json:"stderr,omitempty"`
ExitCode int `json:"exit_code"`
Error string `json:"error,omitempty"`
Status string `json:"status,omitempty"`
Title string `json:"title,omitempty"`
Time *TimeRange `json:"time,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.