Spaces:
Sleeping
Sleeping
Download tasks/medium.py from Imsachin010/openenv-workflow-agent: direct link, hf CLI and curl.
- Browser
- Download file 795 Bytes
-
https://huggingface.co/spaces/Imsachin010/openenv-workflow-agent/resolve/main/tasks/medium.py
- Command line
-
hf download hf://spaces/Imsachin010/openenv-workflow-agent/tasks/medium.py
-
curl -L -o medium.py https://huggingface.co/spaces/Imsachin010/openenv-workflow-agent/resolve/main/tasks/medium.py
795 Bytes
| from app.state import EnvironmentState, Email, HiddenEmailState | |
| def create_medium_task(): | |
| email = Email( | |
| id="1", | |
| sender="client@company.com", | |
| subject="Project Update", | |
| body="Please send the latest report and confirm timeline" | |
| ) | |
| hidden = HiddenEmailState( | |
| email_id="1", | |
| true_intent="task_request", | |
| urgency="medium", | |
| requires_response=True, | |
| deadline=6, | |
| missing_information=False | |
| ) | |
| state = EnvironmentState( | |
| emails=[email], | |
| tasks=[], | |
| calendar=[], | |
| hidden_email_states=[hidden] | |
| ) | |
| ground_truth = { | |
| "sequence": [ | |
| {"type": "classify", "label": "task_request"}, | |
| {"type": "reply"} | |
| ] | |
| } | |
| return state, ground_truth |