agenthost

package
v1.0.0-rc.14 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func McpServerForACP

func McpServerForACP(row *runtimetypes.MCPServer) (libacp.McpServer, error)

func ResolveForwardedMcpServers

func ResolveForwardedMcpServers(ctx context.Context, resolver McpServerResolver, names []string) ([]libacp.McpServer, error)

Types

type Agent

type Agent interface {
	Connect(ctx context.Context, harness libacp.Client) (*Handle, error)
}

type DenyingHarness

type DenyingHarness struct {
	RecordingHarness
	// contains filtered or unexported fields
}

func (*DenyingHarness) Denied

func (h *DenyingHarness) Denied() []string

type ExternalACPAgent

type ExternalACPAgent struct {
	Config runtimetypes.ExternalACPConfig

	Stderr io.Writer

	KillGrace time.Duration

	Tracker libtracker.ActivityTracker

	SelfSpawn bool
}

func (*ExternalACPAgent) Command

func (a *ExternalACPAgent) Command(ctx context.Context) (*exec.Cmd, error)

func (*ExternalACPAgent) Connect

func (a *ExternalACPAgent) Connect(ctx context.Context, harness libacp.Client) (*Handle, error)

type Handle

type Handle struct {
	Conn *libacp.ClientSideConnection
	// contains filtered or unexported fields
}

func (*Handle) Close

func (h *Handle) Close() error

type McpServerResolver

type McpServerResolver interface {
	GetByName(ctx context.Context, name string) (*runtimetypes.MCPServer, error)
}

type RecordingHarness

type RecordingHarness struct {
	libacp.UnimplementedClient
	// contains filtered or unexported fields
}

func (*RecordingHarness) AvailableCommands

func (h *RecordingHarness) AvailableCommands() []libacp.AvailableCommand

func (*RecordingHarness) MessageText

func (h *RecordingHarness) MessageText() string

func (*RecordingHarness) SessionUpdate

func (*RecordingHarness) Updates

type TurnRequest

type TurnRequest struct {
	Cwd string

	Prompt []libacp.ContentBlock

	ClientInfo *libacp.Implementation

	ClientCapabilities libacp.ClientCapabilities

	McpServers []libacp.McpServer

	Stderr io.Writer

	KillGrace time.Duration
}

type TurnResult

type TurnResult struct {
	Initialize libacp.InitializeResponse
	SessionID  libacp.SessionID
	StopReason libacp.StopReason

	ForwardedMcpServers []string
	DroppedMcpServers   []string
}

func DriveTurn

func DriveTurn(ctx context.Context, agent *runtimetypes.Agent, harness libacp.Client, req TurnRequest) (*TurnResult, error)

Jump to

Keyboard shortcuts

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