-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added experimental support to tool function loading for agents …
…and refactored prompt loading accordingly
- Loading branch information
1 parent
87a509e
commit d9383a3
Showing
19 changed files
with
1,718 additions
and
724 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
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
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,10 @@ | ||
# Tools | ||
|
||
This section documents the Tool class. | ||
|
||
!!! note | ||
This class is still in an early experimental stage. | ||
|
||
::: hf_hub_prompts.tools | ||
options: | ||
show_if_no_docstring: false |
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
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 |
---|---|---|
@@ -1,13 +1,17 @@ | ||
from .hub_api import download_prompt_template, list_prompt_templates | ||
from .hub_api import PromptTemplateLoader, ToolLoader, list_prompt_templates, list_tools | ||
from .populated_prompt import PopulatedPrompt | ||
from .prompt_templates import BasePromptTemplate, ChatPromptTemplate, TextPromptTemplate | ||
from .tools import Tool | ||
|
||
|
||
__all__ = [ | ||
"PromptTemplateLoader", | ||
"list_prompt_templates", | ||
"BasePromptTemplate", | ||
"TextPromptTemplate", | ||
"ChatPromptTemplate", | ||
"BasePromptTemplate", | ||
"PopulatedPrompt", | ||
"download_prompt_template", | ||
"list_prompt_templates", | ||
"ToolLoader", | ||
"list_tools", | ||
"Tool", | ||
] |
Oops, something went wrong.