debugui

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventLog

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

func NewEventLog

func NewEventLog(limit int) *EventLog

func (*EventLog) ByRun

func (l *EventLog) ByRun(runID string) []core.Event

func (*EventLog) Emit

func (l *EventLog) Emit(ctx context.Context, event core.Event) error

type Option

type Option func(*serverOptions) error

func WithAuditSink

func WithAuditSink(sink audit.Sink) Option

func WithHTTPMiddleware

func WithHTTPMiddleware(middleware func(http.Handler) http.Handler) Option

func WithSecurityPolicy

func WithSecurityPolicy(policy security.Policy) Option

type RunRecord

type RunRecord struct {
	RunID        string               `json:"run_id"`
	ScenarioName string               `json:"scenario_name,omitempty"`
	Status       string               `json:"status,omitempty"`
	Token        string               `json:"token,omitempty"`
	Output       string               `json:"output,omitempty"`
	Error        string               `json:"error,omitempty"`
	Snapshot     runstate.RunSnapshot `json:"snapshot,omitempty"`
	Events       []core.Event         `json:"events,omitempty"`
	UpdatedAt    time.Time            `json:"updated_at"`
}

type RunStore

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

func NewRunStore

func NewRunStore() *RunStore

func (*RunStore) Get

func (s *RunStore) Get(runID string) RunRecord

func (*RunStore) Put

func (s *RunStore) Put(record RunRecord)

type ScenarioTemplate

type ScenarioTemplate struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	YAML        string `json:"yaml"`
	Prompt      string `json:"prompt"`
	Context     string `json:"context"`
	RealModel   bool   `json:"real_model"`
}

type Server

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

func New

func New(secret []byte, opts ...Option) (*Server, error)

func (*Server) Handler

func (s *Server) Handler() http.Handler

Jump to

Keyboard shortcuts

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