Constructor
Creates a new officeLLM instance with manager and worker agents.
Configuration object containing manager and workers
Example
Methods
executeTask
Execute a task through the manager agent.
Task object with title, description, and priority
Returns: Promise resolving to task result
callWorker
Call a specific worker agent directly.
Name of the worker agent to call
Parameters to pass to the worker
Returns: Promise resolving to task result
getWorkers
Get list of available worker agent names.
Returns: Array of worker names
getManager
Get manager agent information.
Returns: Object with manager name and description
Types
OfficeLLMConfig
ManagerConfig
WorkerConfig
Task
TaskResult
Usage Examples
Basic Task Execution
Direct Worker Call
Getting Available Workers