Spaces:
Sleeping
Sleeping
File size: 727 Bytes
1b64cba | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | from app.state import EnvironmentState, Email, HiddenEmailState
def create_easy_task():
email = Email(
id="1",
sender="boss@company.com",
subject="Team Meeting",
body="Schedule a meeting tomorrow at 10am"
)
hidden = HiddenEmailState(
email_id="1",
true_intent="meeting_request",
urgency="high",
requires_response=True,
deadline=5,
missing_information=False
)
state = EnvironmentState(
emails=[email],
tasks=[],
calendar=[],
hidden_email_states=[hidden]
)
ground_truth = {
"correct_action": "classify",
"label": "meeting_request"
}
return state, ground_truth |