Class: Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceUpdateToolRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ AssistantsV1ServiceUpdateToolRequest

Returns a new instance of AssistantsV1ServiceUpdateToolRequest.



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

def initialize(payload)
        @assistant_id = payload["assistant_id"]
        @description = payload["description"]
        @enabled = payload["enabled"]
        @meta = payload["meta"]
        @name = payload["name"]
        @policy = payload["policy"]
        @type = payload["type"]
end

Instance Attribute Details

#assistant_idObject

Parameters:

  • : (assistant_id)
    String

    The Assistant ID.

  • : (description)
    String

    The description of the tool.

  • : (enabled)
    Boolean

    True if the tool is enabled.

  • : (meta)
    Hash

    The metadata related to method, url, input_schema to used with the Tool.

  • : (name)
    String

    The name of the tool.

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

    The type of the tool.



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

def assistant_id
  @assistant_id
end

#descriptionObject

Parameters:

  • : (assistant_id)
    String

    The Assistant ID.

  • : (description)
    String

    The description of the tool.

  • : (enabled)
    Boolean

    True if the tool is enabled.

  • : (meta)
    Hash

    The metadata related to method, url, input_schema to used with the Tool.

  • : (name)
    String

    The name of the tool.

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

    The type of the tool.



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

def description
  @description
end

#enabledObject

Parameters:

  • : (assistant_id)
    String

    The Assistant ID.

  • : (description)
    String

    The description of the tool.

  • : (enabled)
    Boolean

    True if the tool is enabled.

  • : (meta)
    Hash

    The metadata related to method, url, input_schema to used with the Tool.

  • : (name)
    String

    The name of the tool.

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

    The type of the tool.



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

def enabled
  @enabled
end

#metaObject

Parameters:

  • : (assistant_id)
    String

    The Assistant ID.

  • : (description)
    String

    The description of the tool.

  • : (enabled)
    Boolean

    True if the tool is enabled.

  • : (meta)
    Hash

    The metadata related to method, url, input_schema to used with the Tool.

  • : (name)
    String

    The name of the tool.

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

    The type of the tool.



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

def meta
  @meta
end

#nameObject

Parameters:

  • : (assistant_id)
    String

    The Assistant ID.

  • : (description)
    String

    The description of the tool.

  • : (enabled)
    Boolean

    True if the tool is enabled.

  • : (meta)
    Hash

    The metadata related to method, url, input_schema to used with the Tool.

  • : (name)
    String

    The name of the tool.

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

    The type of the tool.



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

def name
  @name
end

#policyObject

Parameters:

  • : (assistant_id)
    String

    The Assistant ID.

  • : (description)
    String

    The description of the tool.

  • : (enabled)
    Boolean

    True if the tool is enabled.

  • : (meta)
    Hash

    The metadata related to method, url, input_schema to used with the Tool.

  • : (name)
    String

    The name of the tool.

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

    The type of the tool.



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

def policy
  @policy
end

#typeObject

Parameters:

  • : (assistant_id)
    String

    The Assistant ID.

  • : (description)
    String

    The description of the tool.

  • : (enabled)
    Boolean

    True if the tool is enabled.

  • : (meta)
    Hash

    The metadata related to method, url, input_schema to used with the Tool.

  • : (name)
    String

    The name of the tool.

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

    The type of the tool.



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

def type
  @type
end

Instance Method Details

#to_json(options = {}) ⇒ Object



96
97
98
99
100
101
102
103
104
105
106
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 96

def to_json(options = {})
{
        "assistant_id": @assistant_id,
        "description": @description,
        "enabled": @enabled,
        "meta": @meta,
        "name": @name,
        "policy": @policy,
        "type": @type,
}.to_json(options)
end