types

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 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"
)

type AgentEvent

type AgentEvent struct {
	ID        string         `json:"id,omitempty"`
	Type      ActionType     `json:"type"`
	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"`
	Mock      *MockConfig    `json:"mock,omitempty"`
	Changes   []FileChange   `json:"changes,omitempty"`
}

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