Skip to main content

Constructor

Creates a new officeLLM instance with manager and worker agents.
required
Configuration object containing manager and workers

Example

Methods

executeTask

Execute a task through the manager agent.
required
Task object with title, description, and priority
Returns: Promise resolving to task result

callWorker

Call a specific worker agent directly.
required
Name of the worker agent to call
required
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