Skip to content

ListModelsResult

Defined in: packages/ai.matey.types/src/models.ts:166

Result of listing models from a backend.

Includes the models plus metadata about where they came from and when they were fetched.

readonly fetchedAt: number

Defined in: packages/ai.matey.types/src/models.ts:184

Timestamp when this list was fetched (Unix milliseconds). Used for cache invalidation.


readonly isComplete: boolean

Defined in: packages/ai.matey.types/src/models.ts:190

Whether this list is complete or partial. Partial lists may occur with filters or pagination.


readonly models: readonly AIModel[]

Defined in: packages/ai.matey.types/src/models.ts:170

Available models from this backend.


readonly source: "remote" | "static" | "cache"

Defined in: packages/ai.matey.types/src/models.ts:178

Source of the model list.

  • remote: Fetched from provider API
  • static: From configuration or hardcoded list
  • cache: From cached previous fetch