File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,42 +73,54 @@ String functionCallJson = fcp.parse(calculator);
7373
7474``` json
7575[
76- {
77- "name" : " add" ,
78- "description" : " 将两个数字相加" ,
79- "parameters" : {
80- "type" : " object" ,
81- "properties" : {
82- "a" : {
83- "type" : " integer" ,
84- "description" : " 第一个数字"
85- },
86- "b" : {
87- "type" : " integer" ,
88- "description" : " 第二个数字"
89- }
90- },
91- "required" : [" a" , " b" ]
92- }
93- },
94- {
95- "name" : " multiply" ,
96- "description" : " 将两个数字相乘" ,
97- "parameters" : {
98- "type" : " object" ,
99- "properties" : {
100- "x" : {
101- "type" : " integer" ,
102- "description" : " 第一个数字"
103- },
104- "y" : {
105- "type" : " integer" ,
106- "description" : " 第二个数字"
107- }
108- },
109- "required" : [" x" , " y" ]
110- }
76+ {
77+ "type" : " function" ,
78+ "function" : {
79+ "name" : " add" ,
80+ "description" : " 将两个数字相加" ,
81+ "parameters" : {
82+ "type" : " object" ,
83+ "properties" : {
84+ "a" : {
85+ "type" : " integer" ,
86+ "description" : " 第一个数字"
87+ },
88+ "b" : {
89+ "type" : " integer" ,
90+ "description" : " 第二个数字"
91+ }
92+ },
93+ "required" : [
94+ " a" ,
95+ " b"
96+ ]
97+ }
98+ }
99+ },
100+ {
101+ "type" : " function" ,
102+ "function" : {
103+ "name" : " multiply" ,
104+ "description" : " 将两个数字相乘" ,
105+ "parameters" : {
106+ "type" : " object" ,
107+ "properties" : {
108+ "x" : {
109+ "type" : " integer" ,
110+ "description" : " 第一个数字"
111+ },
112+ "y" : {
113+ "type" : " integer" ,
114+ "description" : " 第二个数字"
115+ }
116+ },
117+ "required" : [
118+ " x" ,
119+ " y"
120+ ]
121+ }
111122 }
123+ }
112124]
113125```
114126
You can’t perform that action at this time.
0 commit comments