@@ -26,6 +26,16 @@ npm exec -c "gptscript https://get.gptscript.ai/echo.gpt --input 'Hello, World!'
26
26
27
27
you will see "Hello, World!" in the output of the command.
28
28
29
+ ## Options
30
+
31
+ These are optional options that can be passed to the various ` exec ` functions.
32
+ None of the options is required, and the defaults will reduce the number of calls made to the Model API.
33
+
34
+ - ` cache ` : Enable or disable caching. Default (true).
35
+ - ` cacheDir ` : Specify the cache directory.
36
+ - ` quiet ` : No output logging
37
+ - ` chdir ` : Change current working directory
38
+
29
39
## Functions
30
40
31
41
### listTools
@@ -66,16 +76,6 @@ async function listModels() {
66
76
67
77
Executes a prompt with optional arguments.
68
78
69
- ** Options:**
70
-
71
- These are optional options that can be passed to the ` exec ` function.
72
- Neither option is required, and the defaults will reduce the number of calls made to the Model API.
73
-
74
- - ` cache ` : Enable or disable caching. Default (true).
75
- - ` cacheDir ` : Specify the cache directory.
76
-
77
- ** Usage:**
78
-
79
79
``` javascript
80
80
const gptscript = require (' @gptscript-ai/gptscript' );
81
81
93
93
94
94
### execFile
95
95
96
- Executes a GPT script file with optional input and arguments.
97
-
98
- ** Options:**
99
-
100
- These are optional options that can be passed to the ` exec ` function.
101
- Neither option is required, and the defaults will reduce the number of calls made to the Model API.
102
-
103
- - ` cache ` : Enable or disable caching.
104
- - ` cacheDir ` : Specify the cache directory.
105
-
106
- ** Usage:**
107
-
108
- The script is relative to the callers source directory.
96
+ Executes a GPT script file with optional input and arguments. The script is relative to the callers source directory.
109
97
110
98
``` javascript
111
99
const gptscript = require (' @gptscript-ai/gptscript' );
@@ -128,16 +116,6 @@ async function execFile() {
128
116
129
117
Executes a gptscript with optional input and arguments, and returns the output streams.
130
118
131
- ** Options:**
132
-
133
- These are optional options that can be passed to the ` exec ` function.
134
- Neither option is required, and the defaults will reduce the number of calls made to the Model API.
135
-
136
- - ` cache ` : Enable or disable caching.
137
- - ` cacheDir ` : Specify the cache directory.
138
-
139
- ** Usage:**
140
-
141
119
``` javascript
142
120
const gptscript = require (' @gptscript-ai/gptscript' );
143
121
@@ -172,16 +150,6 @@ async function streamExec() {
172
150
173
151
Executes a gptscript with optional input and arguments, and returns the output and event streams.
174
152
175
- ** Options:**
176
-
177
- These are optional options that can be passed to the ` exec ` function.
178
- Neither option is required, and the defaults will reduce the number of calls made to the Model API.
179
-
180
- - ` cache ` : Enable or disable caching.
181
- - ` cacheDir ` : Specify the cache directory.
182
-
183
- ** Usage:**
184
-
185
153
``` javascript
186
154
const gptscript = require (' @gptscript-ai/gptscript' );
187
155
@@ -218,16 +186,6 @@ async function streamExecWithEvents() {
218
186
219
187
### streamExecFile
220
188
221
- ** Options:**
222
-
223
- These are optional options that can be passed to the ` exec ` function.
224
- Neither option is required, and the defaults will reduce the number of calls made to the Model API.
225
-
226
- - ` cache ` : Enable or disable caching.
227
- - ` cacheDir ` : Specify the cache directory.
228
-
229
- ** Usage:**
230
-
231
189
The script is relative to the callers source directory.
232
190
233
191
``` javascript
@@ -258,16 +216,6 @@ async function streamExecFile() {
258
216
259
217
### streamExecFileWithEvents
260
218
261
- ** Options:**
262
-
263
- These are optional options that can be passed to the ` exec ` function.
264
- Neither option is required, and the defaults will reduce the number of calls made to the Model API.
265
-
266
- - ` cache ` : Enable or disable caching.
267
- - ` cacheDir ` : Specify the cache directory.
268
-
269
- ** Usage:**
270
-
271
219
The script is relative to the callers source directory.
272
220
273
221
``` javascript
0 commit comments