codex

package
v0.6.65 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: AGPL-3.0, Apache-2.0, MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent added in v0.6.65

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

Agent owns Codex settings, shared prompt and skills preparation, native configuration, and staging of Codex's native session data.

func NewAgent added in v0.6.65

func NewAgent(config toolv1.Config) *Agent

NewAgent creates a Codex Agent for one agent run.

func (*Agent) Capabilities added in v0.6.65

func (*Agent) Capabilities() toolv1.AgentCapabilities

Capabilities advertises the modes supported by Codex.

func (*Agent) Configure added in v0.6.65

func (agent *Agent) Configure(ctx context.Context, request toolv1.ConfigureRequest) error

Configure writes Codex's native TOML configuration for the initial phase. Babysit reuses that configuration while refreshing only prompt and skills.

func (*Agent) Export added in v0.6.65

func (agent *Agent) Export(ctx context.Context, request toolv1.ExportRequest) (toolv1.ExportResult, error)

Export stages all native Codex sessions below OutputDir. Codex's session filenames and JSONL schema are provider-owned, so the complete sessions tree is copied into a disposable staging directory for artifact building.

func (*Agent) Prepare added in v0.6.65

func (agent *Agent) Prepare(ctx context.Context, request toolv1.FileSystemRequest) error

Prepare writes Codex's shared system prompt and skills for a configuration phase. Native TOML configuration is written separately by Configure.

func (*Agent) ResolveSettings added in v0.6.65

func (agent *Agent) ResolveSettings(run *agentrunv1.AgentRun) (toolv1.Settings, error)

ResolveSettings resolves Codex's model and timeout without exposing credentials to the provider-neutral runtime settings.

func (*Agent) Type added in v0.6.65

func (*Agent) Type() console.AgentRuntimeType

Type identifies the Console runtime implemented by Agent.

type ConfigTemplateInput added in v0.6.65

type ConfigTemplateInput struct {
	RepositoryDir string
	Settings      configTemplateSettings
	Providers     []configTemplateProvider
	MCPServers    []configTemplateMCP
}

ConfigTemplateInput contains the native Codex settings that vary per run. Slices replace maps so templates can preserve a deterministic order while still representing Codex's map-shaped TOML sections.

type Transport added in v0.6.65

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

Transport invokes Codex through its ACP adapter. It owns process launch and projects runtime settings into ACP identifiers; acp.Engine owns the protocol.

func NewTransport added in v0.6.65

func NewTransport(agent *Agent) (*Transport, error)

NewTransport creates a Codex ACP transport for an Agent.

func (*Transport) Capabilities added in v0.6.65

func (transport *Transport) Capabilities() toolv1.TransportCapabilities

Capabilities reports the ACP features implemented by Codex.

func (*Transport) Kind added in v0.6.65

func (*Transport) Kind() toolv1.TransportKind

Kind identifies this as an Agent Client Protocol transport.

func (*Transport) Turn added in v0.6.65

func (transport *Transport) Turn(ctx context.Context, request toolv1.TurnRequest, sink toolv1.TurnSink) (toolv1.TurnResult, error)

Turn launches codex-acp and delegates session lifecycle and event mapping to the provider-neutral ACP engine.

Jump to

Keyboard shortcuts

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