|
185 | 185 | "\n", |
186 | 186 | "# Compaction\n", |
187 | 187 | "\n", |
188 | | - "Compaction unlocks \"infinite\" context, where user conversations can persist for many turns without hitting context window limits or long context performance degradation, and agents can perform very long trajectories that exceed a typical context window for long-running, complex tasks. A weaker version of this was previously possible with ad-hoc scaffolding and conversation summarization, but our first-class implementation, available via the Responses API, is integrated with the model and is highly performant.\n", |
| 188 | + "Compaction unlocks significantly longer effective context windows, where user conversations can persist for many turns without hitting context window limits or long context performance degradation, and agents can perform very long trajectories that exceed a typical context window for long-running, complex tasks. A weaker version of this was previously possible with ad-hoc scaffolding and conversation summarization, but our first-class implementation, available via the Responses API, is integrated with the model and is highly performant.\n", |
189 | 189 | "\n", |
190 | 190 | "How it works:\n", |
191 | 191 | "\n", |
|
195 | 195 | " 2. The endpoint is ZDR compatible and will return an “encrypted\\_content” item that you can pass into future requests. \n", |
196 | 196 | "3. For subsequent calls to the /responses endpoint, you can pass your updated, compacted list of conversation items (including the added compaction item). The model retains key prior state with fewer conversation tokens.\n", |
197 | 197 | "\n", |
198 | | - "**Endpoint:** POST /v1/responses/compact\n", |
199 | | - "\n", |
200 | | - "* Field: model \n", |
201 | | - " * Type: string \n", |
202 | | - " * Required: required \n", |
203 | | - " * Notes: Use any Responses-compatible alias. \n", |
204 | | - "* Field: input \n", |
205 | | - " * Type: string or array of items \n", |
206 | | - " * Required: optional \n", |
207 | | - " * Notes: Provided messages (and optional tool/function items). Required unless `previous_response_id` is specified. \n", |
208 | | - "* Field: previous\\_response\\_id \n", |
209 | | - " * Type: string (response id) \n", |
210 | | - " * Required: optional \n", |
211 | | - " * Notes: Seed the run from an existing response; server hydrates its input items. \n", |
212 | | - "* Field: Instructions \n", |
213 | | - " * Type: string \n", |
214 | | - " * Required: optional \n", |
215 | | - " * Notes: Developer-style instructions forwarded to the compaction run.\n", |
| 198 | + "For endpoint details see our `/responses/compact` [docs](https://platform.openai.com/docs/api-reference/responses/compact).\n", |
216 | 199 | "\n", |
217 | 200 | "# Tools\n", |
218 | 201 | "\n", |
|
0 commit comments