Class: Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceUpdateKnowledgeRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/assistants/v1/knowledge.rb,
lib/twilio-ruby/rest/assistants/v1/knowledge.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ AssistantsV1ServiceUpdateKnowledgeRequest

Returns a new instance of AssistantsV1ServiceUpdateKnowledgeRequest.



86
87
88
89
90
91
92
93
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 86

def initialize(payload)
        @description = payload["description"]
        @knowledge_source_details = payload["knowledge_source_details"]
        @name = payload["name"]
        @policy = payload["policy"]
        @type = payload["type"]
        @embedding_model = payload["embedding_model"]
end

Instance Attribute Details

#descriptionObject

Parameters:

  • : (description)
    String

    The description of the knowledge source.

  • : (knowledge_source_details)
    Hash

    The details of the knowledge source based on the type.

  • : (name)
    String

    The name of the knowledge source.

  • : (policy)
    KnowledgeList.AssistantsV1ServiceCreatePolicyRequest
  • : (type)
    String

    The description of the knowledge source.

  • : (embedding_model)
    String

    The embedding model to be used for the knowledge source. It’s only applicable to ‘Database’ type.



85
86
87
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 85

def description
  @description
end

#embedding_modelObject

Parameters:

  • : (description)
    String

    The description of the knowledge source.

  • : (knowledge_source_details)
    Hash

    The details of the knowledge source based on the type.

  • : (name)
    String

    The name of the knowledge source.

  • : (policy)
    KnowledgeList.AssistantsV1ServiceCreatePolicyRequest
  • : (type)
    String

    The description of the knowledge source.

  • : (embedding_model)
    String

    The embedding model to be used for the knowledge source. It’s only applicable to ‘Database’ type.



85
86
87
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 85

def embedding_model
  @embedding_model
end

#knowledge_source_detailsObject

Parameters:

  • : (description)
    String

    The description of the knowledge source.

  • : (knowledge_source_details)
    Hash

    The details of the knowledge source based on the type.

  • : (name)
    String

    The name of the knowledge source.

  • : (policy)
    KnowledgeList.AssistantsV1ServiceCreatePolicyRequest
  • : (type)
    String

    The description of the knowledge source.

  • : (embedding_model)
    String

    The embedding model to be used for the knowledge source. It’s only applicable to ‘Database’ type.



85
86
87
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 85

def knowledge_source_details
  @knowledge_source_details
end

#nameObject

Parameters:

  • : (description)
    String

    The description of the knowledge source.

  • : (knowledge_source_details)
    Hash

    The details of the knowledge source based on the type.

  • : (name)
    String

    The name of the knowledge source.

  • : (policy)
    KnowledgeList.AssistantsV1ServiceCreatePolicyRequest
  • : (type)
    String

    The description of the knowledge source.

  • : (embedding_model)
    String

    The embedding model to be used for the knowledge source. It’s only applicable to ‘Database’ type.



85
86
87
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 85

def name
  @name
end

#policyObject

Parameters:

  • : (description)
    String

    The description of the knowledge source.

  • : (knowledge_source_details)
    Hash

    The details of the knowledge source based on the type.

  • : (name)
    String

    The name of the knowledge source.

  • : (policy)
    KnowledgeList.AssistantsV1ServiceCreatePolicyRequest
  • : (type)
    String

    The description of the knowledge source.

  • : (embedding_model)
    String

    The embedding model to be used for the knowledge source. It’s only applicable to ‘Database’ type.



85
86
87
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 85

def policy
  @policy
end

#typeObject

Parameters:

  • : (description)
    String

    The description of the knowledge source.

  • : (knowledge_source_details)
    Hash

    The details of the knowledge source based on the type.

  • : (name)
    String

    The name of the knowledge source.

  • : (policy)
    KnowledgeList.AssistantsV1ServiceCreatePolicyRequest
  • : (type)
    String

    The description of the knowledge source.

  • : (embedding_model)
    String

    The embedding model to be used for the knowledge source. It’s only applicable to ‘Database’ type.



85
86
87
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 85

def type
  @type
end

Instance Method Details

#to_json(options = {}) ⇒ Object



94
95
96
97
98
99
100
101
102
103
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 94

def to_json(options = {})
{
        "description": @description,
        "knowledge_source_details": @knowledge_source_details,
        "name": @name,
        "policy": @policy,
        "type": @type,
        "embedding_model": @embedding_model,
}.to_json(options)
end