Documentation
¶
Index ¶
- type Agent
- func (*Agent) Capabilities() toolv1.AgentCapabilities
- func (agent *Agent) Configure(ctx context.Context, request toolv1.ConfigureRequest) error
- func (agent *Agent) Export(ctx context.Context, request toolv1.ExportRequest) (toolv1.ExportResult, error)
- func (agent *Agent) Prepare(ctx context.Context, request toolv1.FileSystemRequest) error
- func (agent *Agent) ResolveSettings(run *agentrunv1.AgentRun) (toolv1.Settings, error)
- func (*Agent) Type() console.AgentRuntimeType
- type ConfigTemplateInput
- type Transport
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 (*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
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
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
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
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.