Sample_ChatBot / tools.py
DanishShahzad's picture
Create tools.py
80aa0d3 verified
Raw History Blame
501 Bytes
# tools.py (optional if you want to enable tool calling)
tools = [
{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get the weather for a specific city.",
"parameters": {
"type": "object",
"properties": {
"city": {"type": "string", "description": "The city to get weather for"}
},
"required": ["city"]
}
}
}
]