콘텐츠로 이동

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