-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathactions.py
More file actions
74 lines (68 loc) · 2.2 KB
/
actions.py
File metadata and controls
74 lines (68 loc) · 2.2 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
from autosim.base import Action
click_movie = Action(
name="click_movie",
fatigue=2,
description="View detailed information about a movie that might align with your preferences.",
parameters={
"type": "object",
"properties": {
"movie_id": {
"type": "int",
"description": "ID of the movie.",
}
},
"required": ["movie_id"],
},
)
watch_and_rate_movie = Action(
name="watch_and_rate_movie",
fatigue=10,
description="Select and watch a movie that strongly appeals to your tastes, then rate it based on your personal viewing experience and preferences. Avoid rewatching previously rated films.",
parameters={
"type": "object",
"properties": {
"movie_id": {
"type": "int",
"description": "ID of the movie.",
},
"rating": {
"type": "float",
"description": "Rating from 1.0 to 5.0",
},
},
"required": ["movie_id", "rating"],
},
)
previous_page = Action(
name="previous_page",
fatigue=2,
description="Go to the previous page.",
)
next_page = Action(
name="next_page",
fatigue=2,
description="Navigate to the next page of movie recommendations. Use this action to discover more films that might interest you when you've finished reviewing the current page.",
)
back_action = Action(
name="back",
fatigue=5,
description="Return to the previous movie list page. Use this action when the current movie details don't match your preferences.",
)
exit_action = Action(
name="exit",
fatigue=0,
description="""Exit the application when one of the following conditions is met:
1) Your fatigue level has reached its maximum.
2) You've viewed all pages without finding any movies that match your preferences.
3) You've found and watched all the movies that appeal to your tastes.""",
parameters={
"type": "object",
"properties": {
"reason": {
"type": "string",
"description": "Reason for exiting the application.",
}
},
"required": ["reason"],
},
)