Skip to main content

Responses

Compact a Response

Compacts a conversation by summarizing older items to free up context window space. Returns the next context window: a compaction item containing the generated summary, followed by the most recent items verbatim.

Create a Response

Creates a model response for the given input. Returns a response object or a stream of server-sent events.

Retrieve a Response

Retrieves a previously created response by its ID.