コンテンツにスキップ

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[]>