Class: Anthropic::Models::Beta::Sessions::EventStreamParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::Sessions::EventStreamParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/anthropic/models/beta/sessions/event_stream_params.rb,
sig/anthropic/models/beta/sessions/event_stream_params.rbs
Overview
Constant Summary
Constants included from Internal::Type::RequestParameters
Internal::Type::RequestParameters::Anthropic
Instance Attribute Summary collapse
-
#betas ⇒ Array<String, Symbol, Anthropic::Models::AnthropicBeta>?
Optional header to specify the beta version(s) you want to use.
-
#event_deltas ⇒ Array<Symbol, Anthropic::Models::Beta::BetaManagedAgentsDeltaType>?
When set, this connection also receives streaming deltas (
event_start,event_delta) while an event is being produced, before the event itself arrives. - #session_id ⇒ String
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(session_id:, event_deltas: nil, betas: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see EventStreamParams for more details.
- #to_hash ⇒ {
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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(session_id:, event_deltas: nil, betas: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see Anthropic::Models::Beta::Sessions::EventStreamParams for more details.
`event_
|
|
# File 'lib/anthropic/models/beta/sessions/event_stream_params.rb', line 39
|
Instance Attribute Details
#betas ⇒ Array<String, Symbol, Anthropic::Models::AnthropicBeta>?
Optional header to specify the beta version(s) you want to use.
37 |
# File 'lib/anthropic/models/beta/sessions/event_stream_params.rb', line 37 optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] } |
#event_deltas ⇒ Array<Symbol, Anthropic::Models::Beta::BetaManagedAgentsDeltaType>?
When set, this connection also receives streaming deltas (event_start,
event_delta) while an event is being produced, before the event itself
arrives. Deltas are best-effort; when the final event is produced it carries the
complete content. A model request that ends early (an error or interrupt)
produces no final event — its terminal span.model_request_end closes the
preview. Accepts one or more event types to preview and may be repeated:
agent.message streams content_delta fragments; agent.thinking is
start-only — a signal that the agent has begun extended thinking, concluded by
the agent.thinking event itself. Only previews of the requested event types
are sent.
30 31 |
# File 'lib/anthropic/models/beta/sessions/event_stream_params.rb', line 30 optional :event_deltas, -> { Anthropic::Internal::Type::ArrayOf[enum: Anthropic::Beta::BetaManagedAgentsDeltaType] } |
#session_id ⇒ String
15 |
# File 'lib/anthropic/models/beta/sessions/event_stream_params.rb', line 15 required :session_id, String |
Instance Method Details
#to_hash ⇒ {
38 |
# File 'sig/anthropic/models/beta/sessions/event_stream_params.rbs', line 38
def to_hash: -> {
|