poolagent

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentCreator

type AgentCreator interface {
	CreateAgent(ctx context.Context, name string, req AgentRequest) (agent.Agent, error)
}

type AgentRequest

type AgentRequest struct {
	Name               string
	Description        string
	SystemInstructions string
	WorkingDirectory   string
}

type AllPoolMembersFailedError

type AllPoolMembersFailedError struct {
	PoolName    string
	MemberNames string
	Errors      []AttemptError
	Err         error
}

func (*AllPoolMembersFailedError) Error

func (e *AllPoolMembersFailedError) Error() string

func (*AllPoolMembersFailedError) Unwrap

func (e *AllPoolMembersFailedError) Unwrap() error

type AttemptError

type AttemptError struct {
	Member string
	Index  int
	Err    string
}

type MemberConfig

type MemberConfig struct {
	Name string
	Cfg  agentconfig.Config
}

type PoolAgent

type PoolAgent struct {
	agent.Agent
	// contains filtered or unexported fields
}

func NewPoolAgent

func NewPoolAgent(ctx context.Context, poolName string, members []MemberConfig, req AgentRequest, agentCreator AgentCreator) (*PoolAgent, error)

func (*PoolAgent) Close

func (p *PoolAgent) Close() error

type PoolExecutor

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

func NewPoolExecutor

func NewPoolExecutor(poolName string, members []MemberConfig, agentCreator AgentCreator, req AgentRequest) *PoolExecutor

func (*PoolExecutor) Agent

func (p *PoolExecutor) Agent(ctx context.Context) (agent.Agent, error)

func (*PoolExecutor) Close

func (p *PoolExecutor) Close() error

Jump to

Keyboard shortcuts

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