Documentation
¶
Overview ¶
Package agentctl provides a unix-socket control channel between the wick MCP stdio process and the wick HTTP daemon. The daemon owns the agent pool; stdio processes send commands (switch_provider, kill) and receive a JSON response.
Socket path: ~/.<app>/agents/agentctl.sock (same dir as gate.sock)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SocketPath ¶
func SocketPath() string
SocketPath returns the platform path for the agentctl unix socket.
Types ¶
type Cmd ¶
type Cmd struct {
Op string `json:"op"` // "switch_provider" | "kill"
SessionID string `json:"session_id,omitempty"` // empty = auto-resolve from active pool
AgentName string `json:"agent_name,omitempty"` // empty = "main"
ProviderType string `json:"provider_type,omitempty"` // for switch_provider
ProviderName string `json:"provider_name,omitempty"` // for switch_provider
}
Cmd is the command sent from stdio → daemon.
type Reply ¶
type Reply struct {
OK bool `json:"ok"`
Error string `json:"error,omitempty"`
// Fields echoed on success.
SessionID string `json:"session_id,omitempty"`
AgentName string `json:"agent_name,omitempty"`
ProviderType string `json:"provider_type,omitempty"`
ProviderName string `json:"provider_name,omitempty"`
}
Reply is the daemon's response.
Click to show internal directories.
Click to hide internal directories.