mirror of
https://github.com/katanemo/plano.git
synced 2026-04-25 08:46:24 +02:00
Add function calling support using bolt-fc-1b (#35)
This commit is contained in:
parent
fdfad87347
commit
7b5203a2ce
39 changed files with 1763 additions and 416 deletions
33
function_resolver/test/test_payload.json
Normal file
33
function_resolver/test/test_payload.json
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Find the area of a triangle with a base of 10 units and height of 5 units."
|
||||
}
|
||||
],
|
||||
"tools": [
|
||||
{
|
||||
"name": "calculate_triangle_area",
|
||||
"description": "Calculate the area of a triangle given its base and height.",
|
||||
"parameters": {
|
||||
"type": "dict",
|
||||
"properties": {
|
||||
"base": {
|
||||
"type": "integer",
|
||||
"description": "The base of the triangle.",
|
||||
"required": true
|
||||
},
|
||||
"height": {
|
||||
"type": "integer",
|
||||
"description": "The height of the triangle.",
|
||||
"required": true
|
||||
},
|
||||
"unit": {
|
||||
"type": "string",
|
||||
"description": "The unit of measure (defaults to 'units' if not specified)"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue