mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-04-26 04:42:41 +00:00
Fix payload (nest under tools key)
This commit is contained in:
@@ -82,7 +82,7 @@ class PlusAPI:
|
||||
"file": encoded_file,
|
||||
"description": description,
|
||||
"available_exports": available_exports,
|
||||
"tools_metadata": tools_metadata,
|
||||
"tools_metadata": {"tools": tools_metadata} if tools_metadata else None,
|
||||
}
|
||||
return self._make_request("POST", f"{self.TOOLS_RESOURCE}", json=params)
|
||||
|
||||
|
||||
@@ -244,7 +244,7 @@ class TestPlusAPI(unittest.TestCase):
|
||||
"file": encoded_file,
|
||||
"description": description,
|
||||
"available_exports": available_exports,
|
||||
"tools_metadata": tools_metadata,
|
||||
"tools_metadata": {"tools": tools_metadata},
|
||||
}
|
||||
mock_make_request.assert_called_once_with(
|
||||
"POST", "/crewai_plus/api/v1/tools", json=params
|
||||
|
||||
Reference in New Issue
Block a user