Documentation
¶
Index ¶
- func ValidateReadiness(cfg config.ACPConfig) error
- type Harness
- func (h *Harness) Capabilities() adapter.HarnessCapabilities
- func (h *Harness) Name() string
- func (h *Harness) RunAction(ctx context.Context, req adapter.HarnessActionRequest) (adapter.HarnessActionResult, error)
- func (h *Harness) StartSession(ctx context.Context, opts adapter.SessionOpts) (adapter.AgentSession, error)
- func (h *Harness) SupportsCompact() bool
- type Registry
- type RegistryAgent
- type RegistryDistribution
- type Session
- func (s *Session) Abort(ctx context.Context) error
- func (s *Session) Compact(ctx context.Context) error
- func (s *Session) Done() <-chan struct{}
- func (s *Session) Events() <-chan adapter.AgentEvent
- func (s *Session) ID() string
- func (s *Session) ResumeInfo() map[string]string
- func (s *Session) SendAnswer(_ context.Context, answer string) error
- func (s *Session) SendMessage(ctx context.Context, msg string) error
- func (s *Session) Steer(ctx context.Context, msg string) error
- func (s *Session) Wait(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateReadiness ¶
Types ¶
type Harness ¶
type Harness struct {
// contains filtered or unexported fields
}
func (*Harness) Capabilities ¶
func (h *Harness) Capabilities() adapter.HarnessCapabilities
func (*Harness) RunAction ¶
func (h *Harness) RunAction(ctx context.Context, req adapter.HarnessActionRequest) (adapter.HarnessActionResult, error)
func (*Harness) StartSession ¶
func (h *Harness) StartSession(ctx context.Context, opts adapter.SessionOpts) (adapter.AgentSession, error)
func (*Harness) SupportsCompact ¶
type Registry ¶
type Registry struct {
Agents []RegistryAgent `json:"agents"`
}
func ParseRegistry ¶
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 Session ¶
type Session struct {
// contains filtered or unexported fields
}
func (*Session) Events ¶
func (s *Session) Events() <-chan adapter.AgentEvent
func (*Session) ResumeInfo ¶
Click to show internal directories.
Click to hide internal directories.