acp

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package acp drives any agent that speaks the Agent Client Protocol (https://agentclientprotocol.com). One agent process is kept per conversation and reused across turns, then stopped after it has been idle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(spec agent.Spec) (agent.Agent, error)

Types

type Agent

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

func (*Agent) Caps

func (a *Agent) Caps() agent.Caps

func (*Agent) Close

func (a *Agent) Close() error

func (*Agent) Models

func (a *Agent) Models(conv string) []string

Models lists the models the agent offers in the conversation's session.

func (*Agent) Run

func (a *Agent) Run(ctx context.Context, req agent.Request, h agent.Handler) (agent.Result, error)

Jump to

Keyboard shortcuts

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