types

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 0 Imported by: 1 module, 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

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"`
	Role      string         `json:"role,omitempty"`
	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