Docs / ai / useModels

useModels

hooknot for built apps

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

FieldTypeDescription
modelsModelInfo[]Registered models — each { name, framework, metrics, createdAt }.
isLoadingbooleanFetch in flight.
errorstring | nullLast 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.