You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AgentOS includes a structured delegation system that lets a “parent” agent offload subtasks to “child” agents while propagating rich context through a shared, in-memory key/value store.
135
+
136
+
Key pieces:
137
+
138
+
-`delegate_subtask` tool: LLM-facing tool that accepts structured fields like `task`, `context_json`, `constraints_json`, `expected_output_schema_json`, and `timeout`.
139
+
-`SharedContext`: a key/value store child agents can read/write during the delegation chain (avoids lossy prompt compression).
140
+
- Delegation chaining: if a child agent delegates again, the same shared context key is reused automatically.
141
+
142
+
Minimal wiring example:
143
+
144
+
```python
145
+
from agentos.core.agent import Agent
146
+
from agentos.core.delegation import DelegationManager
0 commit comments