fakeagent

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: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventStarted   = codex_types.EventStarted
	EventUpdated   = codex_types.EventUpdated
	EventCompleted = codex_types.EventCompleted
	EventError     = codex_types.EventError
)
View Source
const (
	ItemReasoning        = codex_types.ItemReasoning
	ItemCommandExecution = codex_types.ItemCommandExecution
	ItemFileChange       = codex_types.ItemFileChange
	ItemMessage          = codex_types.ItemMessage
)

Variables

This section is empty.

Functions

func FormatCodexEvents

func FormatCodexEvents(events []Event) ([]string, error)

func FormatCodexEventsText

func FormatCodexEventsText(events []Event) string

Types

type Event

type Event = codex_types.Event

func ParseCodexEvents

func ParseCodexEvents(lines []string) ([]Event, error)

type EventItem

type EventItem = codex_types.EventItem

type EventType

type EventType = codex_types.EventType

type FileChange

type FileChange = types.FileChange

type Generator

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

func NewGenerator

func NewGenerator(seed int64) *Generator

func (*Generator) GenerateSession

func (g *Generator) GenerateSession(prompt string) []Event

func (*Generator) NextID

func (g *Generator) NextID() string

type ItemPart

type ItemPart = codex_types.ItemPart

type ItemType

type ItemType = codex_types.ItemType

type Script added in v0.0.15

type Script struct {
	Events   []Event `json:"events"`
	ExitCode int     `json:"exit_code"`
	Stderr   string  `json:"stderr"`
	DelayMS  int     `json:"delay_ms"`
}

func LoadScript added in v0.0.15

func LoadScript(path string) (*Script, error)

func (Script) Validate added in v0.0.15

func (s Script) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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