Skip to content

Why the Agent SDK doesn't need the "description schema" of a tool #427

Closed as not planned
@Stephen-SMJ

Description

@Stephen-SMJ

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"],
}
}
}
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestion about using the SDKstale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions