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 +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +6 -2
- data/lib/composio/api/actions_api.rb +10 -2
- data/lib/composio/models/action_get_nla_inputs_req_dto.rb +22 -4
- data/lib/composio/version.rb +1 -1
- data/spec/models/action_get_nla_inputs_req_dto_spec.rb +12 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a4cf91564d95e991ee3d5f5dcb293050aed0655ad449a4ca506880d4d28ed7d
|
4
|
+
data.tar.gz: 39192d23e7436601684fe59da377100075c53668cd556d6a1babc504218d0552
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
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.
|
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
|
data/lib/composio/version.rb
CHANGED
@@ -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.
|
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
|
+
date: 2024-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|