Help us shape the future of Go! Take the 2026 Go Developer Survey

events

package
v0.0.0-...-a92561a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Vendored from github.com/GrayCodeAI/eagle/events at v0.0.0-20260902153929-5877bed17503 (MIT, Copyright (c) 2026 GrayCode AI). The upstream repository no longer exists; this copy is owned by Rho as its contract surface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ToolEvent

type ToolEvent struct {
	ToolName   string                 `json:"tool_name"`
	ToolInput  map[string]interface{} `json:"tool_input,omitempty"`
	CWD        string                 `json:"cwd,omitempty"`
	Timestamp  time.Time              `json:"timestamp"`
	SessionID  string                 `json:"session_id,omitempty"`
	Transcript string                 `json:"transcript,omitempty"`
}

ToolEvent represents a normalized tool event emitted by Rho workflows.

type TraceEvent

type TraceEvent struct {
	ID        string            `json:"id"`
	Name      string            `json:"name"`
	Input     string            `json:"input,omitempty"`
	Output    string            `json:"output,omitempty"`
	Model     string            `json:"model,omitempty"`
	StartTime time.Time         `json:"start_time"`
	EndTime   time.Time         `json:"end_time,omitempty"`
	Metadata  map[string]string `json:"metadata,omitempty"`
	Usage     *UsageInfo        `json:"usage,omitempty"`
}

TraceEvent represents a normalized trace record for model/runtime activity.

type UsageInfo

type UsageInfo struct {
	PromptTokens     int     `json:"prompt_tokens"`
	CompletionTokens int     `json:"completion_tokens"`
	TotalTokens      int     `json:"total_tokens"`
	CostUSD          float64 `json:"cost_usd,omitempty"`
}

UsageInfo captures token and cost information for a trace event.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL