コンテンツにスキップ

CallModelInputFilter

このコンテンツはまだ日本語訳がありません。

type CallModelInputFilter<TContext> = (args) =>
| ModelInputData
| Promise<ModelInputData> & object;
optional preserveInputIdentity?: boolean;

Preserve prepared input item identities by passing a shallow-copied array to the filter. The SDK does not freeze these items; enable this only when the filter and every helper it calls treat each input item and its nested values as immutable. Model and session inputs remain isolated copies after the filter returns.

Type Parameter Default type

TContext

unknown