You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
parameters: /* The parameters the functions accepts, described as a JSON Schema object. This schema is designed to match the TypeScript Record<string, unknown>, allowing for any properties with values of any type. */ToolParameters;
104
110
}
111
+
exportinterfaceToolFunctionCall{
112
+
/**
113
+
* example:
114
+
* TOOL_CALL_1
115
+
*/
116
+
toolCallId: string;
117
+
/**
118
+
* The type of the tool. Currently, only `function` is supported.
119
+
* example:
120
+
* function
121
+
*/
122
+
type: "function";
123
+
function: {
124
+
/**
125
+
* The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
126
+
* example:
127
+
* {}
128
+
*/
129
+
arguments: string;
130
+
/**
131
+
* The name of the function to call.
132
+
* example:
133
+
* checkWeather
134
+
*/
135
+
name: string;
136
+
};
137
+
}
105
138
/**
106
139
* The parameters the functions accepts, described as a JSON Schema object. This schema is designed to match the TypeScript Record<string, unknown>, allowing for any properties with values of any type.
0 commit comments