acp

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateReadiness

func ValidateReadiness(cfg config.ACPConfig) error

Types

type Harness

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

func NewHarness

func NewHarness(cfg config.ACPConfig, workspaceRoot string) *Harness

func (*Harness) Capabilities

func (h *Harness) Capabilities() adapter.HarnessCapabilities

func (*Harness) Name

func (h *Harness) Name() string

func (*Harness) RunAction

func (*Harness) StartSession

func (h *Harness) StartSession(ctx context.Context, opts adapter.SessionOpts) (adapter.AgentSession, error)

func (*Harness) SupportsCompact

func (h *Harness) SupportsCompact() bool

type Registry

type Registry struct {
	Agents []RegistryAgent `json:"agents"`
}

func ParseRegistry

func ParseRegistry(data []byte) (Registry, error)

type RegistryAgent

type RegistryAgent struct {
	ID            string                 `json:"id"`
	Name          string                 `json:"name"`
	Description   string                 `json:"description"`
	Distributions []RegistryDistribution `json:"distributions"`
}

func (RegistryAgent) DistributionForCurrentPlatform

func (a RegistryAgent) DistributionForCurrentPlatform() (RegistryDistribution, bool)

type RegistryDistribution

type RegistryDistribution struct {
	Type     string            `json:"type"`
	Command  string            `json:"command"`
	Package  string            `json:"package"`
	Args     []string          `json:"args"`
	Binaries map[string]string `json:"binaries"`
}

type Session

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

func (*Session) Abort

func (s *Session) Abort(ctx context.Context) error

func (*Session) Compact

func (s *Session) Compact(ctx context.Context) error

func (*Session) Done

func (s *Session) Done() <-chan struct{}

func (*Session) Events

func (s *Session) Events() <-chan adapter.AgentEvent

func (*Session) ID

func (s *Session) ID() string

func (*Session) ResumeInfo

func (s *Session) ResumeInfo() map[string]string

func (*Session) SendAnswer

func (s *Session) SendAnswer(_ context.Context, answer string) error

func (*Session) SendMessage

func (s *Session) SendMessage(ctx context.Context, msg string) error

func (*Session) Steer

func (s *Session) Steer(ctx context.Context, msg string) error

func (*Session) Wait

func (s *Session) Wait(ctx context.Context) error

Jump to

Keyboard shortcuts

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