You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
content="You're a dice game, you should roll the die and see if the number you get back matches the user's guess. If so, tell them they're a winner. Use the player's name in the response.",
73
-
role='system',
73
+
role='user',
74
+
message_kind='system-prompt',
74
75
),
75
76
UserPrompt(
76
77
content='My guess is 4',
77
78
timestamp=datetime.datetime(...),
78
79
role='user',
80
+
message_kind='user-prompt',
79
81
),
80
82
ModelResponse(
81
83
parts=[
82
84
ToolCallPart(
83
85
tool_name='roll_die',
84
86
args=ArgsDict(args_dict={}),
85
87
tool_call_id=None,
86
-
kind='tool-call',
88
+
part_kind='tool-call',
87
89
)
88
90
],
89
-
role='model-response',
90
91
timestamp=datetime.datetime(...),
92
+
role='model',
93
+
message_kind='model-response',
91
94
),
92
95
ToolReturn(
93
96
tool_name='roll_die',
94
97
content='4',
95
98
tool_call_id=None,
96
99
timestamp=datetime.datetime(...),
97
-
role='tool-return',
100
+
role='user',
101
+
message_kind='tool-return',
98
102
),
99
103
ModelResponse(
100
104
parts=[
101
105
ToolCallPart(
102
106
tool_name='get_player_name',
103
107
args=ArgsDict(args_dict={}),
104
108
tool_call_id=None,
105
-
kind='tool-call',
109
+
part_kind='tool-call',
106
110
)
107
111
],
108
-
role='model-response',
109
112
timestamp=datetime.datetime(...),
113
+
role='model',
114
+
message_kind='model-response',
110
115
),
111
116
ToolReturn(
112
117
tool_name='get_player_name',
113
118
content='Anne',
114
119
tool_call_id=None,
115
120
timestamp=datetime.datetime(...),
116
-
role='tool-return',
121
+
role='user',
122
+
message_kind='tool-return',
117
123
),
118
124
ModelResponse(
119
125
parts=[
120
126
TextPart(
121
127
content="Congratulations Anne, you guessed correctly! You're a winner!",
0 commit comments