@maiar-ai/core / defineCapability
Function: defineCapability()
defineCapability<
I,O,Id,C>(descriptor):CapabilityDescriptor<I,O,Id,C>
Defined in: packages/core/src/runtime/managers/model/capability/descriptor.ts:35
Capability inference helper
Type Parameters​
• I
• O
• Id extends string = string
• C = unknown
Parameters​
descriptor​
CapabilityDescriptor<I, O, Id, C>
Capability descriptor
Returns​
CapabilityDescriptor<I, O, Id, C>
Capability descriptor