Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warning and format issue for CreateAnomalyDetectorTool #358

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading