跳转到内容

SessionInputCallback

此内容尚不支持你的语言。

type SessionInputCallback = (historyItems, newItems) =>
| AgentInputItem[]
| Promise<AgentInputItem[]>;

A function that combines session history with new input items before the model call.

Parameter Type

historyItems

AgentInputItem[]

newItems

AgentInputItem[]

| AgentInputItem[] | Promise<AgentInputItem[]>