Class: Anthropic::Models::Beta::BetaCompactionBlock
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::BetaCompactionBlock
- Defined in:
- lib/anthropic/models/beta/beta_compaction_block.rb,
sig/anthropic/models/beta/beta_compaction_block.rbs
Defined Under Namespace
Modules: ToolChange
Instance Attribute Summary collapse
-
#content ⇒ String?
Summary of compacted content, or null if compaction failed.
-
#encrypted_content ⇒ String?
Opaque metadata from prior compaction, to be round-tripped verbatim.
-
#signature ⇒ String?
Signature over the summary, to be sent back with the block verbatim.
-
#tool_changes ⇒ Array<Anthropic::Models::Beta::BetaResponseToolAdditionBlock, Anthropic::Models::Beta::BetaResponseToolRemovalBlock>?
The tool changes of the compacted range: the
tool_additionandtool_removalblocks that take the request'stoolsto the tool set in effect at the end of the range, or[]when the range changed no tool. - #type ⇒ Symbol, :compaction
Instance Method Summary collapse
- #initialize ⇒ void constructor
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize ⇒ void
26 |
# File 'sig/anthropic/models/beta/beta_compaction_block.rbs', line 26
def initialize: (
|
Instance Attribute Details
#content ⇒ String?
Summary of compacted content, or null if compaction failed
11 |
# File 'lib/anthropic/models/beta/beta_compaction_block.rb', line 11 required :content, String, nil?: true |
#encrypted_content ⇒ String?
Opaque metadata from prior compaction, to be round-tripped verbatim
17 |
# File 'lib/anthropic/models/beta/beta_compaction_block.rb', line 17 required :encrypted_content, String, nil?: true |
#signature ⇒ String?
Signature over the summary, to be sent back with the block verbatim
28 |
# File 'lib/anthropic/models/beta/beta_compaction_block.rb', line 28 optional :signature, String, nil?: true |
#tool_changes ⇒ Array<Anthropic::Models::Beta::BetaResponseToolAdditionBlock, Anthropic::Models::Beta::BetaResponseToolRemovalBlock>?
The tool changes of the compacted range: the tool_addition and tool_removal
blocks that take the request's tools to the tool set in effect at the end of
the range, or [] when the range changed no tool. Absent when the server did
not compute them. Send the block back unchanged.
37 38 39 40 41 |
# File 'lib/anthropic/models/beta/beta_compaction_block.rb', line 37 optional :tool_changes, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::BetaCompactionBlock::ToolChange] }, nil?: true |
#type ⇒ Symbol, :compaction
22 |
# File 'lib/anthropic/models/beta/beta_compaction_block.rb', line 22 required :type, const: :compaction |
Instance Method Details
#to_hash ⇒ {
34 |
# File 'sig/anthropic/models/beta/beta_compaction_block.rbs', line 34
def to_hash: -> {
|