Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrParseError = -32700 ErrInvalidRequest = -32600 ErrMethodNotFound = -32601 ErrInvalidParams = -32602 ErrInternal = -32603 )
View Source
const Identity = "vscode"
View Source
const ProtocolVersion = 1
Variables ¶
View Source
var ErrSetupRequired = errors.New("vscodeagent: setup required")
Functions ¶
This section is empty.
Types ¶
type ApprovalBroker ¶
type ApprovalBroker struct {
// contains filtered or unexported fields
}
func NewApprovalBroker ¶
func NewApprovalBroker( request func(context.Context, libacp.RequestPermissionRequest) (libacp.RequestPermissionResponse, error), activePolicy func(context.Context) hitlPolicyRef, sessionID func(context.Context) string, ) *ApprovalBroker
func (*ApprovalBroker) AskApproval ¶
func (b *ApprovalBroker) AskApproval(ctx context.Context, req hitlservice.ApprovalRequest) (bool, error)
type Runtime ¶
type Runtime struct {
Engine *enginesvc.Engine
Agent agentservice.Agent
Chain *taskengine.TaskChainDefinition
FIMChain *taskengine.TaskChainDefinition
CompactChain *taskengine.TaskChainDefinition
Close func()
}
type RuntimeBuilder ¶
type RuntimeBuilder func(ctx context.Context, hooks RuntimeHooks) (*Runtime, error)
type RuntimeHooks ¶
type RuntimeHooks struct {
AskApproval localtools.AskApproval
EventSink taskengine.TaskEventSink
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func New ¶
func New(cfg ServerConfig) (*Server, error)
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.