Closed as not planned
Description
Question
Hi, I want to know why the current Agent SDK does not need the "description schema" of tools when using a functional tool. For example:
@function_tool
def get_weather(city: str) -> str:
return f"The weather in {city} is sunny."
Previously, we needed to provide another JSON description like:
tools = [
{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get the current weather in a given location",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "The city and state, e.g. San Francisco, CA",
},
},
"required": ["location"],
}
}
}
]