Skip to content

Commit

Permalink
Addressed PR comments and removed the map
Browse files Browse the repository at this point in the history
Signed-off-by: Owais Kazi <[email protected]>
  • Loading branch information
owaiskazi19 committed Feb 19, 2024
1 parent 990804f commit a6662e5
Show file tree
Hide file tree
Showing 5 changed files with 326 additions and 141 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,6 @@ private CommonValue() {}
public static final String RESOURCE_TYPE = "resource_type";
/** The field name for the resource id */
public static final String RESOURCE_ID = "resource_id";
/** The field name for the opensearch-ml plugin */
public static final String OPENSEARCH_ML = "opensearch-ml";
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
/**
* Step to register a tool for an agent
*/
@SuppressWarnings("unchecked")
public class ToolStep implements WorkflowStep {

private static final Logger logger = LogManager.getLogger(ToolStep.class);
Expand Down Expand Up @@ -107,6 +106,7 @@ private Map<String, String> getToolsParametersMap(
Map<String, String> previousNodeInputs,
Map<String, WorkflowData> outputs
) {
@SuppressWarnings("unchecked")
Map<String, String> parametersMap = (Map<String, String>) parameters;
Optional<String> previousNodeModel = previousNodeInputs.entrySet()
.stream()
Expand Down
Loading

0 comments on commit a6662e5

Please sign in to comment.