Documentation
¶
Overview ¶
Package agentapi provides the HTTP server for the ACP agent inside the container.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestContext ¶
type RequestContext struct {
Logger zerolog.Logger
Request *http.Request
Response http.ResponseWriter
}
RequestContext holds the context for a request.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements REST API endpoints and the websocket server that ACP communications are routed through.
func NewServer ¶
func NewServer(agentCommand []string, terminalTools *acptools.TerminalTools, fileTools *acptools.FilesystemTools, plugins *plugin.ACPManager, ) *Server
NewServer creates a new HTTP server for the ACP agent.
func (*Server) ActiveConnection ¶ added in v0.0.2
ActiveConnection returns the number of currently active websocket connections.
Click to show internal directories.
Click to hide internal directories.