@maiar-ai/core / CapabilityTransformEntry
Interface: CapabilityTransformEntry
Defined in: packages/core/src/runtime/managers/model/capability/transform.ts:8
Capability transform entry - used to transform the input, output, or config of a capability. This enables consumers of model providers and plugins to bind together disparate capabilities that share similar functionality, but have different names, or input/output types or shapes.
Properties​
input?​
optionalinput:object
Defined in: packages/core/src/runtime/managers/model/capability/transform.ts:9
plugin​
plugin:
ZodType<unknown,unknown>
provider​
provider:
ZodType<unknown,unknown>
transform()​
transform: (
data,pluginSchema?,providerSchema?) =>unknown
Parameters​
data​
unknown
pluginSchema?​
ZodType<unknown, unknown>
providerSchema?​
ZodType<unknown, unknown>
Returns​
unknown
output?​
optionaloutput:object
Defined in: packages/core/src/runtime/managers/model/capability/transform.ts:18
plugin​
plugin:
ZodType<unknown,unknown>
provider​
provider:
ZodType<unknown,unknown>
transform()​
transform: (
data,providerSchema?,pluginSchema?) =>unknown
Parameters​
data​
unknown
providerSchema?​
ZodType<unknown, unknown>
pluginSchema?​
ZodType<unknown, unknown>
Returns​
unknown
config?​
optionalconfig:object
Defined in: packages/core/src/runtime/managers/model/capability/transform.ts:27
plugin​
plugin:
ZodType<unknown,unknown>
provider​
provider:
ZodType<unknown,unknown>
transform()?​
optionaltransform: (cfg,pluginSchema?,providerSchema?) =>unknown
Parameters​
cfg​
unknown
pluginSchema?​
ZodType<unknown, unknown>
providerSchema?​
ZodType<unknown, unknown>
Returns​
unknown