@maiar-ai/core / ModelCapability
Interface: ModelCapability<InputType, OutputType, ConfigType>
Defined in: packages/core/src/runtime/providers/model.ts:11
Interface that model capabilities must implement
Type Parameters​
• InputType = unknown
• OutputType = unknown
• ConfigType = unknown
Properties​
id​
readonlyid:string
Defined in: packages/core/src/runtime/providers/model.ts:16
input​
readonlyinput:ZodType<InputType,InputType>
Defined in: packages/core/src/runtime/providers/model.ts:17
output​
readonlyoutput:ZodType<OutputType,OutputType>
Defined in: packages/core/src/runtime/providers/model.ts:18
config?​
readonlyoptionalconfig:ZodType<ConfigType,ConfigType>
Defined in: packages/core/src/runtime/providers/model.ts:19
analytics?​
readonlyoptionalanalytics:AnalyticsTracker[]
Defined in: packages/core/src/runtime/providers/model.ts:20
Methods​
execute()​
execute(
input,config?):Promise<OutputType>
Defined in: packages/core/src/runtime/providers/model.ts:22
Parameters​
input​
InputType
config?​
ConfigType
Returns​
Promise<OutputType>