Open History to see the last commit
Interface: CapabilityGetter()<TValue>#
Defined in: packages/ai/src/activities/chat/middleware/capabilities.ts:17
Reads a capability value off a context. Overloaded so the flag narrows the return.
Type Parameters#
TValue#
TValue
Call Signature#
CapabilityGetter(ctx): TValue;
Defined in: packages/ai/src/activities/chat/middleware/capabilities.ts:18
Reads a capability value off a context. Overloaded so the flag narrows the return.
Parameters#
ctx#
Returns#
TValue
Call Signature#
CapabilityGetter(ctx, opts): TValue | undefined;
Defined in: packages/ai/src/activities/chat/middleware/capabilities.ts:19
Reads a capability value off a context. Overloaded so the flag narrows the return.
Parameters#
ctx#
opts#
optional#
true
Returns#
TValue | undefined