Class: OpenAI::Models::Realtime::RealtimeSession::Tracing::TracingConfiguration

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/realtime/realtime_session.rb,
sig/openai/models/realtime/realtime_session.rbs

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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 ⇒ TracingConfiguration

Returns a new instance of TracingConfiguration.

Parameters:

  • group_id —

    The group id to attach to this trace to enable filtering and grouping in the traces dashboard.

  • metadata —

    The arbitrary metadata to attach to this trace to enable filtering in the traces dashboard.

  • workflow_name —

    The name of the workflow to attach to this trace. This is used to name the trace in the traces dashboard.

  • group_id: (String)
  • metadata: (top)
  • workflow_name: (String)


560
561
562
563
564
# File 'sig/openai/models/realtime/realtime_session.rbs', line 560

def initialize: (
  ?group_id: String,
  ?metadata: top,
  ?workflow_name: String
) -> void

Instance Attribute Details

#group_id ⇒ String?

The group id to attach to this trace to enable filtering and grouping in the traces dashboard.

Returns:

  • (String, nil)


531
# File 'lib/openai/models/realtime/realtime_session.rb', line 531

optional :group_id, String

#metadata ⇒ top?

The arbitrary metadata to attach to this trace to enable filtering in the traces dashboard.

Returns:

  • (top, nil)


538
# File 'lib/openai/models/realtime/realtime_session.rb', line 538

optional :metadata, OpenAI::Internal::Type::Unknown

#workflow_name ⇒ String?

The name of the workflow to attach to this trace. This is used to name the trace in the traces dashboard.

Returns:

  • (String, nil)


545
# File 'lib/openai/models/realtime/realtime_session.rb', line 545

optional :workflow_name, String

Instance Method Details

#to_hash ⇒ { ?group_id: String, ?metadata: top, ?workflow_name: String }

Returns:

  • ({ ?group_id: String, ?metadata: top, ?workflow_name: String })


566
567
568
569
570
# File 'sig/openai/models/realtime/realtime_session.rbs', line 566

def to_hash: -> {
  ?group_id: String,
  ?metadata: top,
  ?workflow_name: String
}