Documentation
¶
Overview ¶
Package adapter defines the agent adapter contract and built-in adapters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MCPAdapter ¶
type MCPAdapter struct{}
MCPAdapter launches an MCP-capable agent process via stdio transport. The agent is expected to connect to configured MCP tool servers and use them to interact with the cluster.
type RunInput ¶
type RunInput struct {
ScenarioID string
PromptPath string
WorkspaceDir string
KubeconfigPath string
Timeout time.Duration
Tools map[string]any
AgentCommand string
AgentArgs []string
Model string
Env map[string]string
}
RunInput is the input given to an agent adapter.
type RunResult ¶
type RunResult struct {
ExitCode int
Transcript string
Stdout string
Stderr string
ToolCalls []ToolCallRecord
Metadata map[string]string
}
RunResult is the normalized output from an agent adapter.
type ToolCallRecord ¶
type ToolCallRecord struct {
Tool string `json:"tool"`
Args map[string]any `json:"args,omitempty"`
Result string `json:"result,omitempty"`
Timestamp time.Time `json:"timestamp"`
}
ToolCallRecord is an historical record of a tool invocation by the agent, written to run artifacts. Not to be confused with agent.ToolCall, which is the in-flight request the LLM sends over the provider protocol.
Click to show internal directories.
Click to hide internal directories.