Index
operators
¶
Operators — persistent, scheduled autonomous agents.
Classes¶
OperatorManager
¶
Manages operator manifests and their lifecycle via the TaskScheduler.
| PARAMETER | DESCRIPTION |
|---|---|
system
|
A
TYPE:
|
Source code in src/openjarvis/operators/manager.py
Attributes¶
Functions¶
register
¶
register(manifest: OperatorManifest) -> None
discover
¶
discover(directory: str | Path) -> List[OperatorManifest]
Discover and register operator manifests from a directory.
Scans for *.toml files in directory and loads each as an
operator manifest.
Source code in src/openjarvis/operators/manager.py
activate
¶
Activate an operator by creating a scheduler task.
Returns the scheduler task ID (deterministic: operator:{id}).
Raises KeyError if the operator is not registered, or
RuntimeError if the scheduler is not available.
Source code in src/openjarvis/operators/manager.py
deactivate
¶
Deactivate an operator by cancelling its scheduler task.
Source code in src/openjarvis/operators/manager.py
pause
¶
Pause an active operator.
Source code in src/openjarvis/operators/manager.py
resume
¶
Resume a paused operator.
Source code in src/openjarvis/operators/manager.py
status
¶
Return status of all registered operators.
Merges manifest info with scheduler task state.
Source code in src/openjarvis/operators/manager.py
run_once
¶
Execute a single tick of an operator immediately.
Useful for development and testing. Returns the agent's response.
Source code in src/openjarvis/operators/manager.py
get_manifest
¶
get_manifest(operator_id: str) -> Optional[OperatorManifest]
OperatorManifest
dataclass
¶
OperatorManifest(id: str, name: str, version: str = '0.1.0', description: str = '', author: str = '', tools: List[str] = list(), system_prompt: str = '', system_prompt_path: str = '', max_turns: int = 20, temperature: float = 0.3, schedule_type: str = 'interval', schedule_value: str = '300', metrics: List[str] = list(), required_capabilities: List[str] = list(), settings: Dict[str, Any] = dict(), metadata: Dict[str, Any] = dict())
Manifest describing a persistent autonomous operator.
Functions¶
load_operator
¶
load_operator(path: str | Path) -> OperatorManifest
Load an operator manifest from a TOML file.
Supports inline system_prompt or external system_prompt_path
(resolved relative to the TOML file).