Util
SessionInputCallback
module-attribute
SessionInputCallback = Callable[
[list[TResponseInputItem], list[TResponseInputItem]],
MaybeAwaitable[list[TResponseInputItem]],
]
A function that combines session history with new input items.
引数:
| 名前 | タイプ | デスクリプション | デフォルト |
|---|---|---|---|
history_items
|
The list of items from the session history. |
必須 | |
new_items
|
The list of new input items for the current turn. |
必須 |
戻り値:
| タイプ | デスクリプション |
|---|---|
|
A list of combined items to be used as input for the agent. Can be sync or async. |