File tree Expand file tree Collapse file tree 6 files changed +5
-5
lines changed
common/src/main/java/org/opensearch/ml/common/utils
ml-algorithms/src/main/java/org/opensearch/ml/engine Expand file tree Collapse file tree 6 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ public class ToolUtils {
34
34
35
35
public static final String TOOL_OUTPUT_FILTERS_FIELD = "output_filter" ;
36
36
public static final String TOOL_REQUIRED_PARAMS = "required_parameters" ;
37
+ public static final String NO_ESCAPE_PARAMS = "no_escape_params" ;
37
38
38
39
/**
39
40
* Extracts required parameters based on tool attributes specification.
Original file line number Diff line number Diff line change @@ -122,7 +122,6 @@ public class AgentUtils {
122
122
private static final String NAME = "name" ;
123
123
private static final String DESCRIPTION = "description" ;
124
124
125
- public static final String NO_ESCAPE_PARAMS = "no_escape_params" ;
126
125
public static final String TOOLS = "_tools" ;
127
126
public static final String TOOL_TEMPLATE = "tool_template" ;
128
127
public static final String INTERACTION_TEMPLATE_ASSISTANT_TOOL_CALLS = "interaction_template.assistant_tool_calls" ;
Original file line number Diff line number Diff line change 18
18
import static org .opensearch .ml .common .utils .StringUtils .gson ;
19
19
import static org .opensearch .ml .common .utils .StringUtils .processTextDoc ;
20
20
import static org .opensearch .ml .common .utils .StringUtils .processTextDocs ;
21
- import static org .opensearch .ml .engine . algorithms . agent . AgentUtils .NO_ESCAPE_PARAMS ;
21
+ import static org .opensearch .ml .common . utils . ToolUtils .NO_ESCAPE_PARAMS ;
22
22
import static org .opensearch .ml .engine .utils .ScriptUtils .executePostProcessFunction ;
23
23
24
24
import java .io .IOException ;
Original file line number Diff line number Diff line change 5
5
6
6
package org .opensearch .ml .engine .function_calling ;
7
7
8
+ import static org .opensearch .ml .common .utils .ToolUtils .NO_ESCAPE_PARAMS ;
8
9
import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .INTERACTION_TEMPLATE_ASSISTANT_TOOL_CALLS_EXCLUDE_PATH ;
9
10
import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .INTERACTION_TEMPLATE_ASSISTANT_TOOL_CALLS_PATH ;
10
11
import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .LLM_FINAL_RESPONSE_POST_FILTER ;
11
12
import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .LLM_FINISH_REASON_PATH ;
12
13
import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .LLM_FINISH_REASON_TOOL_USE ;
13
14
import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .LLM_RESPONSE_EXCLUDE_PATH ;
14
15
import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .LLM_RESPONSE_FILTER ;
15
- import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .NO_ESCAPE_PARAMS ;
16
16
import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .TOOL_CALLS_PATH ;
17
17
import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .TOOL_CALLS_TOOL_INPUT ;
18
18
import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .TOOL_CALLS_TOOL_NAME ;
Original file line number Diff line number Diff line change 5
5
6
6
package org .opensearch .ml .engine .function_calling ;
7
7
8
+ import static org .opensearch .ml .common .utils .ToolUtils .NO_ESCAPE_PARAMS ;
8
9
import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .DEFAULT_NO_ESCAPE_PARAMS ;
9
10
import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .INTERACTION_TEMPLATE_ASSISTANT_TOOL_CALLS_PATH ;
10
11
import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .LLM_FINISH_REASON_PATH ;
11
12
import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .LLM_FINISH_REASON_TOOL_USE ;
12
13
import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .LLM_RESPONSE_EXCLUDE_PATH ;
13
14
import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .LLM_RESPONSE_FILTER ;
14
- import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .NO_ESCAPE_PARAMS ;
15
15
import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .TOOL_CALLS_PATH ;
16
16
import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .TOOL_CALLS_TOOL_INPUT ;
17
17
import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .TOOL_CALLS_TOOL_NAME ;
Original file line number Diff line number Diff line change 5
5
6
6
package org .opensearch .ml .engine .function_calling ;
7
7
8
+ import static org .opensearch .ml .common .utils .ToolUtils .NO_ESCAPE_PARAMS ;
8
9
import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .DEFAULT_NO_ESCAPE_PARAMS ;
9
10
import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .INTERACTION_TEMPLATE_ASSISTANT_TOOL_CALLS_PATH ;
10
11
import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .LLM_FINISH_REASON_PATH ;
11
12
import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .LLM_FINISH_REASON_TOOL_USE ;
12
13
import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .LLM_RESPONSE_EXCLUDE_PATH ;
13
14
import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .LLM_RESPONSE_FILTER ;
14
- import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .NO_ESCAPE_PARAMS ;
15
15
import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .TOOL_CALLS_PATH ;
16
16
import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .TOOL_CALLS_TOOL_INPUT ;
17
17
import static org .opensearch .ml .engine .algorithms .agent .AgentUtils .TOOL_CALLS_TOOL_NAME ;
You can’t perform that action at this time.
0 commit comments