19 lines
1009 B
TypeScript
19 lines
1009 B
TypeScript
|
|
import type { ResponseInputItem, ResponseOutputItem } from "../../resources/responses/responses.mjs";
|
||
|
|
export type ResponseInputItemLike = ResponseInputItem | ResponseOutputItem;
|
||
|
|
/**
|
||
|
|
* Normalizes a mixed array of stored response history items into clean
|
||
|
|
* `ResponseInputItem`s that can be sent back to `responses.create()`. Known items
|
||
|
|
* that cannot be replayed without changing their meaning are omitted.
|
||
|
|
*
|
||
|
|
* @throws {TypeError} If an item type is not supported by the installed SDK.
|
||
|
|
*/
|
||
|
|
export declare function toResponseInputItems(items: Iterable<ResponseInputItemLike>): ResponseInputItem[];
|
||
|
|
/**
|
||
|
|
* Normalizes a stored response history item into a clean `ResponseInputItem`, or
|
||
|
|
* returns `null` when a known item cannot be replayed without changing its
|
||
|
|
* meaning.
|
||
|
|
*
|
||
|
|
* @throws {TypeError} If the item type is not supported by the installed SDK.
|
||
|
|
*/
|
||
|
|
export declare function toResponseInputItem(item: ResponseInputItemLike): ResponseInputItem | null;
|
||
|
|
//# sourceMappingURL=ResponseInputItems.d.mts.map
|