operative
diapason.agents.operative
¶
OperativeAgent — persistent, scheduled agent for autonomous operation.
Extends ToolUsingAgent with built-in session persistence and state recall. Designed for Operators: autonomous agents that run on a schedule with automatic state management between ticks.
OperativeAgent
¶
Bases: ToolUsingAgent
Persistent autonomous agent with built-in state management.
The Operative agent extends the standard tool-calling loop with:
- Session loading — restores conversation history from previous ticks.
- State recall — retrieves previous state JSON from memory backend.
- System prompt — injects the operator's protocol instructions.
- Tool loop — standard function-calling loop (same as Orchestrator).
- Session save — persists the tick's prompt and response.
- State persistence — auto-persists state if the agent didn't do it explicitly via memory_store tool.
run(input, context=None, **kwargs)
¶
Execute a single operator tick.