search

Get Toolprint Recommendation

Returns a single recommendation for a toolprint based on the goal that is trying to be achieved. It also includes the set of prompts that should be injected into the message stack to prime the agent's LLM.

Args: request_context: The authenticated request context toolprint_index: The toolprint index manager to search with search_request: The search request containing the goal query

Returns: A ToolprintRecommendation containing the best matching toolprint and associated prompts

post/api/v1/search/toolprints/recommendation

Request

  • Base URL: http://localhost:8080
  • URL: http://localhost:8080/api/v1/search/toolprints/recommendation
  • Auth: API key in header X-ONEGREP-API-KEY

Request body

kinteger

The number of results to return from index.

min_scorenumber

The minimum score to return from index.

pageinteger

The page number to return.

page_sizeinteger

The number of results per page.

querystring required

The query used against the search index.

Response

Successful Response

Changes

No recorded changes to this operation across all 1 revision of this API.