composio 0.1.16 → 0.1.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e1f673010f5983ed84f65eb441b2466f317d07d77244b511894e6f2e40f80681
4
- data.tar.gz: dcd7f748a3c92eb6692e44fd9d5229aecc568b6a7a98adff7bcfa34454b37f6d
3
+ metadata.gz: 3a4cf91564d95e991ee3d5f5dcb293050aed0655ad449a4ca506880d4d28ed7d
4
+ data.tar.gz: 39192d23e7436601684fe59da377100075c53668cd556d6a1babc504218d0552
5
5
  SHA512:
6
- metadata.gz: 71fdf691f8a7ea5f93450f047588b68f88ba47c03bec389fcf0f70a4bf81f58be822a1371366ab824a0dd352cbad7629e66d91f963c897fcea423a021f7be513
7
- data.tar.gz: 1772b5d2c93f09c8f83cdf8d798adcdb682d3035b6cf841400bc6c78f7c76ad9090d35874441a706b7190e7eda5830bb03d0dac347bcf8f6286907c68e95b180
6
+ metadata.gz: 23327875e8115ac18cde1d516ed7a52b823ff17228ed335ce230909d083468a67e5104f7426778e085ef5537eba52c954b51c927957e624867cfc39ea68abb6a
7
+ data.tar.gz: c5c51033336dd1b73a488dcc917e32eba5b0881114ef52d9149d10f590a9f3da427d051c6243ab2f58de32029c9241d7eb4def49c2c4606c00fcdb4a35e4005e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- composio (0.1.16)
4
+ composio (0.1.17)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
@@ -67,7 +67,7 @@ GEM
67
67
  rubocop-ast (>= 1.2.0, < 2.0)
68
68
  ruby-progressbar (~> 1.7)
69
69
  unicode-display_width (>= 1.4.0, < 3.0)
70
- rubocop-ast (1.34.1)
70
+ rubocop-ast (1.35.0)
71
71
  parser (>= 3.3.1.0)
72
72
  ruby-progressbar (1.13.0)
73
73
  ruby2_keywords (0.0.5)
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Composio SDK: Equip your agent with high-quality tools and build your real-world usecase
8
8
 
