cmd

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package cmd implements the command-line interface for AGK.

Package cmd implements the command-line interface for AGK.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Set via ldflags during build
	Version   = "dev"
	GitCommit = "unknown"
	BuildDate = "unknown"
	GoVersion = runtime.Version()
)

Functions

func Execute

func Execute() error

Execute adds all child commands to the root command and sets flags appropriately.

func GetLogger

func GetLogger() *zerolog.Logger

GetLogger returns the configured logger

Types

type RunStats

type RunStats struct {
	SpanCount   int
	LLMCalls    int
	TotalTokens int
	FirstSpan   time.Time
	LastSpan    time.Time
}

func (*RunStats) Update

func (s *RunStats) Update(span map[string]interface{})

type Span

type Span struct {
	Name                 string                   `json:"Name"`
	StartTime            string                   `json:"StartTime"`
	EndTime              string                   `json:"EndTime"`
	Attributes           []map[string]interface{} `json:"Attributes,omitempty"`
	ParentSpanID         string                   `json:"ParentSpanId,omitempty"`
	SpanID               string                   `json:"SpanId"`
	SpanKind             int                      `json:"SpanKind"`
	Status               map[string]interface{}   `json:"Status"`
	ChildSpanCount       int                      `json:"ChildSpanCount"`
	InstrumentationScope map[string]interface{}   `json:"InstrumentationScope"`
}

type TraceRun

type TraceRun struct {
	RunID         string    `json:"run_id"`
	Command       string    `json:"command"`
	Status        string    `json:"status"`
	StartTime     time.Time `json:"start_time"`
	EndTime       time.Time `json:"end_time"`
	Duration      float64   `json:"duration_seconds"`
	SpanCount     int       `json:"span_count"`
	LLMCalls      int       `json:"llm_calls"`
	TotalTokens   int       `json:"total_tokens"`
	EstimatedCost float64   `json:"estimated_cost"`
}

TraceRun represents a stored trace run

Jump to

Keyboard shortcuts

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