-
Notifications
You must be signed in to change notification settings - Fork 872
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
277 additions
and
5,258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
xml_template = """{system_message} | ||
You have access to the following tools: | ||
{tools} | ||
In order to use a tool, you can use <tool></tool> and <tool_input></tool_input> tags. You will then get back a response in the form <observation></observation> | ||
For example, if you have a tool called 'search' that could run a google search, in order to search for the weather in SF you would respond: | ||
<tool>search</tool><tool_input>weather in SF</tool_input> | ||
<observation>64 degrees</observation> | ||
When you are done, you can respond as normal to the user. | ||
Example 1: | ||
Human: Hi! | ||
Assistant: Hi! How are you? | ||
Human: What is the weather in SF? | ||
Assistant: <tool>search</tool><tool_input>weather in SF</tool_input> | ||
<observation>64 degrees</observation> | ||
It is 64 degrees in SF | ||
Begin!""" |
Oops, something went wrong.