Skip to content

Documentation / @agentick/shared / getEffectiveModelInfo

Function: getEffectiveModelInfo() ​

getEffectiveModelInfo(adapterMetadata?, modelId?): ModelInfo | undefined

Defined in: model-catalog.ts:987

Get effective model info by merging adapter metadata with catalog.

Priority:

  1. Adapter-provided values (source of truth)
  2. Runtime registry
  3. Static MODEL_CATALOG

Parameters ​

adapterMetadata? ​

AdapterModelMetadata

Metadata from the adapter (if available)

modelId? ​

string

Model ID to look up in catalog (fallback)

Returns ​

ModelInfo | undefined

Merged model info, or undefined if nothing found

Released under the ISC License.