OptionaleditsSequence of edit strategies to apply. Defaults to a single ClearToolUsesEdit mirroring Anthropic defaults.
OptionaltokenWhether to use approximate token counting (faster, less accurate) or exact counting implemented by the chat model (potentially slower, more accurate). Currently only OpenAI models support exact counting.
Configuration for the Context Editing Middleware.