mirror of
https://github.com/katanemo/plano.git
synced 2026-04-30 03:16:28 +02:00
Add supported parameter type, validation and tests (#88)
* Add supported parameter type and validation * make the tools format more compliant with openai * more updates * fix more * fix unit test
This commit is contained in:
parent
59229b8fc9
commit
75cf5e5304
7 changed files with 273 additions and 11 deletions
|
|
@ -33,7 +33,7 @@ class ArchHandler:
|
|||
|
||||
def _format_system(self, tools: List[Dict[str, Any]]):
|
||||
def convert_tools(tools):
|
||||
return "\n".join([json.dumps(tool["function"]) for tool in tools])
|
||||
return "\n".join([json.dumps(tool) for tool in tools])
|
||||
|
||||
tool_text = convert_tools(tools)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue