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
This module provides a set of functions to interact with gptscripts. It allows for executing scripts, listing available tools and models, and more. The functions are designed to be used in a Node.js environment.
3
+
This module provides a set of functions to interact with gptscripts. It allows for executing scripts, listing available
4
+
tools and models, and more. The functions are designed to be used in a Node.js environment.
| name | string |`""`| The name of the tool. Optional only on the first tool if there are multiple tools defined. |
259
-
| description | string |`""`| A brief description of what the tool does, this is important for explaining to the LLM when it should be used. |
260
-
| tools | array |`[]`| An array of tools that the current tool might depend on or use. |
261
-
| maxTokens | number/undefined |`undefined`| The maximum number of tokens to be used. Prefer `undefined` for uninitialized or optional values. |
262
-
| model | string |`""`| The model that the tool uses, if applicable. |
263
-
| disableCache | boolean |`true`| Whether caching is enabled for the tool. |
264
-
| temperature | number/undefined |`undefined`| The temperature setting for the model, affecting randomness. `undefined` for default behavior. |
265
-
| args | object |`{}`| Additional arguments specific to the tool, described by key-value pairs. |
266
-
| internalPrompt | boolean |`false`| An internal prompt used by the tool, if any. |
267
-
| instructions | string |`""`| Instructions on how to use the tool. |
268
-
| jsonResponse | boolean |`false`| Whether the tool returns a JSON response instead of plain text. You must include the word 'json' in the body of the prompt |
| name | string |`""`| The name of the tool. Optional only on the first tool if there are multiple tools defined. |
188
+
| description | string |`""`| A brief description of what the tool does, this is important for explaining to the LLM when it should be used. |
189
+
| tools | array |`[]`| An array of tools that the current tool might depend on or use. |
190
+
| maxTokens | number/undefined |`undefined`| The maximum number of tokens to be used. Prefer `undefined` for uninitialized or optional values. |
191
+
| modelName | string |`""`| The model that the tool uses, if applicable. |
192
+
| cache | boolean |`true`| Whether caching is enabled for the tool. |
193
+
| temperature | number/undefined |`undefined`| The temperature setting for the model, affecting randomness. `undefined` for default behavior. |
194
+
| args | object |`{}`| Additional arguments specific to the tool, described by OpenAPIv3 spec. |
195
+
| internalPrompt | boolean |`false`| An internal prompt used by the tool, if any. |
196
+
| instructions | string |`""`| Instructions on how to use the tool. |
197
+
| jsonResponse | boolean |`false`| Whether the tool returns a JSON response instead of plain text. You must include the word 'json' in the body of the prompt |
198
+
| export | string[]|[]| A list of tools exported by this tool |
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
204
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
205
+
License. You may obtain a copy of the License at
281
206
282
207
<http://www.apache.org/licenses/LICENSE-2.0>
283
208
284
-
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
209
+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "
210
+
AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
211
+
language governing permissions and limitations under the License.
0 commit comments