Skip to content

Commit cd46089

Browse files
committed
document typescript getMessages middle_out edit strategy
1 parent 7f479e1 commit cd46089

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/client/acontext-ts/src/resources/sessions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ export class SessionsAPI {
206206
* @param options.editStrategies - Optional list of edit strategies to apply before format conversion.
207207
* Examples:
208208
* - Remove tool results: [{ type: 'remove_tool_result', params: { keep_recent_n_tool_results: 3 } }]
209+
* - Middle out: [{ type: 'middle_out', params: { token_reduce_to: 5000 } }]
209210
* - Token limit: [{ type: 'token_limit', params: { limit_tokens: 20000 } }]
210211
* @param options.pinEditingStrategiesAtMessage - Message ID to pin editing strategies at.
211212
* When provided, strategies are only applied to messages up to and including this message ID,
@@ -299,4 +300,3 @@ export class SessionsAPI {
299300
return MessageObservingStatusSchema.parse(data);
300301
}
301302
}
302-

0 commit comments

Comments
 (0)