connectrpc

package
v1.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package connectrpc provides a Connect-RPC server implementation for the cagent API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server implements the Connect-RPC AgentService.

func New

func New(ctx context.Context, sessionStore session.Store, runConfig *config.RuntimeConfig, refreshInterval time.Duration, agentSources config.Sources) (*Server, error)

New creates a new Connect-RPC server.

func (*Server) CreateSession

CreateSession creates a new session.

func (*Server) DeleteSession

DeleteSession deletes a session by ID.

func (*Server) GetAgent

GetAgent returns the configuration for a specific agent.

func (*Server) GetSession

GetSession returns a specific session by ID.

func (*Server) Handler

func (s *Server) Handler() http.Handler

Handler returns an http.Handler for the Connect-RPC server.

func (*Server) ListAgents

ListAgents returns all available agents.

func (*Server) ListSessions

ListSessions returns all sessions.

func (*Server) Ping

Ping is a health check endpoint.

func (*Server) ResumeElicitation

ResumeElicitation resumes an elicitation request.

func (*Server) ResumeSession

ResumeSession resumes a paused session.

func (*Server) RunAgent

RunAgent runs an agent loop and streams events.

func (*Server) Serve

func (s *Server) Serve(ctx context.Context, ln net.Listener) error

Serve starts the Connect-RPC server on the given listener.

func (*Server) ToggleToolApproval

ToggleToolApproval toggles the YOLO mode for a session.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL