Documentation
¶
Index ¶
- func McpServerForACP(row *runtimetypes.MCPServer) (libacp.McpServer, error)
- func ResolveForwardedMcpServers(ctx context.Context, resolver McpServerResolver, names []string) ([]libacp.McpServer, error)
- type Agent
- type DenyingHarness
- type ExternalACPAgent
- type Handle
- type McpServerResolver
- type RecordingHarness
- type TurnRequest
- type TurnResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func McpServerForACP ¶
func McpServerForACP(row *runtimetypes.MCPServer) (libacp.McpServer, error)
Types ¶
type DenyingHarness ¶
type DenyingHarness struct {
RecordingHarness
// contains filtered or unexported fields
}
func (*DenyingHarness) Denied ¶
func (h *DenyingHarness) Denied() []string
func (*DenyingHarness) RequestPermission ¶
func (h *DenyingHarness) RequestPermission(_ context.Context, req libacp.RequestPermissionRequest) (libacp.RequestPermissionResponse, error)
type ExternalACPAgent ¶
type ExternalACPAgent struct {
Config runtimetypes.ExternalACPConfig
Stderr io.Writer
KillGrace time.Duration
Tracker libtracker.ActivityTracker
SelfSpawn bool
}
func NewExternalACPAgent ¶
func NewExternalACPAgent(cfg runtimetypes.ExternalACPConfig) *ExternalACPAgent
type Handle ¶
type Handle struct {
Conn *libacp.ClientSideConnection
// contains filtered or unexported fields
}
type McpServerResolver ¶
type RecordingHarness ¶
type RecordingHarness struct {
libacp.UnimplementedClient
// contains filtered or unexported fields
}
func (*RecordingHarness) AvailableCommands ¶
func (h *RecordingHarness) AvailableCommands() []libacp.AvailableCommand
func (*RecordingHarness) MessageText ¶
func (h *RecordingHarness) MessageText() string
func (*RecordingHarness) SessionUpdate ¶
func (h *RecordingHarness) SessionUpdate(_ context.Context, n libacp.SessionNotification) error
func (*RecordingHarness) Updates ¶
func (h *RecordingHarness) Updates() []libacp.SessionNotification
type TurnRequest ¶
type TurnRequest struct {
Cwd string
Prompt []libacp.ContentBlock
ClientInfo *libacp.Implementation
ClientCapabilities libacp.ClientCapabilities
McpServers []libacp.McpServer
Stderr io.Writer
KillGrace time.Duration
}
type TurnResult ¶
type TurnResult struct {
Initialize libacp.InitializeResponse
SessionID libacp.SessionID
StopReason libacp.StopReason
ForwardedMcpServers []string
DroppedMcpServers []string
}
func DriveTurn ¶
func DriveTurn(ctx context.Context, agent *runtimetypes.Agent, harness libacp.Client, req TurnRequest) (*TurnResult, error)
Click to show internal directories.
Click to hide internal directories.