From c202f62cf5e340b6bb7697c7b543ca5ff95bf56b Mon Sep 17 00:00:00 2001 From: Yuye Zhu Date: Fri, 12 Jan 2024 09:13:41 +0800 Subject: [PATCH] update description in search index tool so that it will only be called when both parameters are availalbe (#122) Signed-off-by: yuye-aws --- src/main/java/org/opensearch/agent/tools/SearchIndexTool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/opensearch/agent/tools/SearchIndexTool.java b/src/main/java/org/opensearch/agent/tools/SearchIndexTool.java index f6d5a80a..686d189f 100644 --- a/src/main/java/org/opensearch/agent/tools/SearchIndexTool.java +++ b/src/main/java/org/opensearch/agent/tools/SearchIndexTool.java @@ -50,7 +50,7 @@ public class SearchIndexTool implements Tool { public static final String TYPE = "SearchIndexTool"; private static final String DEFAULT_DESCRIPTION = - "Use this tool to search an index by providing two parameters: 'index' for the index name, and 'query' for the OpenSearch DSL formatted query. Only use this tool when a DSL query is available."; + "Use this tool to search an index by providing two parameters: 'index' for the index name, and 'query' for the OpenSearch DSL formatted query. Only use this tool when both index name and DSL query is available."; private String name = TYPE;