Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion dhee/adapters/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,15 +195,22 @@ def context(
self,
task_description: Optional[str] = None,
user_id: Optional[str] = None,
operational: bool = False,
) -> Dict[str, Any]:
"""HyperAgent session bootstrap. Returns everything the agent needs."""
"""HyperAgent session bootstrap. Returns everything the agent needs.

Args:
operational: If True, return compact actionable-only format.
"""
uid = user_id or self._user_id
self._tracker.on_context(task_description)
hyper_ctx = self._buddhi.get_hyper_context(
user_id=uid,
task_description=task_description,
memory=self._engram._memory,
)
if operational:
return hyper_ctx.to_operational_dict()
return hyper_ctx.to_dict()

# ------------------------------------------------------------------
Expand Down
Loading
Loading