composio 0.1.2 → 0.1.3

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: abf8f070dc696e8a0d0b126776ce7e00c24194941a9cc66a67f910ae30afee68
4
- data.tar.gz: 81a1ae922085c417866b120664b322530fc7a79ce6e501106c02e2df0cbe019e
3
+ metadata.gz: e74cda85ecce03b622454347b86726c150559ddb921bf79953bb8ce8579c5785
4
+ data.tar.gz: 8962ccf6a127603c213a1165b8e03ddb839d52d1093e43f594ed2f4219af5b93
5
5
  SHA512:
6
- metadata.gz: 19aa2daee518ec1f86eacc22344868de22fbe20db89c6990146d60276b49772b90fa1735992d052fbe8e0af43abf6ee34f0b65a667ff4614e3ea39eec7514d63
7
- data.tar.gz: 3316db42ff6faaf2c92750b0aaf1c7693b0bab402960080b5c4b7523f8d38132e656780f46daa8c2c7207909b7b6600ff06619b25ff7e34d9787eced370ee1cc
6
+ metadata.gz: 4cd59e2bd7fc01e85f68f6804648634dbc5a0698b797f3d54ec4326472484e73bc8a0bc618ebd91f7ebc18b7e98164670b08dfffbe607d41d9d467a91e9cdac5
7
+ data.tar.gz: 0db7b8fbccd01e1a0ec4c785cba71d1b5dbb66afe878f40c8e45356a55c100b96bf2dfe73a4f27c9dc56619e56cc3f9a4a0a8243ea9d1fc66bc396c8a284a07f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- composio (0.1.2)
4
+ composio (0.1.3)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
@@ -29,7 +29,7 @@ GEM
29
29
  method_source (1.1.0)
30
30
  multipart-post (2.4.1)
31
31
  parallel (1.26.3)
32
- parser (3.3.4.2)
32
+ parser (3.3.5.0)
33
33
  ast (~> 2.4.1)
34
34
  racc
35
35
  pry (0.14.2)
@@ -44,13 +44,12 @@ GEM
44
44
  regexp_parser (2.9.2)
45
45
  reline (0.5.9)
46
46
  io-console (~> 0.5)
47
- rexml (3.3.6)
48
- strscan
47
+ rexml (3.3.7)
49
48
  rspec (3.13.0)
50
49
  rspec-core (~> 3.13.0)
51
50
  rspec-expectations (~> 3.13.0)
52
51
  rspec-mocks (~> 3.13.0)
53
- rspec-core (3.13.0)
52
+ rspec-core (3.13.1)
54
53
  rspec-support (~> 3.13.0)
55
54
  rspec-expectations (3.13.2)
56
55
  diff-lcs (>= 1.2.0, < 2.0)
@@ -68,11 +67,10 @@ GEM
68
67
  rubocop-ast (>= 1.2.0, < 2.0)
69
68
  ruby-progressbar (~> 1.7)
70
69
  unicode-display_width (>= 1.4.0, < 3.0)
71
- rubocop-ast (1.32.1)
70
+ rubocop-ast (1.32.2)
72
71
  parser (>= 3.3.1.0)
73
72
  ruby-progressbar (1.13.0)
74
73
  ruby2_keywords (0.0.5)
75
- strscan (3.1.0)
76
74
  unicode-display_width (2.5.0)
77
75
 
