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
let tools_string = r#"[{"type": "function","function": {"name": "get_current_weather","description": "Get the current weather","parameters": {"type": "object","properties": {"location": {"type": "string","description": "The city and state, e.g. San Francisco, CA"},"format": {"type": "string","enum": ["celsius", "fahrenheit"],"description": "The temperature unit to use. Infer this from the users location."}},"required": ["location", "format"]}}}]"#.to_string();
@@ -1226,6 +1229,7 @@ TOOL CALL ID: 0
1226
1229
.to_string(),
1227
1230
),
1228
1231
},
1232
+
tool_call_id:None,
1229
1233
},
1230
1234
Message{
1231
1235
name:None,
@@ -1235,6 +1239,7 @@ TOOL CALL ID: 0
1235
1239
"What is the weather like in Brooklyn, New York?".to_string(),
1236
1240
),
1237
1241
},
1242
+
tool_call_id:None,
1238
1243
},
1239
1244
];
1240
1245
let tools_string = r#"[{"type": "function","function": {"name": "get_current_weather","description": "Get the current weather","parameters": {"type": "object","properties": {"location": {"type": "string","description": "The city and state, e.g. San Francisco, CA"},"format": {"type": "string","enum": ["celsius", "fahrenheit"],"description": "The temperature unit to use. Infer this from the users location."}},"required": ["location", "format"]}}}]"#.to_string();
assert_eq!(textmsg.content,"Whats in this image?");
0 commit comments