fix tests

This commit is contained in:
Angela Ning
2025-11-01 12:47:11 -04:00
parent 64c69cb33a
commit 116e93a5e9
3 changed files with 18 additions and 29 deletions
+6 -1
View File
@@ -65,7 +65,12 @@ pub const READ_RESOURCE_TOOL_NAME: &str = "read_resource";
pub const LIST_RESOURCES_TOOL_NAME: &str = "list_resources";
pub const SEARCH_TOOLS_TOOL_NAME: &str = "search_tools";
pub const LLM_SEARCH_TOOL_PROMPT: &str = r#"Important: the user has opted to dynamically enable tools, so although an extension could be enabled, please invoke the llm search tool to actually retrieve the most relevant tools to use according to the user's messages. For example, if the user has 3 extensions enabled, but they are asking for a tool to read a pdf file, you would invoke the llm_search tool to find the most relevant read pdf tool. By dynamically enabling tools, you (goose) as the agent save context window space and allow the user to dynamically retrieve the most relevant tools. Be sure to format a query packed with relevant keywords to search for the most relevant tools."#;
pub const LLM_SEARCH_TOOL_PROMPT: &str = r#"Important: the user has opted to dynamically enable tools, so although an extension could be enabled,
please invoke the llm search tool to actually retrieve the most relevant tools to use according to the user's messages.
For example, if the user has 3 extensions enabled, but they are asking for a tool to read a pdf file,
you would invoke the llm_search tool to find the most relevant read pdf tool.
By dynamically enabling tools, you (goose) as the agent save context window space and allow the user to dynamically retrieve the most relevant tools.
Be sure to format a query packed with relevant keywords to search for the most relevant tools."#;
pub struct CoreClient {
info: InitializeResult,
@@ -39,20 +39,12 @@ and platform__list_resources on this extension.
how to use this extension
# LLM Tool Selection Instructions
Important: the user has opted to dynamically enable tools, so although an extension could be enabled, \
please invoke the llm search tool to actually retrieve the most relevant tools to use according to the user's messages.
For example, if the user has 3 extensions enabled, but they are asking for a tool to read a pdf file, \
you would invoke the llm_search tool to find the most relevant read pdf tool.
By dynamically enabling tools, you (goose) as the agent save context window space and allow the user to dynamically retrieve the most relevant tools.
Be sure to format a query packed with relevant keywords to search for the most relevant tools.
In addition to the extension names available to you, you also have platform extension tools available to you.
The platform extension contains the following tools:
- search_available_extensions
- manage_extensions
- read_resource
- list_resources
Important: the user has opted to dynamically enable tools, so although an extension could be enabled,
please invoke the llm search tool to actually retrieve the most relevant tools to use according to the user's messages.
For example, if the user has 3 extensions enabled, but they are asking for a tool to read a pdf file,
you would invoke the llm_search tool to find the most relevant read pdf tool.
By dynamically enabling tools, you (goose) as the agent save context window space and allow the user to dynamically retrieve the most relevant tools.
Be sure to format a query packed with relevant keywords to search for the most relevant tools.
# Response Guidelines
@@ -53,20 +53,12 @@ You should only disable extensions found from the search_available_extensions to
List all the extensions available to disable in the response.
Explain that minimizing extensions helps with the recall of the correct tools to use.
# LLM Tool Selection Instructions
Important: the user has opted to dynamically enable tools, so although an extension could be enabled, \
please invoke the llm search tool to actually retrieve the most relevant tools to use according to the user's messages.
For example, if the user has 3 extensions enabled, but they are asking for a tool to read a pdf file, \
you would invoke the llm_search tool to find the most relevant read pdf tool.
By dynamically enabling tools, you (goose) as the agent save context window space and allow the user to dynamically retrieve the most relevant tools.
Be sure to format a query packed with relevant keywords to search for the most relevant tools.
In addition to the extension names available to you, you also have platform extension tools available to you.
The platform extension contains the following tools:
- search_available_extensions
- manage_extensions
- read_resource
- list_resources
Important: the user has opted to dynamically enable tools, so although an extension could be enabled,
please invoke the llm search tool to actually retrieve the most relevant tools to use according to the user's messages.
For example, if the user has 3 extensions enabled, but they are asking for a tool to read a pdf file,
you would invoke the llm_search tool to find the most relevant read pdf tool.
By dynamically enabling tools, you (goose) as the agent save context window space and allow the user to dynamically retrieve the most relevant tools.
Be sure to format a query packed with relevant keywords to search for the most relevant tools.
# Response Guidelines