types

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionType

type ActionType string
const (
	ActionThink      ActionType = "think"
	ActionToolCall   ActionType = "tool_call"
	ActionMessage    ActionType = "message"
	ActionError      ActionType = "error"
	ActionDone       ActionType = "done"
	ActionStepStart  ActionType = "step_start"
	ActionStepFinish ActionType = "step_finish"
	ActionSleep      ActionType = "sleep"
)

type AgentEvent

type AgentEvent struct {
	ID        string         `json:"id,omitempty"`
	Type      ActionType     `json:"type"`
	Phase     EventPhase     `json:"phase,omitempty"`
	Timestamp int64          `json:"timestamp,omitempty"`
	Text      string         `json:"text,omitempty"`
	Tool      string         `json:"tool,omitempty"`
	ToolInput map[string]any `json:"tool_input,omitempty"`
	Output    string         `json:"output,omitempty"`
	Stderr    string         `json:"stderr,omitempty"`
	ExitCode  *int           `json:"exit_code,omitempty"`
	DelayMs   int            `json:"delay_ms,omitempty"`
	Mock      *MockConfig    `json:"mock,omitempty"`
	Changes   []FileChange   `json:"changes,omitempty"`
}

type EventPhase added in v0.0.19

type EventPhase string
const (
	PhaseInstant EventPhase = ""
	PhaseStart   EventPhase = "start"
	PhaseUpdate  EventPhase = "update"
	PhaseEnd     EventPhase = "end"
)

type FileChange

type FileChange struct {
	Path string `json:"path"`
	Kind string `json:"kind"`
}

type MockConfig

type MockConfig struct {
	Output   string       `json:"output,omitempty"`
	Stderr   string       `json:"stderr,omitempty"`
	ExitCode *int         `json:"exit_code,omitempty"`
	Content  string       `json:"content,omitempty"`
	Changes  []FileChange `json:"changes,omitempty"`
}

Jump to

Keyboard shortcuts

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