Class: Cerca::Models::RuntimeWebhookEvent::ApprovalRequestedWebhookEvent::Data::Approval

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cerca/models/runtime_webhook_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:, input:, resolved_at:, runtime_tool_name:, status:, thread_id:, timeout_at:, timeout_ms:, tool_index:, tool_name:, tool_use_id:, turn_id:, tool_source_id: nil, tool_source_version: nil) ⇒ Object

Parameters:



# File 'lib/cerca/models/runtime_webhook_event.rb', line 1250

Instance Attribute Details

#created_atString

Returns:

  • (String)


1181
# File 'lib/cerca/models/runtime_webhook_event.rb', line 1181

required :created_at, String, api_name: :createdAt

#idString

Returns:

  • (String)


1176
# File 'lib/cerca/models/runtime_webhook_event.rb', line 1176

required :id, String

#inputObject

JSON value payload. Generated SDKs may expose this as unknown or Any.

Returns:

  • (Object)


1187
# File 'lib/cerca/models/runtime_webhook_event.rb', line 1187

required :input, Cerca::Internal::Type::Unknown

#resolved_atString?

Returns:

  • (String, nil)


1192
# File 'lib/cerca/models/runtime_webhook_event.rb', line 1192

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

#runtime_tool_nameSymbol, Cerca::Models::ToolName

Returns:



1197
# File 'lib/cerca/models/runtime_webhook_event.rb', line 1197

required :runtime_tool_name, enum: -> { Cerca::ToolName }, api_name: :runtimeToolName

#statusSymbol, Cerca::Models::RuntimeWebhookEvent::ApprovalRequestedWebhookEvent::Data::Approval::Status



1202
1203
# File 'lib/cerca/models/runtime_webhook_event.rb', line 1202

required :status,
enum: -> { Cerca::RuntimeWebhookEvent::ApprovalRequestedWebhookEvent::Data::Approval::Status }

#thread_idString?

Returns:

  • (String, nil)


1208
# File 'lib/cerca/models/runtime_webhook_event.rb', line 1208

required :thread_id, String, api_name: :threadId, nil?: true

#timeout_atString?

Returns:

  • (String, nil)


1213
# File 'lib/cerca/models/runtime_webhook_event.rb', line 1213

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

#timeout_msFloat?

Returns:

  • (Float, nil)


1218
# File 'lib/cerca/models/runtime_webhook_event.rb', line 1218

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

#tool_indexFloat

Returns:

  • (Float)


1223
# File 'lib/cerca/models/runtime_webhook_event.rb', line 1223

required :tool_index, Float, api_name: :toolIndex

#tool_nameString

Returns:

  • (String)


1228
# File 'lib/cerca/models/runtime_webhook_event.rb', line 1228

required :tool_name, String, api_name: :toolName

#tool_source_idString?

Returns:

  • (String, nil)


1243
# File 'lib/cerca/models/runtime_webhook_event.rb', line 1243

optional :tool_source_id, String, api_name: :toolSourceId

#tool_source_versionFloat?

Returns:

  • (Float, nil)


1248
# File 'lib/cerca/models/runtime_webhook_event.rb', line 1248

optional :tool_source_version, Float, api_name: :toolSourceVersion

#tool_use_idString

Returns:

  • (String)


1233
# File 'lib/cerca/models/runtime_webhook_event.rb', line 1233

required :tool_use_id, String, api_name: :toolUseId

#turn_idString

Returns:

  • (String)


1238
# File 'lib/cerca/models/runtime_webhook_event.rb', line 1238

required :turn_id, String, api_name: :turnId