Class: Revox::Models::CallCreateResponse::Call::LastCallAttempt

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/revox/models/call_create_response.rb,
sig/revox/models/call_create_response.rbs

Overview

See Also:

  • Revox::Models::CallCreateResponse::Call#last_call_attempt

Defined Under Namespace

Modules: DialError, EndReason, EndedBy, Result, Status Classes: PostCallTranscript, SMSLog, Transcript

Instance Attribute Summary collapse

Class Method 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:, answered_at:, dial_error:, ended_at:, phone_number:, recording_url:, result:, started_at:, status:, assistants_used: nil, end_reason: nil, ended_by: nil, post_call_transcript: nil, sms_log: nil, structured_output: nil, transcript: nil) ⇒ Object

Some parameter documentations has been truncated, see Revox::Models::CallCreateResponse::Call::LastCallAttempt for more details.

This represent a single call attempt. A call attempt is a single call made to the phone number.

Parameters:



# File 'lib/revox/models/call_create_response.rb', line 2582

Instance Attribute Details

#answered_atObject

The time the call was answered.

Parameters:

  • value (top)

Returns:

  • (Object)


2474
# File 'lib/revox/models/call_create_response.rb', line 2474

required :answered_at, Revox::Internal::Type::Unknown

#assistants_usedArray<String>?

Assistant node ids entered during this attempt, in traversal order.

Parameters:

  • value (::Array[String], nil)

Returns:

  • (Array<String>, nil)


2526
# File 'lib/revox/models/call_create_response.rb', line 2526

optional :assistants_used, Revox::Internal::Type::ArrayOf[String], nil?: true

#dial_errorSymbol, ...

The SIP error that occurred.

Parameters:

  • value (Revox::Models::CallCreateResponse::Call::LastCallAttempt::dial_error, nil)

Returns:



2480
2481
2482
# File 'lib/revox/models/call_create_response.rb', line 2480

required :dial_error,
enum: -> { Revox::Models::CallCreateResponse::Call::LastCallAttempt::DialError },
nil?: true

#end_reasonSymbol, ...

Reason for ending the call when ended_by is 'agent'. E.g. 'tool_end_call', 'voicemail', 'transfer', 'ivr_no_navigate'.

Parameters:

  • value (Revox::Models::CallCreateResponse::Call::LastCallAttempt::end_reason, nil)

Returns:



2533
2534
2535
# File 'lib/revox/models/call_create_response.rb', line 2533

optional :end_reason,
enum: -> { Revox::Models::CallCreateResponse::Call::LastCallAttempt::EndReason },
nil?: true

#ended_atObject

The time the call ended.

Parameters:

  • value (top)

Returns:

  • (Object)


2488
# File 'lib/revox/models/call_create_response.rb', line 2488

required :ended_at, Revox::Internal::Type::Unknown

#ended_bySymbol, ...

Who ended the call: 'agent' (AI agent), 'user' (caller/callee hung up), or 'system' (e.g. max duration limit).

Parameters:

  • value (Revox::Models::CallCreateResponse::Call::LastCallAttempt::ended_by, nil)

Returns:



2542
2543
2544
# File 'lib/revox/models/call_create_response.rb', line 2542

optional :ended_by,
enum: -> { Revox::Models::CallCreateResponse::Call::LastCallAttempt::EndedBy },
nil?: true

#idString

The ID of the call attempt.

Parameters:

  • value (String)

Returns:

  • (String)


2468
# File 'lib/revox/models/call_create_response.rb', line 2468

required :id, String

#phone_numberString

The phone number that was called. Formatted in E.164 format. Example: +1234567890

Parameters:

  • value (String)

Returns:

  • (String)


2495
# File 'lib/revox/models/call_create_response.rb', line 2495

required :phone_number, String

#post_call_transcriptArray<Revox::Models::CallCreateResponse::Call::LastCallAttempt::PostCallTranscript>?

Higher-quality transcript generated after the call via Soniox async STT. Null until generated or when no recording is available.



2551
2552
2553
# File 'lib/revox/models/call_create_response.rb', line 2551

optional :post_call_transcript,
-> { Revox::Internal::Type::ArrayOf[Revox::Models::CallCreateResponse::Call::LastCallAttempt::PostCallTranscript] },
nil?: true

#recording_urlString?

The URL of the audio recording of the call.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


2501
# File 'lib/revox/models/call_create_response.rb', line 2501

required :recording_url, String, nil?: true

#resultSymbol, ...

Parameters:

  • value (Revox::Models::CallCreateResponse::Call::LastCallAttempt::result, nil)

Returns:



2506
2507
2508
# File 'lib/revox/models/call_create_response.rb', line 2506

required :result,
enum: -> { Revox::Models::CallCreateResponse::Call::LastCallAttempt::Result },
nil?: true

#sms_logArray<Revox::Models::CallCreateResponse::Call::LastCallAttempt::SMSLog>?

Automatic SMS sent after the call (voicemail and after-call), ordered oldest first. The in-call send_sms is excluded — it already appears in the transcript as a tool call.



2561
2562
2563
# File 'lib/revox/models/call_create_response.rb', line 2561

optional :sms_log,
-> { Revox::Internal::Type::ArrayOf[Revox::Models::CallCreateResponse::Call::LastCallAttempt::SMSLog] },
nil?: true

#started_atObject

The time the call started.

Parameters:

  • value (top)

Returns:

  • (Object)


2514
# File 'lib/revox/models/call_create_response.rb', line 2514

required :started_at, Revox::Internal::Type::Unknown

#statusSymbol, Revox::Models::CallCreateResponse::Call::LastCallAttempt::Status

The status of the call attempt.

Parameters:

  • value (Revox::Models::CallCreateResponse::Call::LastCallAttempt::status)

Returns:



2520
# File 'lib/revox/models/call_create_response.rb', line 2520

required :status, enum: -> { Revox::Models::CallCreateResponse::Call::LastCallAttempt::Status }

#structured_outputHash{Symbol=>Object}?

The data extracted from the call, using the structured output config from the parent call object.

Parameters:

  • value (::Hash[Symbol, top], nil)

Returns:

  • (Hash{Symbol=>Object}, nil)


2570
2571
2572
# File 'lib/revox/models/call_create_response.rb', line 2570

optional :structured_output,
Revox::Internal::Type::HashOf[Revox::Internal::Type::Unknown],
nil?: true

#transcriptArray<Revox::Models::CallCreateResponse::Call::LastCallAttempt::Transcript>?

The live transcript of the call, built in real time.



2578
2579
2580
# File 'lib/revox/models/call_create_response.rb', line 2578

optional :transcript,
-> { Revox::Internal::Type::ArrayOf[Revox::Models::CallCreateResponse::Call::LastCallAttempt::Transcript] },
nil?: true

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/revox/models/call_create_response.rb', line 2636

Instance Method Details

#to_hash{

Returns:

  • ({)


2106
# File 'sig/revox/models/call_create_response.rbs', line 2106

def to_hash: -> {