3 pages for compactbeforenextturn.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Log at info level
Claude Developer Platform · in the page
agents-and-tools/tool-use/tool-runner
…xt_turn()` (ruby: `compact_before_next_turn`; typescript, java, php: `compactBeforeNextTurn()`; csharp, go: `CompactBeforeNextTurn()`) helper, and the runner compacts before its next turn. [Compact in…
Before
Claude Developer Platform · in the page
api/migration-2026-10-21
…To decide yourself when the conversation is compacted, call [`runner.compactBeforeNextTurn()`](https://github.com/anthropics/anthropic-sdk-typescript/blob/main/helpers.md#compaction). </Tab> <Ta…
compaction-on-demand
Claude Developer Platform · in the page
build-with-claude/compaction-on-demand
…xt_turn()` (ruby: `compact_before_next_turn`; typescript, java, php: `compactBeforeNextTurn()`; csharp, go: `CompactBeforeNextTurn()`) on the runner. Once the current turn and its tool calls complete,…