Documentation
¶
Index ¶
- Constants
- func BoundedText(s string, maxRunes int) string
- func CompactIdentity(taskID string, turnIndex int) string
- func CompactTaskID(taskID string) string
- func ExtractBashCommand(payload any) string
- func FormatByteCount(n int) string
- func IsSensitiveSummaryKey(key string) bool
- func NormalizeShellCommand(command string) string
- func RedactProgressOutput(s string) string
- func StatusLine(in StatusLineInput) string
- func SummarizeJSONValue(raw json.RawMessage) string
- func TaskID(sessionID string, meta map[string]string) string
- func TokenThroughput(outputTokens int, durationMS int64) *float64
- type Callback
- type Event
- type LLM
- type Output
- type OutputSummary
- type ProgressType
- type StatusLineInput
- type Timing
- type Tool
- type ToolSummary
- type Usage
Constants ¶
View Source
const ( DefaultLineLimit = 80 ExceptionalToolLineLimit = 120 )
Variables ¶
This section is empty.
Functions ¶
func BoundedText ¶
func CompactIdentity ¶
func CompactTaskID ¶
func ExtractBashCommand ¶
func FormatByteCount ¶
func IsSensitiveSummaryKey ¶
func NormalizeShellCommand ¶
func RedactProgressOutput ¶
func StatusLine ¶
func StatusLine(in StatusLineInput) string
func SummarizeJSONValue ¶
func SummarizeJSONValue(raw json.RawMessage) string
func TokenThroughput ¶
Types ¶
type Event ¶
type Event struct {
Type ProgressType `json:"type"`
Source string `json:"source,omitempty"`
TaskID string `json:"task_id,omitempty"`
TurnIndex int `json:"turn_index,omitempty"`
Phase string `json:"phase,omitempty"`
Status string `json:"status,omitempty"`
Message string `json:"message,omitempty"`
Action string `json:"action,omitempty"`
Target string `json:"target,omitempty"`
Tool Tool `json:"tool,omitempty"`
LLM LLM `json:"llm,omitempty"`
Timing Timing `json:"timing,omitempty"`
Usage Usage `json:"usage,omitempty"`
Output Output `json:"output,omitempty"`
}
type OutputSummary ¶
func SummarizeOutput ¶
func SummarizeOutput(output string) OutputSummary
type ProgressType ¶
type ProgressType string
const ( ProgressTypeRoute ProgressType = "route" ProgressTypeThinking ProgressType = "thinking" ProgressTypeTool ProgressType = "tool" ProgressTypeResponse ProgressType = "response" ProgressTypeContext ProgressType = "context" ProgressTypeCompaction ProgressType = "compaction" ProgressTypeToolStart ProgressType = "tool.start" ProgressTypeToolComplete ProgressType = "tool.complete" ProgressTypeLLMRequest ProgressType = "llm.request" ProgressTypeLLMResponse ProgressType = "llm.response" )
type StatusLineInput ¶
type ToolSummary ¶
func SummarizeShellCommand ¶
func SummarizeShellCommand(command string) ToolSummary
func SummarizeToolCall ¶
func SummarizeToolCall(toolName string, input json.RawMessage) ToolSummary
Click to show internal directories.
Click to hide internal directories.