-
Notifications
You must be signed in to change notification settings - Fork 300
add (docs): add some newer fields to the gpt file reference #683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,7 @@ Here is a simple example of a context provider tool that provides additional con | |
|
||
```yaml | ||
# my-search-context-tool.gpt | ||
export: sys.http.html2text? | ||
share tools: sys.http.html2text? | ||
|
||
#!/bin/bash | ||
echo You are an expert web researcher with access to the Search tool.If the search tool fails to return any information stop execution of the script with message "Sorry! Search did not return any results". Feel free to get the contents of the returned URLs in order to get more information. Provide as much detail as you can. Also return the source of the search results. | ||
|
@@ -71,7 +71,7 @@ Here is an example of a context provider tool that uses args to decide which sea | |
|
||
```yaml | ||
# context_with_arg.gpt | ||
export: github.com/gptscript-ai/search/duckduckgo, github.com/gptscript-ai/search/brave, sys.http.html2text? | ||
share tools: github.com/gptscript-ai/search/duckduckgo, github.com/gptscript-ai/search/brave, sys.http.html2text? | ||
args: search_tool: tool to search with | ||
|
||
#!/bin/bash | ||
|
@@ -84,7 +84,7 @@ Continuing with the above example, this is how you can use it in a script: | |
```yaml | ||
# my_context_with_arg.gpt | ||
context: ./context_with_arg.gpt with ${search} as search_tool | ||
Args: search: Search tool to use | ||
args: search: Search tool to use | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Only for consistency within this page There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm probably going to go through and capitalize everything (I think that's the more canonical way now) as I work on my docs revamp, so this is fine either way for now. |
||
|
||
What are some of the most popular tourist destinations in Scotland, and how many people visit them each year? | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,21 +43,25 @@ Tool instructions go here. | |
|
||
Tool parameters are key-value pairs defined at the beginning of a tool block, before any instructional text. They are specified in the format `key: value`. The parser recognizes the following keys (case-insensitive and spaces are ignored): | ||
|
||
| Key | Description | | ||
|--------------------|-----------------------------------------------------------------------------------------------------------------------------------------------| | ||
| `Name` | The name of the tool. | | ||
| `Model Name` | The LLM model to use, by default it uses "gpt-4-turbo". | | ||
| `Global Model Name`| The LLM model to use for all the tools. | | ||
| `Description` | The description of the tool. It is important that this properly describes the tool's purpose as the description is used by the LLM. | | ||
| `Internal Prompt` | Setting this to `false` will disable the built-in system prompt for this tool. | | ||
| `Tools` | A comma-separated list of tools that are available to be called by this tool. | | ||
| `Global Tools` | A comma-separated list of tools that are available to be called by all tools. | | ||
| `Credentials` | A comma-separated list of credential tools to run before the main tool. | | ||
| `Args` | Arguments for the tool. Each argument is defined in the format `arg-name: description`. | | ||
| `Max Tokens` | Set to a number if you wish to limit the maximum number of tokens that can be generated by the LLM. | | ||
| `JSON Response` | Setting to `true` will cause the LLM to respond in a JSON format. If you set true you must also include instructions in the tool. | | ||
| `Temperature` | A floating-point number representing the temperature parameter. By default, the temperature is 0. Set to a higher number for more creativity. | | ||
| `Chat` | Setting it to `true` will enable an interactive chat session for the tool. | | ||
| Key | Description | | ||
|----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------| | ||
| `Name` | The name of the tool. | | ||
| `Model Name` | The LLM model to use, by default it uses "gpt-4-turbo". | | ||
| `Global Model Name` | The LLM model to use for all the tools. | | ||
| `Description` | The description of the tool. It is important that this properly describes the tool's purpose as the description is used by the LLM. | | ||
| `Internal Prompt` | Setting this to `false` will disable the built-in system prompt for this tool. | | ||
| `Tools` | A comma-separated list of tools that are available to be called by this tool. | | ||
| `Global Tools` | A comma-separated list of tools that are available to be called by all tools. | | ||
| `Parameter` / `Args` | Arguments for the tool. Each argument is defined in the format `arg-name: description`. | | ||
| `Max Tokens` | Set to a number if you wish to limit the maximum number of tokens that can be generated by the LLM. | | ||
| `JSON Response` | Setting to `true` will cause the LLM to respond in a JSON format. If you set true you must also include instructions in the tool. | | ||
| `Temperature` | A floating-point number representing the temperature parameter. By default, the temperature is 0. Set to a higher number for more creativity. | | ||
| `Chat` | Setting it to `true` will enable an interactive chat session for the tool. | | ||
| `Credential` | Credential tool to call to set credentials as environment variables before doing anything else. One per line. | | ||
| `Agents` | A comma-separated list of agents that are available to the tool. | | ||
| `Share Tools` | A comma-separated list of tools that are shared by the tool. | | ||
| `Context` | A comma-separated list of context tools available to the tool. | | ||
| `Share Context` | A comma-separated list of context tools shared by this tool with any tool including this tool in its context. | | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's more here, but I'm not sure if we should put everything (e.g. temperature and max_tokens) here |
||
|
||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.