Documentation
¶
Index ¶
- type Client
- type ClientManager
- func (m *ClientManager) AgentInfo(name string) (title, description string, ok bool)
- func (m *ClientManager) Available() []string
- func (m *ClientManager) CloseAll()
- func (m *ClientManager) Get(ctx context.Context, name string) (tool.ACPAgentClient, error)
- func (m *ClientManager) SetApprovalHandler(h func(context.Context, string, string) permission.Decision)
- func (m *ClientManager) SetWorkingDir(dir string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) PromptStream ¶
func (c *Client) PromptStream(ctx context.Context, prompt string, onEvent func(tool.ACPPromptEvent)) (*tool.ACPPromptResult, error)
type ClientManager ¶
type ClientManager struct {
// contains filtered or unexported fields
}
func NewClientManager ¶
func NewClientManager(workingDir string, policy permission.PermissionPolicy) *ClientManager
func (*ClientManager) AgentInfo ¶
func (m *ClientManager) AgentInfo(name string) (title, description string, ok bool)
func (*ClientManager) Available ¶
func (m *ClientManager) Available() []string
func (*ClientManager) CloseAll ¶
func (m *ClientManager) CloseAll()
func (*ClientManager) Get ¶
func (m *ClientManager) Get(ctx context.Context, name string) (tool.ACPAgentClient, error)
func (*ClientManager) SetApprovalHandler ¶
func (m *ClientManager) SetApprovalHandler(h func(context.Context, string, string) permission.Decision)
func (*ClientManager) SetWorkingDir ¶
func (m *ClientManager) SetWorkingDir(dir string)
Click to show internal directories.
Click to hide internal directories.