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