Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
Timestamp string `json:"timestamp"`
ProviderID string `json:"provider_id,omitempty"`
EventType EventType `json:"event_type"`
LatencyMS int64 `json:"latency_ms,omitempty"`
InputTokens int `json:"input_tokens,omitempty"`
OutputTokens int `json:"output_tokens,omitempty"`
ToolName string `json:"tool_name,omitempty"`
Success *bool `json:"success,omitempty"`
Error string `json:"error,omitempty"`
Accepted *bool `json:"accepted,omitempty"` // user feedback: tool accepted/rejected
}
Event is a single telemetry record written as one JSON line.
type EventType ¶
type EventType string
EventType identifies the kind of telemetry event.
const ( EventProviderResponse EventType = "provider_response" EventConsensusComplete EventType = "consensus_complete" EventToolExecuted EventType = "tool_executed" EventPipelineError EventType = "pipeline_error" EventQueryStart EventType = "query_start" EventUserFeedback EventType = "user_feedback" )
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger appends telemetry events to a JSONL file.
Click to show internal directories.
Click to hide internal directories.