def get_weather(location: str) -> str:
return f"Sunny in {location}"
response = harness.chat.completions.create(
model="allternit-balanced",
messages=[{"role": "user", "content": "What's the weather in Berlin?"}],
tools=[{
"type": "function",
"function": {
"name": "get_weather",
"parameters": {
"type": "object",
"properties": {"location": {"type": "string"}}
}
}
}]
)