Variable: ModelRegistrySubjects
Makaio Framework / services-core / ModelRegistrySubjects
Variable: ModelRegistrySubjects
Section titled “Variable: ModelRegistrySubjects”
constModelRegistrySubjects:BusSubjects<FlatSubjectDefinitions<"modelRegistry", {changed:ZodObject<{ },$strip>;checkModelInProviders: {request:ZodObject<{model:ZodString;providerIds:ZodArray<ZodString>; },$strip>;response:ZodObject<{matches:ZodRecord<ZodString,ZodObject<{contextWindowSize:ZodNumber;family:ZodOptional<ZodString>;friendlyName:ZodOptional<ZodString>;labId:ZodString;metadata:ZodOptional<ZodObject<…, …>>;name:ZodString;supportedReasoningLevels:ZodOptional<ZodObject<…, …>>; },$strip>>; },$strip>; };getForProvider: {request:ZodObject<{model:ZodString;providerId:ZodString; },$strip>;response:ZodObject<{model:ZodOptional<ZodObject<{contextWindowSize:ZodNumber;family:ZodOptional<ZodString>;friendlyName:ZodOptional<ZodString>;labId:ZodString;metadata:ZodOptional<ZodObject<…, …>>;name:ZodString;supportedReasoningLevels:ZodOptional<ZodObject<…, …>>; },$strip>>; },$strip>; };getLabModels: {request:ZodObject<{labId:ZodString; },$strip>;response:ZodObject<{models:ZodArray<ZodObject<{contextWindowSize:ZodNumber;family:ZodOptional<ZodString>;friendlyName:ZodOptional<ZodString>;labId:ZodString;metadata:ZodOptional<ZodObject<…, …>>;name:ZodString;supportedReasoningLevels:ZodOptional<ZodObject<…, …>>; },$strip>>; },$strip>; };getProviderModels: {request:ZodObject<{providerId:ZodString; },$strip>;response:ZodObject<{models:ZodArray<ZodObject<{contextWindowSize:ZodNumber;family:ZodOptional<ZodString>;friendlyName:ZodOptional<ZodString>;labId:ZodString;metadata:ZodOptional<ZodObject<…, …>>;name:ZodString;supportedReasoningLevels:ZodOptional<ZodObject<…, …>>; },$strip>>; },$strip>; };refresh: {request:ZodObject<{ },$strip>;response:ZodObject<{error:ZodOptional<ZodString>;success:ZodBoolean; },$strip>; }; }>,"modelRegistry"> =ModelRegistryNamespace.subjects
Defined in: ../../../packages/services/core/src/model-registry/namespace.ts:49
Pre-extracted subjects for direct import.
Example
Section titled “Example”import { ModelRegistrySubjects } from '@makaio/services-core/model-registry';
bus.on(ModelRegistrySubjects.getProviderModels, (ctx) => { ctx.setResult({ models: resolveModels(ctx.payload.providerId) });});