useAgents
Discover the agents available to the current site, including their name, description, tools, trigger phrases, and intended use.
import { useAgents } from 'flowstack-sdk'Signature
const { agents, isLoading, refreshAgents } = useAgents()Returns
| Field | Type | Description |
|---|---|---|
agents | AgentInfo[] | Available agents — each has name, description, tools, triggerPhrases, and useFor. |
isLoading | boolean | Fetch in flight. |
refreshAgents | () => Promise<void> | Manual re-fetch of the agent list. |
Examples
const { agents, isLoading, refreshAgents } = useAgents();
// agents: AgentInfo[] — each has name, description, tools, triggerPhrases, useForSee also
useAgent · targeting-custom-agents · agent-catalog
Source: README.md#useagents-discovery · Also available in llms-full.txt and registry.json.