Spaces:
Sleeping
Sleeping
Download src/api/agent/context.py from HAK-16/sorted-backend: direct link, hf CLI and curl.
- Browser
- Download file 306 Bytes
-
https://huggingface.co/spaces/HAK-16/sorted-backend/resolve/main/src/api/agent/context.py
- Command line
-
hf download hf://spaces/HAK-16/sorted-backend/src/api/agent/context.py
-
curl -L -o context.py https://huggingface.co/spaces/HAK-16/sorted-backend/resolve/main/src/api/agent/context.py
306 Bytes
| """Chat context for the AI agent.""" | |
| from dataclasses import dataclass, field | |
| class ChatContext: | |
| """Shared context passed to agent tools via RunContextWrapper.""" | |
| user_id: str | |
| thread_id: str | |
| tasks_modified: bool = False | |
| modified_tasks: list = field(default_factory=list) | |