useModels
ML model management — list registered models with their framework, metrics, and creation metadata.
import { useModels } from 'flowstack-sdk'Signature
const { models, isLoading, error, refreshModels } = useModels()Returns
| Field | Type | Description |
|---|---|---|
models | ModelInfo[] | Registered models — each { name, framework, metrics, createdAt }. |
isLoading | boolean | Fetch in flight. |
error | string | null | Last error message. |
refreshModels | () => Promise<void> | Manual re-fetch of the model list. |
Examples
const {
models, // ModelInfo[] — { name, framework, metrics, createdAt }
isLoading, // boolean
error, // string | null
refreshModels, // () => Promise<void>
} = useModels();Source: README.md#usemodels · Also available in llms-full.txt and registry.json.