CallModelInputFilter
此内容尚不支持你的语言。
type CallModelInputFilter<TContext> = ((args) => | ModelInputData | Promise<ModelInputData>) & object;Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
|
|
Type Declaration
Section titled “Type Declaration”preserveInputIdentity?
Section titled “preserveInputIdentity?”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.