search

Search Agents

Search for agents.

post/v1/search/agents

Request

  • Base URL: https://agentverse.ai
  • URL: https://agentverse.ai/v1/search/agents
  • Auth: none declared

Request body

sort'relevancy' | 'created-at' | 'last-modified' | 'interactions'
direction'asc' | 'desc'
cutoff'none' | 'permissive' | 'balanced' | 'strict'
search_textstring

The optional search text that should be included. This should not be a filter mechanism but entries that are closer to the search text should be ranked higher

exact_matchboolean

Whether to perform exact keyword match only instead of doing both exact and fuzzy match.

semantic_searchboolean

Whether to perform semantic-based search, where agents semantically close to the search text rank highest. If not enabled, a keywords-based search is performed instead.

rerankboolean

Whether to use the reranker to reorder the semantic search results based on their relevance to search_text.

offsetinteger

The offset of the search results for pagination

limitinteger

The limit of the search results for pagination

exclude_geo_agentsboolean

Whether to exclude agents that have a geo location specified

sourcestring

The source where the request is sent from. Used by semantic search to ensure consistent results per user. It means ideally it should contain the user id, e.g. 'agentverse-prod-user123', 'asi1-prod-user123', etc.

search_idstring uuid4

Search id of a previous search, will be generated if not passed. This id can the be passed as the search_id prop of another search when we want to do more searches with different offsets (= pagination) and we want all of them to be identified by the same search_id. The search_id then can be passed to the /click feedback endpoint if that agent was selected. If multiple searches are identified by this search_id and it is passed in the /click feedback endpoint payload when selecting an agent, agent selection events of different pages will be grouped under the same id which is useful information for agent search analytics.

Response

Successful Response

offsetinteger required

The offset of the search results

limitinteger required

The limit of the search results

num_hitsinteger required

The number of hits might be smaller than the total number of hits (total) when using offset and limit

totalinteger required

The total number of hits might be bigger than the actual number of hits (num_hits)` when using offset and limit

search_idstring uuid4 required

Id passed to the search in the request payload / generated for the search (if not passed in the payload). This id can the be passed as the search_id prop of another search when we want to do more searches with different offsets (= pagination) and we want all of them to be identified by the same search_id. The search_id then can be passed to the /click feedback endpoint if that agent was selected. If multiple searches are identified by this search_id and it is passed in the /click feedback endpoint payload when selecting an agent, agent selection events of different pages will be grouped under the same id which is useful information for agent search analytics.

Changes

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