Class: Telnyx::Models::AI::Conversations::InsightTemplate

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/ai/conversations/insight_template.rb

Overview

Defined Under Namespace

Modules: InsightType, JsonSchema

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:, created_at:, instructions:, insight_type: nil, json_schema: nil, name: nil, webhook: nil) ⇒ Object

Parameters:

  • id (String)
  • created_at (Time)
  • instructions (String)
  • insight_type (Symbol, Telnyx::Models::AI::Conversations::InsightTemplate::InsightType) (defaults to: nil)
  • json_schema (String, Hash{Symbol=>Object}) (defaults to: nil)

    If specified, the output will follow the JSON schema.

  • name (String) (defaults to: nil)
  • webhook (String) (defaults to: nil)


# File 'lib/telnyx/models/ai/conversations/insight_template.rb', line 45

Instance Attribute Details

#created_atTime

Returns:

  • (Time)


17
# File 'lib/telnyx/models/ai/conversations/insight_template.rb', line 17

required :created_at, Time

#idString

Returns:

  • (String)


12
# File 'lib/telnyx/models/ai/conversations/insight_template.rb', line 12

required :id, String

#insight_typeSymbol, ...



27
# File 'lib/telnyx/models/ai/conversations/insight_template.rb', line 27

optional :insight_type, enum: -> { Telnyx::AI::Conversations::InsightTemplate::InsightType }

#instructionsString

Returns:

  • (String)


22
# File 'lib/telnyx/models/ai/conversations/insight_template.rb', line 22

required :instructions, String

#json_schemaString, ...

If specified, the output will follow the JSON schema.

Returns:

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


33
# File 'lib/telnyx/models/ai/conversations/insight_template.rb', line 33

optional :json_schema, union: -> { Telnyx::AI::Conversations::InsightTemplate::JsonSchema }

#nameString?

Returns:

  • (String, nil)


38
# File 'lib/telnyx/models/ai/conversations/insight_template.rb', line 38

optional :name, String

#webhookString?

Returns:

  • (String, nil)


43
# File 'lib/telnyx/models/ai/conversations/insight_template.rb', line 43

optional :webhook, String

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/telnyx/models/ai/conversations/insight_template.rb', line 67