Class: Anthropic::Models::Beta::Sessions::Threads::EventStreamParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::Sessions::Threads::EventStreamParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/anthropic/models/beta/sessions/threads/event_stream_params.rb,
sig/anthropic/models/beta/sessions/threads/event_stream_params.rbs
Overview
Instance Attribute Summary collapse
-
#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?
This endpoint is in beta: requests must send
managed-agents-2026-04-01in this header. -
#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
- #thread_id ⇒ String
-
#workspace_id ⇒ String?
Optional header to select the Workspace for this request.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(session_id:, thread_id:, event_deltas: nil, betas: nil, workspace_id: nil, request_options: {}) ⇒ EventStreamParams
constructor
Some parameter documentations has been truncated, see EventStreamParams for more details.
- #to_hash ⇒ { session_id: String, thread_id: String, event_deltas: ::Array[Anthropic::Models::Beta::beta_managed_agents_delta_type], betas: ::Array[Anthropic::Models::anthropic_beta], workspace_id: String, request_options: Anthropic::RequestOptions }
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:, thread_id:, event_deltas: nil, betas: nil, workspace_id: nil, request_options: {}) ⇒ EventStreamParams
Some parameter documentations has been truncated, see Anthropic::Models::Beta::Sessions::Threads::EventStreamParams for more details.
|
|
# File 'lib/anthropic/models/beta/sessions/threads/event_stream_params.rb', line 57
|
Instance Attribute Details
#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?
This endpoint is in beta: requests must send managed-agents-2026-04-01 in this
header.
44 |
# File 'lib/anthropic/models/beta/sessions/threads/event_stream_params.rb', line 44 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.
36 37 |
# File 'lib/anthropic/models/beta/sessions/threads/event_stream_params.rb', line 36 optional :event_deltas, -> { Anthropic::Internal::Type::ArrayOf[enum: Anthropic::Beta::BetaManagedAgentsDeltaType] } |
#session_id ⇒ String
16 |
# File 'lib/anthropic/models/beta/sessions/threads/event_stream_params.rb', line 16 required :session_id, String |
#thread_id ⇒ String
21 |
# File 'lib/anthropic/models/beta/sessions/threads/event_stream_params.rb', line 21 required :thread_id, String |
#workspace_id ⇒ String?
Optional header to select the Workspace for this request. The value is a
Workspace ID (for example, wrkspc_011CZkZaBF1tNoB5wlCeusgy).
Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.
55 |
# File 'lib/anthropic/models/beta/sessions/threads/event_stream_params.rb', line 55 optional :workspace_id, String |
Instance Method Details
#to_hash ⇒ { session_id: String, thread_id: String, event_deltas: ::Array[Anthropic::Models::Beta::beta_managed_agents_delta_type], betas: ::Array[Anthropic::Models::anthropic_beta], workspace_id: String, request_options: Anthropic::RequestOptions }
49 50 51 52 53 54 55 56 |
# File 'sig/anthropic/models/beta/sessions/threads/event_stream_params.rbs', line 49
def to_hash: -> {
session_id: String,
thread_id: String,
event_deltas: ::Array[Anthropic::Models::Beta::beta_managed_agents_delta_type],
betas: ::Array[Anthropic::Models::anthropic_beta],
workspace_id: String,
request_options: Anthropic::RequestOptions
}
|