Get Agents
Changed onExample usage:
curl -X GET "http://localhost:4000/v1/agents" -H "Content-Type: application/json" -H "Authorization: Bearer your-key" ```
Pass `?health_check=true` to filter out agents whose URL is unreachable:
curl -X GET "http://localhost:4000/v1/agents?health_check=true" -H "Content-Type: application/json" -H "Authorization: Bearer your-key" ```
Pass ?query=<task> to get the best matching agents ranked by semantic similarity:
curl -X GET "http://localhost:4000/v1/agents?query=translate+a+PDF+document&top_k=5" -H "Content-Type: application/json" -H "Authorization: Bearer your-key" ```
Returns: List[AgentResponse]
Request
- Base URLhttps://api.flock.io (the document declares no server; this is the origin it was published from)
- URLhttps://api.flock.io/v1/agents
- AuthAPI key in header x-litellm-api-key
Query parameters
When true, performs a GET request to each agent's URL. Agents with reachable URLs (HTTP status < 500) and agents without a URL are returned; unreachable agents are filtered out.
Describe the task in natural language to rank the agents you can reach by semantic similarity over their name, description, and skills. Each result carries a search_score. Requires litellm_settings.agent_search_embedding_model.
With query: the maximum number of ranked agents to return.
Response
Successful Response
Changes
- info
api tag
[beta] A2A Agentsadded - info
api tag
agentsremoved
- info
- info
api tag
agentsadded - info
api tag
[beta] A2A Agentsremoved
- info