test api key

This commit is contained in:
Zishan
2025-02-12 15:04:10 +01:00
parent 1aee0234fc
commit a032bbaba3

View File

@@ -54,9 +54,10 @@ class WeatherAgent:
tools=[self.get_weather_function],
model="claude-3-5-sonnet-20241022",
max_tokens=1024,
messages=messages,
messages=messages
)
# If there's tool call, Extract the tool call parameters from the response
if len(response.content) > 1 and response.content[1].type == "tool_use":
tool_call_params = response.content[1].input