Class: Cerca::Models::ThreadStreamEvent::ThreadStreamApprovalRequestedMessage::Approval

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cerca/models/thread_stream_event.rb

Overview

See Also:

Defined Under Namespace

Modules: Status

Instance Attribute Summary collapse

Instance Method Summary collapse

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(id:, created_at:, requested_tool_name:, resolved_at:, status:, thread_id:, timeout_at:, timeout_ms:, tool_index:, tool_input:, tool_name:, tool_use_id:, turn_id:, tool_source_id: nil, tool_source_version: nil) ⇒ Object

Some parameter documentations has been truncated, see Cerca::Models::ThreadStreamEvent::ThreadStreamApprovalRequestedMessage::Approval for more details.

Parameters:

  • id (String)
  • created_at (String)
  • requested_tool_name (String)
  • resolved_at (String, nil)
  • status (Symbol, Cerca::Models::ThreadStreamEvent::ThreadStreamApprovalRequestedMessage::Approval::Status)
  • thread_id (String)
  • timeout_at (String, nil)
  • timeout_ms (Float, nil)
  • tool_index (Float)
  • tool_input (String)

    JSON-serialized tool input payload. Parse as JSON before reading tool-specific f

  • tool_name (Symbol, Cerca::Models::ToolName)
  • tool_use_id (String)
  • turn_id (String)
  • tool_source_id (String) (defaults to: nil)
  • tool_source_version (Float) (defaults to: nil)


# File 'lib/cerca/models/thread_stream_event.rb', line 786

Instance Attribute Details

#created_atString

Returns:

  • (String)


716
# File 'lib/cerca/models/thread_stream_event.rb', line 716

required :created_at, String, api_name: :createdAt

#idString

Returns:

  • (String)


711
# File 'lib/cerca/models/thread_stream_event.rb', line 711

required :id, String

#requested_tool_nameString

Returns:

  • (String)


721
# File 'lib/cerca/models/thread_stream_event.rb', line 721

required :requested_tool_name, String, api_name: :requestedToolName

#resolved_atString?

Returns:

  • (String, nil)


726
# File 'lib/cerca/models/thread_stream_event.rb', line 726

required :resolved_at, String, api_name: :resolvedAt, nil?: true

#statusSymbol, Cerca::Models::ThreadStreamEvent::ThreadStreamApprovalRequestedMessage::Approval::Status



731
732
# File 'lib/cerca/models/thread_stream_event.rb', line 731

required :status,
enum: -> { Cerca::ThreadStreamEvent::ThreadStreamApprovalRequestedMessage::Approval::Status }

#thread_idString

Returns:

  • (String)


737
# File 'lib/cerca/models/thread_stream_event.rb', line 737

required :thread_id, String, api_name: :threadId

#timeout_atString?

Returns:

  • (String, nil)


742
# File 'lib/cerca/models/thread_stream_event.rb', line 742

required :timeout_at, String, api_name: :timeoutAt, nil?: true

#timeout_msFloat?

Returns:

  • (Float, nil)


747
# File 'lib/cerca/models/thread_stream_event.rb', line 747

required :timeout_ms, Float, api_name: :timeoutMs, nil?: true

#tool_indexFloat

Returns:

  • (Float)


752
# File 'lib/cerca/models/thread_stream_event.rb', line 752

required :tool_index, Float, api_name: :toolIndex

#tool_inputString

JSON-serialized tool input payload. Parse as JSON before reading tool-specific fields.

Returns:

  • (String)


759
# File 'lib/cerca/models/thread_stream_event.rb', line 759

required :tool_input, String, api_name: :toolInput

#tool_nameSymbol, Cerca::Models::ToolName

Returns:



764
# File 'lib/cerca/models/thread_stream_event.rb', line 764

required :tool_name, enum: -> { Cerca::ToolName }, api_name: :toolName

#tool_source_idString?

Returns:

  • (String, nil)


779
# File 'lib/cerca/models/thread_stream_event.rb', line 779

optional :tool_source_id, String, api_name: :toolSourceId

#tool_source_versionFloat?

Returns:

  • (Float, nil)


784
# File 'lib/cerca/models/thread_stream_event.rb', line 784

optional :tool_source_version, Float, api_name: :toolSourceVersion

#tool_use_idString

Returns:

  • (String)


769
# File 'lib/cerca/models/thread_stream_event.rb', line 769

required :tool_use_id, String, api_name: :toolUseId

#turn_idString

Returns:

  • (String)


774
# File 'lib/cerca/models/thread_stream_event.rb', line 774

required :turn_id, String, api_name: :turnId