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
Copy file name to clipboardExpand all lines: README.md
+79-55
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,14 @@ To use the module, you need to first set the OPENAI_API_KEY environment variable
16
16
17
17
Additionally, you need the `gptscript` binary. You can install it on your system using the [installation instructions](https://github.com/gptscript-ai/gptscript?tab=readme-ov-file#1-install-the-latest-release). The binary can be on the PATH, or the `GPTSCRIPT_BIN` environment variable can be used to specify its location.
18
18
19
+
## Client
20
+
21
+
There are currently a couple "global" options, and the client helps to manage those. A client without any options is
22
+
likely what you want. However, here are the current global options:
23
+
24
+
-`gptscriptURL`: The URL (including `http(s)://) of an "SDK server" to use instead of the fork/exec model.
25
+
-`gptscriptBin`: The path to a `gptscript` binary to use instead of the bundled one.
26
+
19
27
## Options
20
28
21
29
These are optional options that can be passed to the various `exec` functions.
@@ -26,6 +34,10 @@ None of the options is required, and the defaults will reduce the number of call
26
34
-`quiet`: No output logging
27
35
-`chdir`: Change current working directory
28
36
-`subTool`: Use tool of this name, not the first tool
37
+
-`input`: Input arguments for the tool run
38
+
-`workspace`: Directory to use for the workspace, if specified it will not be deleted on exit
39
+
-`inlcudeEvents`: Whether to include the streaming of events. Default (false). Note that if this is true, you must stream the events. See below for details.
40
+
-`chatState`: The chat state to continue, or null to start a new chat and return the state
The script is relative to the callers source directory.
214
+
In order to stream events, you must set `IncludeEvents` option to `true`. You if you don't set this and try to stream events, then it will succeed, but you will not get any events. More importantly, if you set `IncludeEvents` to `true`, you must stream the events for the script to complete.
| instructions | string |`""`| Instructions on how to use the tool. |
236
266
| 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 |
0 commit comments