콘텐츠로 이동

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