I want to use Cohere but farfalle doesn't support it yet.
So I tried to use it, but the following error occurs. It seems that the usage of Tool is different in Cohere.
How to solve this problem?
{ "tools": [ { "type": "function", "function": { "name": "QueryPlan", "description": "Correctly extracted QueryPlan with all the required parameters with correct types", "parameters": { "$defs": { "QueryPlanStep": { "properties": { "id": { "description": "Unique id of the step", "title": "Id", "type": "integer" }, "step": { "title": "Step", "type": "string" }, "dependencies": { "description": "List of step ids that this step depends on information from", "items": { "type": "integer" }, "title": "Dependencies", "type": "array" } }, "required": ["id", "step"], "title": "QueryPlanStep", "type": "object" } }, "properties": { "steps": { "description": "The steps to complete the query", "items": { "$ref": "#/$defs/QueryPlanStep" }, "maxItems": 4, "title": "Steps", "type": "array" } }, "required": ["steps"], "type": "object" } } } ], "tool_choice": { "type": "function", "function": { "name": "QueryPlan" } }}
I want to use Cohere but farfalle doesn't support it yet. So I tried to use it, but the following error occurs. It seems that the usage of Tool is different in Cohere. How to solve this problem?
{ "tools": [ { "type": "function", "function": { "name": "QueryPlan", "description": "Correctly extracted
QueryPlan
with all the required parameters with correct types", "parameters": { "$defs": { "QueryPlanStep": { "properties": { "id": { "description": "Unique id of the step", "title": "Id", "type": "integer" }, "step": { "title": "Step", "type": "string" }, "dependencies": { "description": "List of step ids that this step depends on information from", "items": { "type": "integer" }, "title": "Dependencies", "type": "array" } }, "required": ["id", "step"], "title": "QueryPlanStep", "type": "object" } }, "properties": { "steps": { "description": "The steps to complete the query", "items": { "$ref": "#/$defs/QueryPlanStep" }, "maxItems": 4, "title": "Steps", "type": "array" } }, "required": ["steps"], "type": "object" } } } ], "tool_choice": { "type": "function", "function": { "name": "QueryPlan" } }}