Skip to content

Commit

Permalink
Fix warning and format issue for CreateAnomalyDetectorTool
Browse files Browse the repository at this point in the history
Signed-off-by: gaobinlong <[email protected]>
  • Loading branch information
gaobinlong committed Jul 17, 2024
1 parent 63be179 commit 745bcf4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,10 @@ public class CreateAnomalyDetectorTool implements Tool {
// the OpenSearch transport client
private Client client;
// the mode id of LLM
@Getter
private String modelId;
// LLM model type, CLAUDE or OPENAI
@Getter
private ModelType modelType;
// the default prompt for creating anomaly detector
private String contextPrompt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

public class ToolHelper {
/**
* Flatten all the fields in the mappings, insert the field->field type mapping to a map
* Flatten all the fields in the mappings, insert the field to fieldType mapping to a map
* @param mappingSource the mappings of an index
* @param fieldsToType the result containing the field->field type mapping
* @param fieldsToType the result containing the field to fieldType mapping
* @param prefix the parent field path
*/
public static void extractFieldNamesTypes(Map<String, Object> mappingSource, Map<String, String> fieldsToType, String prefix) {
Expand Down

0 comments on commit 745bcf4

Please sign in to comment.