Documentation
¶
Index ¶
- Constants
- type Agent
- type Authentication
- type Config
- type Execution
- type Limits
- type MCPServer
- type Runner
- func (r *Runner) AdmitNativeTask(definition *workflows.AgentDefinition) (*workflows.AgentDefinition, error)
- func (r *Runner) AdmittedRoles(ctx context.Context) (roles json.RawMessage, err error)
- func (r *Runner) Capabilities(id string) (workflows.ProviderCapabilities, error)
- func (r *Runner) ExternalTool(ctx context.Context, definition workflows.ToolDefinition, args json.RawMessage) (json.RawMessage, error)
- func (r *Runner) HasAgent(id string) bool
- func (r *Runner) Preflight(ctx context.Context, ids []string) error
- func (r *Runner) RunAgent(ctx context.Context, req workflows.AgentRequest) (map[string]any, error)
- func (r *Runner) RunTurn(ctx context.Context, req workflows.SessionRequest, ...) (result workflows.SessionResult, err error)
- func (r *Runner) RunnerForRoles(raw json.RawMessage) (workflows.AgentRunner, error)
- func (r *Runner) SecretValues() map[string]string
- func (r *Runner) ToolPolicy(role string) ([]workflows.ToolGrant, []workflows.ToolDefinition)
- func (r *Runner) UsageProvider(role, model string) (string, string)
- func (r *Runner) ValidateConversationOutput(id string, schema map[string]any) error
- func (r *Runner) VerifyToolCatalog(ctx context.Context) error
- func (r *Runner) WithWorkerWorkspace(role, workspace string) (workflows.SessionRunner, error)
- func (r *Runner) WorkerAccess(id string) (workflows.WorkerAccess, error)
- func (r *Runner) WorkerLimits(id string) (workflows.WorkerLimits, error)
Constants ¶
View Source
const BridgeProtocolVersion = 2
View Source
const ClaudeSDKVersion = "0.3.319"
View Source
const CodexProtocolVersion = "0.167.0"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
MCPGrants []workflows.ToolGrant `yaml:"mcp-grants"`
Limits Limits `yaml:"limits"`
Execution Execution `yaml:"execution"`
Instructions []string `yaml:"instructions"`
InstructionText string `yaml:"-"`
Tools []string `yaml:"tools,omitempty"`
Authentication Authentication `yaml:"authentication"`
Bridge string `yaml:"bridge"`
Provider string `yaml:"provider"`
Model string `yaml:"model"`
Command string `yaml:"command"`
Args []string `yaml:"args"`
Workspace string `yaml:"workspace"`
Sandbox string `yaml:"sandbox"`
PermissionMode string `yaml:"permission-mode"`
}
type Authentication ¶
type Config ¶
type Config struct {
Controller operational.Config `yaml:"controller"`
Execution Execution `yaml:"execution"`
CatalogFingerprint string `yaml:"-"`
MCPServers map[string]MCPServer `yaml:"mcp-servers"`
ToolCatalog []workflows.ToolDefinition `yaml:"-"`
Publication development.PublicationPolicy `yaml:"publication"`
Agents map[string]Agent `yaml:"agents"`
}
func LoadConfig ¶
func (Config) CommandExecutionPolicy ¶
func (c Config) CommandExecutionPolicy() runtimeexec.Policy
type Execution ¶
type Execution struct {
NetworkRuntime string `yaml:"network-runtime"`
Network *network.Reference `yaml:"-" json:",omitempty"`
NetworkMode string `yaml:"network" json:",omitempty"`
Cleanup string `yaml:"cleanup"`
UID *int `yaml:"uid"`
GID *int `yaml:"gid"`
Mode string `yaml:"mode"`
Image string `yaml:"image"`
Runtime string `yaml:"runtime"`
Writable bool `yaml:"writable"`
// contains filtered or unexported fields
}
type Runner ¶
func (*Runner) AdmitNativeTask ¶
func (r *Runner) AdmitNativeTask(definition *workflows.AgentDefinition) (*workflows.AgentDefinition, error)
AdmitNativeTask resolves behavior against the admitted codex runtime. It does not add managed tools, repair support, authentication or execution authority.
func (*Runner) AdmittedRoles ¶
func (*Runner) Capabilities ¶
func (r *Runner) Capabilities(id string) (workflows.ProviderCapabilities, error)
func (*Runner) ExternalTool ¶
func (r *Runner) ExternalTool(ctx context.Context, definition workflows.ToolDefinition, args json.RawMessage) (json.RawMessage, error)
func (*Runner) RunTurn ¶
func (r *Runner) RunTurn(ctx context.Context, req workflows.SessionRequest, emit func(workflows.ProviderEvent)) (result workflows.SessionResult, err error)
func (*Runner) RunnerForRoles ¶
func (r *Runner) RunnerForRoles(raw json.RawMessage) (workflows.AgentRunner, error)
func (*Runner) SecretValues ¶
func (*Runner) ToolPolicy ¶
func (*Runner) ValidateConversationOutput ¶
ValidateConversationOutput rejects contracts the provider cannot transport.
func (*Runner) WithWorkerWorkspace ¶
func (r *Runner) WithWorkerWorkspace(role, workspace string) (workflows.SessionRunner, error)
func (*Runner) WorkerAccess ¶
func (r *Runner) WorkerAccess(id string) (workflows.WorkerAccess, error)
func (*Runner) WorkerLimits ¶
func (r *Runner) WorkerLimits(id string) (workflows.WorkerLimits, error)
Click to show internal directories.
Click to hide internal directories.