mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-17 18:46:25 +00:00
Fix Metadata Tool (#23175)
(cherry picked from commit ae71cf45015693131c4f62f192278258ca19cbb6)
This commit is contained in:
parent
ce3e3ec4c1
commit
6eda95a306
@ -166,7 +166,7 @@ public class SearchMetadataTool implements McpTool {
|
|||||||
"SearchMetadataTool does not support limits enforcement.");
|
"SearchMetadataTool does not support limits enforcement.");
|
||||||
}
|
}
|
||||||
|
|
||||||
private Map<String, Object> buildEnhancedSearchResponse(
|
public static Map<String, Object> buildEnhancedSearchResponse(
|
||||||
Map<String, Object> searchResponse,
|
Map<String, Object> searchResponse,
|
||||||
String query,
|
String query,
|
||||||
int requestedLimit,
|
int requestedLimit,
|
||||||
@ -226,7 +226,7 @@ public class SearchMetadataTool implements McpTool {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
private Map<String, Object> cleanSearchResult(
|
public static Map<String, Object> cleanSearchResult(
|
||||||
Map<String, Object> source, List<String> requestedFields) {
|
Map<String, Object> source, List<String> requestedFields) {
|
||||||
Map<String, Object> result = new HashMap<>();
|
Map<String, Object> result = new HashMap<>();
|
||||||
|
|
||||||
@ -247,7 +247,7 @@ public class SearchMetadataTool implements McpTool {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
private Map<String, Object> createEmptyResponse() {
|
public static Map<String, Object> createEmptyResponse() {
|
||||||
Map<String, Object> result = new HashMap<>();
|
Map<String, Object> result = new HashMap<>();
|
||||||
result.put("results", Collections.emptyList());
|
result.put("results", Collections.emptyList());
|
||||||
result.put("totalFound", 0);
|
result.put("totalFound", 0);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user