Skip to content

Commit 89fa350

Browse files
authored
Merge pull request #19 from Sankhya-AI/alpha
V2.2.4
2 parents 91f85fe + afc80a2 commit 89fa350

File tree

9 files changed

+915
-30
lines changed

9 files changed

+915
-30
lines changed

dhee/adapters/base.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,15 +195,22 @@ def context(
195195
self,
196196
task_description: Optional[str] = None,
197197
user_id: Optional[str] = None,
198+
operational: bool = False,
198199
) -> Dict[str, Any]:
199-
"""HyperAgent session bootstrap. Returns everything the agent needs."""
200+
"""HyperAgent session bootstrap. Returns everything the agent needs.
201+
202+
Args:
203+
operational: If True, return compact actionable-only format.
204+
"""
200205
uid = user_id or self._user_id
201206
self._tracker.on_context(task_description)
202207
hyper_ctx = self._buddhi.get_hyper_context(
203208
user_id=uid,
204209
task_description=task_description,
205210
memory=self._engram._memory,
206211
)
212+
if operational:
213+
return hyper_ctx.to_operational_dict()
207214
return hyper_ctx.to_dict()
208215

209216
# ------------------------------------------------------------------

0 commit comments

Comments
 (0)