9
- [![npm](https://img.shields.io/badge/gem-v0.1.16-blue)](https://rubygems.org/gems/composio/versions/0.1.16)
9
+ [![npm](https://img.shields.io/badge/gem-v0.1.17-blue)](https://rubygems.org/gems/composio/versions/0.1.17)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://composio.dev)
11
11
 
12
12
  </div>
@@ -77,7 +77,7 @@ Composio SDK: Equip your agent with high-quality tools and build your real-world
77
77
  Add to Gemfile:
78
78
 
79
79
  ```ruby
80
- gem 'composio', '~> 0.1.16'
80
+ gem 'composio', '~> 0.1.17'
81
81
  ```
82
82
 
83
83
  ## Getting Started<a id="getting-started"></a>
@@ -322,6 +322,8 @@ Get the inputs for an action with NLA
322
322
  result = composio.actions.get_action_inputs(
323
323
  text: "string_example",
324
324
  action_id: "'+j>6",
325
+ custom_description: "string_example",
326
+ system_prompt: "string_example",
325
327
  )
326
328
  p result
327
329
  ```
@@ -330,6 +332,8 @@ p result
330
332
 
331
333
  ##### text: `String`<a id="text-string"></a>
332
334
  ##### action_id: `String`<a id="action_id-string"></a>
335
+ ##### customDescription: `String`<a id="customdescription-string"></a>
336
+ ##### systemPrompt: `String`<a id="systemprompt-string"></a>
333
337
  #### 🌐 Endpoint<a id="🌐-endpoint"></a>
334
338
 
335
339
  `/api/v2/actions/{actionId}/execute/get.inputs` `POST`
@@ -350,11 +350,15 @@ module Composio
350
350
  #
351
351
  # @param text [String]
352
352
  # @param action_id [String]
353
+ # @param custom_description [String]
354
+ # @param system_prompt [String]
353
355
  # @param body [ActionGetNLAInputsReqDTO]
354
356
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
355
- def get_action_inputs(text:, action_id:, extra: {})
357
+ def get_action_inputs(text:, action_id:, custom_description: SENTINEL, system_prompt: SENTINEL, extra: {})
356
358
  _body = {}
357
359
  _body[:text] = text if text != SENTINEL
360
+ _body[:customDescription] = custom_description if custom_description != SENTINEL
361
+ _body[:systemPrompt] = system_prompt if system_prompt != SENTINEL
358
362
  extra[:action_get_nla_inputs_req_dto] = _body if !_body.empty?
359
363
  api_response = get_action_inputs_with_http_info_impl(action_id, extra)
360
364
  api_response.data
@@ -366,11 +370,15 @@ module Composio
366
370
  #
367
371
  # @param text [String]
368
372
  # @param action_id [String]
373
+ # @param custom_description [String]
374
+ # @param system_prompt [String]
369
375
  # @param body [ActionGetNLAInputsReqDTO]
370
376
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
371
- def get_action_inputs_with_http_info(text:, action_id:, extra: {})
377
+ def get_action_inputs_with_http_info(text:, action_id:, custom_description: SENTINEL, system_prompt: SENTINEL, extra: {})
372
378
  _body = {}
373
379
  _body[:text] = text if text != SENTINEL
380
+ _body[:customDescription] = custom_description if custom_description != SENTINEL
381
+ _body[:systemPrompt] = system_prompt if system_prompt != SENTINEL
374
382
  extra[:action_get_nla_inputs_req_dto] = _body if !_body.empty?
375
383
  get_action_inputs_with_http_info_impl(action_id, extra)
376
384
  end
@@ -13,10 +13,16 @@ module Composio
13
13
  class ActionGetNLAInputsReqDTO
14
14
  attr_accessor :text
15
15
 
16
+ attr_accessor :custom_description
17
+
18
+ attr_accessor :system_prompt
19
+
16
20
  # Attribute mapping from ruby-style variable name to JSON key.
17
21
  def self.attribute_map
18
22
  {
19
- :'text' => :'text'
23
+ :'text' => :'text',
24
+ :'custom_description' => :'customDescription',
25
+ :'system_prompt' => :'systemPrompt'
20
26
  }
21
27
  end
22
28
 
@@ -28,7 +34,9 @@ module Composio
28
34
  # Attribute type mapping.
29
35
  def self.openapi_types
30
36
  {
31
- :'text' => :'String'
37
+ :'text' => :'String',
38
+ :'custom_description' => :'String',
39
+ :'system_prompt' => :'String'
32
40
  }
33
41
  end
34
42
 
@@ -56,6 +64,14 @@ module Composio
56
64
  if attributes.key?(:'text')
57
65
  self.text = attributes[:'text']
58
66
  end
67
+
68
+ if attributes.key?(:'custom_description')
69
+ self.custom_description = attributes[:'custom_description']
70
+ end
71
+
72
+ if attributes.key?(:'system_prompt')
73
+ self.system_prompt = attributes[:'system_prompt']
74
+ end
59
75
  end
60
76
 
61
77
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -81,7 +97,9 @@ module Composio
81
97
  def ==(o)
82
98
  return true if self.equal?(o)
83
99
  self.class == o.class &&
84
- text == o.text
100
+ text == o.text &&
101
+ custom_description == o.custom_description &&
102
+ system_prompt == o.system_prompt
85
103
  end
86
104
 
87
105
  # @see the `==` method
@@ -93,7 +111,7 @@ module Composio
93
111
  # Calculates hash code according to all attributes.
94
112
  # @return [Integer] Hash code
95
113
  def hash
96
- [text].hash
114
+ [text, custom_description, system_prompt].hash
97
115
  end
98
116
 
99
117
  # Builds the object from hash
@@ -7,5 +7,5 @@ The version of the OpenAPI document: 1.0.0
7
7
  =end
8
8
 
9
9
  module Composio
10
- VERSION = '0.1.16'
10
+ VERSION = '0.1.17'
11
11
  end
@@ -25,4 +25,16 @@ describe Composio::ActionGetNLAInputsReqDTO do
25
25
  end
26
26
  end
27
27
 
28
+ describe 'test attribute "custom_description"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ describe 'test attribute "system_prompt"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
28
40
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: composio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.16
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konfig
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-11 00:00:00.000000000 Z
11
+ date: 2024-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday