This commit is contained in:
Timothy Jaeryang Baek 2025-04-05 14:31:22 -07:00
parent 71625663c0
commit 9ea6cea0ba

View File

@ -337,7 +337,9 @@ def convert_openapi_to_tool_payload(openapi_spec):
tool = { tool = {
"type": "function", "type": "function",
"name": operation.get("operationId"), "name": operation.get("operationId"),
"description": operation.get("summary", "No description available."), "description": operation.get(
"description", operation.get("summary", "No description available.")
),
"parameters": {"type": "object", "properties": {}, "required": []}, "parameters": {"type": "object", "properties": {}, "required": []},
} }