78
76
  PLATFORMS
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.2-blue)](https://rubygems.org/gems/composio/versions/0.1.2)
9
+ [![npm](https://img.shields.io/badge/gem-v0.1.3-blue)](https://rubygems.org/gems/composio/versions/0.1.3)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://composio.dev)
11
11
 
12
12
  </div>
@@ -60,7 +60,7 @@ Composio SDK: Equip your agent with high-quality tools and build your real-world
60
60
  Add to Gemfile:
61
61
 
62
62
  ```ruby
63
- gem 'composio', '~> 0.1.2'
63
+ gem 'composio', '~> 0.1.3'
64
64
  ```
65
65
 
66
66
  ## Getting Started<a id="getting-started"></a>
@@ -363,6 +363,7 @@ Retrieve a list of all applications based on query parameters.
363
363
  ```ruby
364
364
  result = composio.apps.list(
365
365
  category: "string_example",
366
+ include_local: "string_example",
366
367
  )
367
368
  p result
368
369
  ```
@@ -370,6 +371,7 @@ p result
370
371
  #### ⚙️ Parameters<a id="⚙️-parameters"></a>
371
372
 
372
373
  ##### category: `String`<a id="category-string"></a>
374
+ ##### include_local: `String`<a id="include_local-string"></a>
373
375
  #### 🔄 Return<a id="🔄-return"></a>
374
376
 
375
377
  [AppListResDTO](./lib/composio/models/app_list_res_dto.rb)
@@ -111,9 +111,11 @@ module Composio
111
111
  # Retrieve a list of all applications based on query parameters.
112
112
  #
113
113
  # @param category [String]
114
+ # @param include_local [String]
114
115
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
115
- def list(category: SENTINEL, extra: {})
116
+ def list(category: SENTINEL, include_local: SENTINEL, extra: {})
116
117
  extra[:category] = category if category != SENTINEL
118
+ extra[:include_local] = include_local if include_local != SENTINEL
117
119
  api_response = list_with_http_info_impl(extra)
118
120
  api_response.data
119
121
  end
@@ -123,9 +125,11 @@ module Composio
123
125
  # Retrieve a list of all applications based on query parameters.
124
126
  #
125
127
  # @param category [String]
128
+ # @param include_local [String]
126
129
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
127
- def list_with_http_info(category: SENTINEL, extra: {})
130
+ def list_with_http_info(category: SENTINEL, include_local: SENTINEL, extra: {})
128
131
  extra[:category] = category if category != SENTINEL
132
+ extra[:include_local] = include_local if include_local != SENTINEL
129
133
  list_with_http_info_impl(extra)
130
134
  end
131
135
 
@@ -133,6 +137,7 @@ module Composio
133
137
  # Retrieve a list of all applications based on query parameters.
134
138
  # @param [Hash] opts the optional parameters
135
139
  # @option opts [String] :category
140
+ # @option opts [String] :include_local
136
141
  # @return [AppListResDTO]
137
142
  private def list_impl(opts = {})
138
143
  data, _status_code, _headers = list_with_http_info(opts)
@@ -143,6 +148,7 @@ module Composio
143
148
  # Retrieve a list of all applications based on query parameters.
144
149
  # @param [Hash] opts the optional parameters
145
150
  # @option opts [String] :category
151
+ # @option opts [String] :include_local
146
152
  # @return [APIResponse] data is AppListResDTO, status code, headers and response
147
153
  private def list_with_http_info_impl(opts = {})
148
154
  if @api_client.config.debugging
@@ -154,6 +160,7 @@ module Composio
154
160
  # query parameters
155
161
  query_params = opts[:query_params] || {}
156
162
  query_params[:'category'] = opts[:'category'] if !opts[:'category'].nil?
163
+ query_params[:'includeLocal'] = opts[:'include_local'] if !opts[:'include_local'].nil?
157
164
 
158
165
  # header parameters
159
166
  header_params = opts[:header_params] || {}
@@ -14,10 +14,14 @@ module Composio
14
14
  # Category of the app
15
15
  attr_accessor :category
16
16
 
17
+ # Whether to include local tools or not
18
+ attr_accessor :include_local
19
+
17
20
  # Attribute mapping from ruby-style variable name to JSON key.
18
21
  def self.attribute_map
19
22
  {
20
- :'category' => :'category'
23
+ :'category' => :'category',
24
+ :'include_local' => :'includeLocal'
21
25
  }
22
26
  end
23
27
 
@@ -29,7 +33,8 @@ module Composio
29
33
  # Attribute type mapping.
30
34
  def self.openapi_types
31
35
  {
32
- :'category' => :'String'
36
+ :'category' => :'String',
37
+ :'include_local' => :'String'
33
38
  }
34
39
  end
35
40
 
@@ -57,6 +62,10 @@ module Composio
57
62
  if attributes.key?(:'category')
58
63
  self.category = attributes[:'category']
59
64
  end
65
+
66
+ if attributes.key?(:'include_local')
67
+ self.include_local = attributes[:'include_local']
68
+ end
60
69
  end
61
70
 
62
71
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -77,7 +86,8 @@ module Composio
77
86
  def ==(o)
78
87
  return true if self.equal?(o)
79
88
  self.class == o.class &&
80
- category == o.category
89
+ category == o.category &&
90
+ include_local == o.include_local
81
91
  end
82
92
 
83
93
  # @see the `==` method
@@ -89,7 +99,7 @@ module Composio
89
99
  # Calculates hash code according to all attributes.
90
100
  # @return [Integer] Hash code
91
101
  def hash
92
- [category].hash
102
+ [category, include_local].hash
93
103
  end
94
104
 
95
105
  # 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.2'
10
+ VERSION = '0.1.3'
11
11
  end
@@ -43,6 +43,7 @@ describe 'AppsApi' do
43
43
  # Retrieve a list of all applications based on query parameters.
44
44
  # @param [Hash] opts the optional parameters
45
45
  # @option opts [String] :category
46
+ # @option opts [String] :include_local
46
47
  # @return [AppListResDTO]
47
48
  describe 'list test' do
48
49
  it 'should work' do
@@ -25,4 +25,10 @@ describe Composio::AppQueryDTO do
25
25
  end
26
26
  end
27
27
 
28
+ describe 'test attribute "include_local"' 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
+
28
34
  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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konfig
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-29 00:00:00.000000000 Z
11
+ date: 2024-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday