events

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteCSV

func WriteCSV(w io.Writer, events []observe.RunEvent) error

func WriteJSON

func WriteJSON(w io.Writer, events []observe.RunEvent) error

Types

type ListOptions

type ListOptions struct {
	Limit     int
	Status    string
	Agent     string
	Source    string
	Actor     string
	Workspace string
	Skill     string
}

type Store

type Store struct {
	// contains filtered or unexported fields
}

func Open

func Open(path string) (*Store, error)

func (*Store) Append

func (s *Store) Append(ctx context.Context, event observe.RunEvent) error

func (*Store) Close

func (s *Store) Close() error

func (*Store) List

func (s *Store) List(ctx context.Context, opts ListOptions) ([]observe.RunEvent, error)

func (*Store) Migrate

func (s *Store) Migrate(ctx context.Context) error

func (*Store) ObserveRun

func (s *Store) ObserveRun(ctx context.Context, event observe.RunEvent) error

func (*Store) Summary

func (s *Store) Summary(ctx context.Context) (Summary, error)

type Summary

type Summary struct {
	Total                    int            `json:"total"`
	StatusCounts             map[string]int `json:"status_counts"`
	TopAgents                map[string]int `json:"top_agents"`
	TopSkills                map[string]int `json:"top_skills"`
	TopPlugins               map[string]int `json:"top_plugins"`
	BundleVersions           map[string]int `json:"bundle_versions"`
	GraphExecutions          int            `json:"graph_executions"`
	ValidationFailures       int            `json:"validation_failures"`
	Timeouts                 int            `json:"timeouts"`
	ContextBudgetWarnings    int            `json:"context_budget_warnings"`
	PromptTokensEstimate     int            `json:"prompt_tokens_estimate"`
	CompletionTokensEstimate int            `json:"completion_tokens_estimate"`
	PolicyDenials            int            `json:"policy_denials"`
}

Jump to

Keyboard shortcuts

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