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
GPTScript also provides a generic credential tool (`github.com/gptscript-ai/credential`) that is ideal for cases
56
+
where you only need to set one environment variable. Here is an example of how to use it:
57
+
58
+
```yaml
59
+
credentials: github.com/gptscript-ai/credential as myCredentialName with MY_ENV_VAR as env and "this message will be displayed to the user" as message and key as field
60
+
61
+
(tool stuff here)
62
+
```
63
+
64
+
When this tool is run, the user will be shown the message and prompted to enter a key. The value entered will be set as
65
+
the environment variable `MY_ENV_VAR` and stored in a credential called `myCredentialName`.
66
+
67
+
See [the repo](https://github.com/gptscript-ai/credential) for more information.
68
+
53
69
## Credential Tool Arguments
54
70
55
71
A credential tool may define arguments. Here is an example:
0 commit comments