Spaces:
Paused
Paused
Download agent_zero_framework/python/api/message_async.py from Oldmangrizzz/Agent-Node: direct link, hf CLI and curl.
- Browser
- Download file 325 Bytes
-
https://huggingface.co/spaces/Oldmangrizzz/Agent-Node/resolve/main/agent_zero_framework/python/api/message_async.py
- Command line
-
hf download hf://spaces/Oldmangrizzz/Agent-Node/agent_zero_framework/python/api/message_async.py
-
curl -L -o message_async.py https://huggingface.co/spaces/Oldmangrizzz/Agent-Node/resolve/main/agent_zero_framework/python/api/message_async.py
325 Bytes
| from agent import AgentContext | |
| from python.helpers.defer import DeferredTask | |
| from python.api.message import Message | |
| class MessageAsync(Message): | |
| async def respond(self, task: DeferredTask, context: AgentContext): | |
| return { | |
| "message": "Message received.", | |
| "context": context.id, | |
| } | |