struct

Anthropic::ContextManagementConfig

Inherits JSON::Serializable < Struct < Value < Object

Context management configuration for beta messages

config = Anthropic::ContextManagementConfig.auto_compact

Constructors

auto_compact(instructions : String | Nil = nil, trigger : String | Nil = nil, pause_after_compaction : Bool | Nil = nil) : self

Create a config with auto-compaction using default threshold

Source
new(edits : Array(ContextManagementEdit))
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

edits
Source