Class: Zavudev::Models::AgentTemplateListResponse::Item

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

Defined Under Namespace

Modules: Category

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:, category:, name:, summary:, tool_count:, voice:) ⇒ Object

Compact catalog entry for a factory agent.

Parameters:



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# File 'lib/zavudev/models/agent_template_list_response.rb', line 15

class Item < Zavudev::Internal::Type::BaseModel
  # @!attribute id
  #
  #   @return [String]
  required :id, String

  # @!attribute category
  #
  #   @return [Symbol, Zavudev::Models::AgentTemplateListResponse::Item::Category]
  required :category, enum: -> { Zavudev::Models::AgentTemplateListResponse::Item::Category }

  # @!attribute name
  #
  #   @return [String]
  required :name, String

  # @!attribute summary
  #
  #   @return [String]
  required :summary, String

  # @!attribute tool_count
  #
  #   @return [Integer]
  required :tool_count, Integer, api_name: :toolCount

  # @!attribute voice
  #   Whether this agent answers phone calls.
  #
  #   @return [Boolean]
  required :voice, Zavudev::Internal::Type::Boolean

  # @!method initialize(id:, category:, name:, summary:, tool_count:, voice:)
  #   Compact catalog entry for a factory agent.
  #
  #   @param id [String]
  #
  #   @param category [Symbol, Zavudev::Models::AgentTemplateListResponse::Item::Category]
  #
  #   @param name [String]
  #
  #   @param summary [String]
  #
  #   @param tool_count [Integer]
  #
  #   @param voice [Boolean] Whether this agent answers phone calls.

  # @see Zavudev::Models::AgentTemplateListResponse::Item#category
  module Category
    extend Zavudev::Internal::Type::Enum

    SALES = :sales
    SUPPORT = :support
    FRONT_DESK = :frontDesk
    OPS = :ops

    # @!method self.values
    #   @return [Array<Symbol>]
  end
end

Instance Attribute Details

#category ⇒ Symbol, Zavudev::Models::AgentTemplateListResponse::Item::Category

Parameters:

  • value (Zavudev::Models::AgentTemplateListResponse::Item::category)

Returns:



24
# File 'lib/zavudev/models/agent_template_list_response.rb', line 24

required :category, enum: -> { Zavudev::Models::AgentTemplateListResponse::Item::Category }

#id ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


19
# File 'lib/zavudev/models/agent_template_list_response.rb', line 19

required :id, String

#name ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


29
# File 'lib/zavudev/models/agent_template_list_response.rb', line 29

required :name, String

#summary ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


34
# File 'lib/zavudev/models/agent_template_list_response.rb', line 34

required :summary, String

#tool_count ⇒ Integer

Parameters:

  • value (Integer)

Returns:

  • (Integer)


39
# File 'lib/zavudev/models/agent_template_list_response.rb', line 39

required :tool_count, Integer, api_name: :toolCount

#voice ⇒ Boolean

Whether this agent answers phone calls.

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


45
# File 'lib/zavudev/models/agent_template_list_response.rb', line 45

required :voice, Zavudev::Internal::Type::Boolean

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


49
# File 'sig/zavudev/models/agent_template_list_response.rbs', line 49

def to_hash: -> {