Documentation
¶
Overview ¶
Package pool manages agent worker pools for concurrent request handling
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoWorkerAvailable is returned when all workers are busy and queue is full ErrNoWorkerAvailable = errors.New("no worker available") // ErrAgentNotFound is returned when the requested agent doesn't exist ErrAgentNotFound = errors.New("agent not found") // ErrPoolClosed is returned when pool is closed ErrPoolClosed = errors.New("pool is closed") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
WorkersPerAgent int // Number of workers per agent (default: 1)
QueueSize int // Size of task queue per agent (default: 10)
}
Config holds pool configuration
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool manages workers for each agent
func (*Pool) Initialize ¶
Initialize sets up workers for an agent
Click to show internal directories.
Click to hide internal directories.