Class TurToolsService

Object
TurToolsService

@Service public class TurToolsService extends Object
  • Constructor Details

    • TurToolsService

      public TurToolsService(@Value("${turing.url}") String turingUrl, @Value("${turing.apiKey}") String turingApiKey)
  • Method Details

    • listIndexTool

      @Tool(name="list_indices_tool", description="Lists all indices in the Turing ES cluster with full information including docs.count. If an index parameter is provided, returns detailed information about that specific index.") public String listIndexTool(String index)
    • indexMappingTool

      @Tool(name="get_index_mapping_tool", description="Retrieves index mapping and setting information for an index in Turing ES") public String indexMappingTool(String index, String locale)
    • searchIndexTool

      @Tool(name="search_index_tool", description="Executes a search query against the Turing Elasticsearch (ES) instance.\n\nArgs:\n index (str): Name of the index to query. Required. Example: \'samplesite\'.\n query (str, optional): Search query string. Example: \'foobar\'. If date need be ISO-8601 format.\n page (int, optional): Page number for paginated results. Example: 1.\n fq (list[str], optional): List of filter queries using attribute:value format. If date need be ISO-8601 format. Example: [\'title:foobar\'].\n sort (str, optional): Sort order for results. Options: \'asc\', \'desc\', \'relevant\'. Example: \'relevant\'.\n rows (int, optional): Number of results to return per page. Example: 10.\n group (str, optional): Field name to group results by. Example: \'foobar\'.\n locales (str): Locale or language code for the search. Required. Example: \'en-US\' or \'pt-BR\'.\nReturns:\n A dictionary containing the search results that match the provided parameters.\n") public TurSNDocumentList searchIndexTool(String index, String locale, String query, int page, List<String> fq, String sort, int rows, String group)