diff --git a/.konfig/changesets/eight-clouds-like.md b/.konfig/changesets/eight-clouds-like.md new file mode 100644 index 0000000..acf1dd6 --- /dev/null +++ b/.konfig/changesets/eight-clouds-like.md @@ -0,0 +1,5 @@ +--- +ruby: patch +--- + +Regenerate SDKs diff --git a/STATISTICS.md b/STATISTICS.md index b8f330e..562bd3a 100644 --- a/STATISTICS.md +++ b/STATISTICS.md @@ -2,5 +2,5 @@ | SDK Name | Lines of Code | | -------- | ------------- | -| ruby | 59953 | -| **Total** | 59953 | +| ruby | 59995 | +| **Total** | 59995 | diff --git a/composio.json b/composio.json index abe0f54..4bfa6d7 100644 --- a/composio.json +++ b/composio.json @@ -1914,6 +1914,12 @@ "properties": { "text": { "type": "string" + }, + "customDescription": { + "type": "string" + }, + "systemPrompt": { + "type": "string" } }, "type": "object", diff --git a/openapi-fixed.json b/openapi-fixed.json index 1681ad7..14ea9ec 100644 --- a/openapi-fixed.json +++ b/openapi-fixed.json @@ -4058,6 +4058,12 @@ "properties": { "text": { "type": "string" + }, + "customDescription": { + "type": "string" + }, + "systemPrompt": { + "type": "string" } }, "type": "object", diff --git a/ruby/.konfig/generate-id.txt b/ruby/.konfig/generate-id.txt index 567fe25..f5a8545 100644 --- a/ruby/.konfig/generate-id.txt +++ b/ruby/.konfig/generate-id.txt @@ -1 +1 @@ -a7941cdc-1e92-4184-b914-7bf910cfd1e3 \ No newline at end of file +a948fac5-6993-491f-9a32-c1d0d78bb643 \ No newline at end of file diff --git a/ruby/README.md b/ruby/README.md index e2a843b..1358356 100644 --- a/ruby/README.md +++ b/ruby/README.md @@ -322,6 +322,8 @@ Get the inputs for an action with NLA result = composio.actions.get_action_inputs( text: "string_example", action_id: "'+j>6", + custom_description: "string_example", + system_prompt: "string_example", ) p result ``` @@ -330,6 +332,8 @@ p result ##### text: `String` ##### action_id: `String` +##### customDescription: `String` +##### systemPrompt: `String` #### 🌐 Endpoint `/api/v2/actions/{actionId}/execute/get.inputs` `POST` diff --git a/ruby/lib/composio/api/actions_api.rb b/ruby/lib/composio/api/actions_api.rb index 06c05ec..5f12e65 100644 --- a/ruby/lib/composio/api/actions_api.rb +++ b/ruby/lib/composio/api/actions_api.rb @@ -350,11 +350,15 @@ def get_action_by_id_with_http_info(action_id:, extra: {}) # # @param text [String] # @param action_id [String] + # @param custom_description [String] + # @param system_prompt [String] # @param body [ActionGetNLAInputsReqDTO] # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def get_action_inputs(text:, action_id:, extra: {}) + def get_action_inputs(text:, action_id:, custom_description: SENTINEL, system_prompt: SENTINEL, extra: {}) _body = {} _body[:text] = text if text != SENTINEL + _body[:customDescription] = custom_description if custom_description != SENTINEL + _body[:systemPrompt] = system_prompt if system_prompt != SENTINEL extra[:action_get_nla_inputs_req_dto] = _body if !_body.empty? api_response = get_action_inputs_with_http_info_impl(action_id, extra) api_response.data @@ -366,11 +370,15 @@ def get_action_inputs(text:, action_id:, extra: {}) # # @param text [String] # @param action_id [String] + # @param custom_description [String] + # @param system_prompt [String] # @param body [ActionGetNLAInputsReqDTO] # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def get_action_inputs_with_http_info(text:, action_id:, extra: {}) + def get_action_inputs_with_http_info(text:, action_id:, custom_description: SENTINEL, system_prompt: SENTINEL, extra: {}) _body = {} _body[:text] = text if text != SENTINEL + _body[:customDescription] = custom_description if custom_description != SENTINEL + _body[:systemPrompt] = system_prompt if system_prompt != SENTINEL extra[:action_get_nla_inputs_req_dto] = _body if !_body.empty? get_action_inputs_with_http_info_impl(action_id, extra) end diff --git a/ruby/lib/composio/models/action_get_nla_inputs_req_dto.rb b/ruby/lib/composio/models/action_get_nla_inputs_req_dto.rb index bd95e7d..9cd4e84 100644 --- a/ruby/lib/composio/models/action_get_nla_inputs_req_dto.rb +++ b/ruby/lib/composio/models/action_get_nla_inputs_req_dto.rb @@ -13,10 +13,16 @@ module Composio class ActionGetNLAInputsReqDTO attr_accessor :text + attr_accessor :custom_description + + attr_accessor :system_prompt + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'text' => :'text' + :'text' => :'text', + :'custom_description' => :'customDescription', + :'system_prompt' => :'systemPrompt' } end @@ -28,7 +34,9 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'text' => :'String' + :'text' => :'String', + :'custom_description' => :'String', + :'system_prompt' => :'String' } end @@ -56,6 +64,14 @@ def initialize(attributes = {}) if attributes.key?(:'text') self.text = attributes[:'text'] end + + if attributes.key?(:'custom_description') + self.custom_description = attributes[:'custom_description'] + end + + if attributes.key?(:'system_prompt') + self.system_prompt = attributes[:'system_prompt'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -81,7 +97,9 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - text == o.text + text == o.text && + custom_description == o.custom_description && + system_prompt == o.system_prompt end # @see the `==` method @@ -93,7 +111,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [text].hash + [text, custom_description, system_prompt].hash end # Builds the object from hash diff --git a/ruby/spec/models/action_get_nla_inputs_req_dto_spec.rb b/ruby/spec/models/action_get_nla_inputs_req_dto_spec.rb index f854a38..1ff472b 100644 --- a/ruby/spec/models/action_get_nla_inputs_req_dto_spec.rb +++ b/ruby/spec/models/action_get_nla_inputs_req_dto_spec.rb @@ -25,4 +25,16 @@ end end + describe 'test attribute "custom_description"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "system_prompt"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end