cuadra-ai-sdk 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +20 -20
- data/lib/cuadra_ai/controllers/base_controller.rb +1 -1
- 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: 57be8aa2d4339dbe86c8b1e796322729d7b56bf51bf189d55a51d99d2ddaa9c5
|
4
|
+
data.tar.gz: '0579d3e617eb789d186fa842a7534922f5446c6412481c2b8e039ab34e7dd7d0'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7906972c56890bc577ca71de9b5d92e50c2fa46fa1215be4d630668e96ec5de4f1989badd37694a460528523d91581a0add7892220df710835819795e693bf8
|
7
|
+
data.tar.gz: 43a33bba5474b7843179359223a4a79f3686f13e5857371cf15d2b0415a2b491e00a5dc0827c2b21c537ed79aeadbf78878880027ea778a2db1847dc7fad2b9c
|
data/README.md
CHANGED
@@ -10,20 +10,20 @@ API Documentation
|
|
10
10
|
Install the gem from the command line:
|
11
11
|
|
12
12
|
```bash
|
13
|
-
gem install cuadra-ai-sdk -v 1.0.
|
13
|
+
gem install cuadra-ai-sdk -v 1.0.3
|
14
14
|
```
|
15
15
|
|
16
16
|
Or add the gem to your Gemfile and run `bundle`:
|
17
17
|
|
18
18
|
```ruby
|
19
|
-
gem 'cuadra-ai-sdk', '1.0.
|
19
|
+
gem 'cuadra-ai-sdk', '1.0.3'
|
20
20
|
```
|
21
21
|
|
22
|
-
For additional gem details, see the [RubyGems page for the cuadra-ai-sdk gem](https://rubygems.org/gems/cuadra-ai-sdk/versions/1.0.
|
22
|
+
For additional gem details, see the [RubyGems page for the cuadra-ai-sdk gem](https://rubygems.org/gems/cuadra-ai-sdk/versions/1.0.3).
|
23
23
|
|
24
24
|
## Initialize the API Client
|
25
25
|
|
26
|
-
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/
|
26
|
+
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/cuadra-ai/cuadra-ai-ruby-sdk/tree/1.0.3/doc/client.md)
|
27
27
|
|
28
28
|
The following parameters are configurable for the API Client:
|
29
29
|
|
@@ -39,8 +39,8 @@ The following parameters are configurable for the API Client:
|
|
39
39
|
| retry_statuses | `Array` | A list of HTTP statuses to retry. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
|
40
40
|
| retry_methods | `Array` | A list of HTTP methods to retry. <br> **Default: %i[get put]** |
|
41
41
|
| http_callback | `HttpCallBack` | The Http CallBack allows defining callables for pre and post API calls. |
|
42
|
-
| logging_configuration | [`LoggingConfiguration`](https://www.github.com/
|
43
|
-
| authorization_code_auth_credentials | [`AuthorizationCodeAuthCredentials`](https://www.github.com/
|
42
|
+
| logging_configuration | [`LoggingConfiguration`](https://www.github.com/cuadra-ai/cuadra-ai-ruby-sdk/tree/1.0.3/doc/logging-configuration.md) | The SDK logging configuration for API calls |
|
43
|
+
| authorization_code_auth_credentials | [`AuthorizationCodeAuthCredentials`](https://www.github.com/cuadra-ai/cuadra-ai-ruby-sdk/tree/1.0.3/doc/auth/oauth-2-authorization-code-grant.md) | The credential object for OAuth 2 Authorization Code Grant |
|
44
44
|
|
45
45
|
The API client can be initialized as follows:
|
46
46
|
|
@@ -68,32 +68,32 @@ client = CuadraAi::Client.new(
|
|
68
68
|
|
69
69
|
This API uses the following authentication schemes.
|
70
70
|
|
71
|
-
* [`OAuth2 (OAuth 2 Authorization Code Grant)`](https://www.github.com/
|
71
|
+
* [`OAuth2 (OAuth 2 Authorization Code Grant)`](https://www.github.com/cuadra-ai/cuadra-ai-ruby-sdk/tree/1.0.3/doc/auth/oauth-2-authorization-code-grant.md)
|
72
72
|
|
73
73
|
## List of APIs
|
74
74
|
|
75
|
-
* [Chat](https://www.github.com/
|
76
|
-
* [Models](https://www.github.com/
|
77
|
-
* [Embeds](https://www.github.com/
|
78
|
-
* [Usage](https://www.github.com/
|
75
|
+
* [Chat](https://www.github.com/cuadra-ai/cuadra-ai-ruby-sdk/tree/1.0.3/doc/controllers/chat.md)
|
76
|
+
* [Models](https://www.github.com/cuadra-ai/cuadra-ai-ruby-sdk/tree/1.0.3/doc/controllers/models.md)
|
77
|
+
* [Embeds](https://www.github.com/cuadra-ai/cuadra-ai-ruby-sdk/tree/1.0.3/doc/controllers/embeds.md)
|
78
|
+
* [Usage](https://www.github.com/cuadra-ai/cuadra-ai-ruby-sdk/tree/1.0.3/doc/controllers/usage.md)
|
79
79
|
|
80
80
|
## SDK Infrastructure
|
81
81
|
|
82
82
|
### Configuration
|
83
83
|
|
84
|
-
* [AbstractLogger](https://www.github.com/
|
85
|
-
* [LoggingConfiguration](https://www.github.com/
|
86
|
-
* [RequestLoggingConfiguration](https://www.github.com/
|
87
|
-
* [ResponseLoggingConfiguration](https://www.github.com/
|
84
|
+
* [AbstractLogger](https://www.github.com/cuadra-ai/cuadra-ai-ruby-sdk/tree/1.0.3/doc/abstract-logger.md)
|
85
|
+
* [LoggingConfiguration](https://www.github.com/cuadra-ai/cuadra-ai-ruby-sdk/tree/1.0.3/doc/logging-configuration.md)
|
86
|
+
* [RequestLoggingConfiguration](https://www.github.com/cuadra-ai/cuadra-ai-ruby-sdk/tree/1.0.3/doc/request-logging-configuration.md)
|
87
|
+
* [ResponseLoggingConfiguration](https://www.github.com/cuadra-ai/cuadra-ai-ruby-sdk/tree/1.0.3/doc/response-logging-configuration.md)
|
88
88
|
|
89
89
|
### HTTP
|
90
90
|
|
91
|
-
* [HttpResponse](https://www.github.com/
|
92
|
-
* [HttpRequest](https://www.github.com/
|
91
|
+
* [HttpResponse](https://www.github.com/cuadra-ai/cuadra-ai-ruby-sdk/tree/1.0.3/doc/http-response.md)
|
92
|
+
* [HttpRequest](https://www.github.com/cuadra-ai/cuadra-ai-ruby-sdk/tree/1.0.3/doc/http-request.md)
|
93
93
|
|
94
94
|
### Utilities
|
95
95
|
|
96
|
-
* [ApiResponse](https://www.github.com/
|
97
|
-
* [ApiHelper](https://www.github.com/
|
98
|
-
* [DateTimeHelper](https://www.github.com/
|
96
|
+
* [ApiResponse](https://www.github.com/cuadra-ai/cuadra-ai-ruby-sdk/tree/1.0.3/doc/api-response.md)
|
97
|
+
* [ApiHelper](https://www.github.com/cuadra-ai/cuadra-ai-ruby-sdk/tree/1.0.3/doc/api-helper.md)
|
98
|
+
* [DateTimeHelper](https://www.github.com/cuadra-ai/cuadra-ai-ruby-sdk/tree/1.0.3/doc/date-time-helper.md)
|
99
99
|
|
@@ -10,7 +10,7 @@ module CuadraAi
|
|
10
10
|
attr_accessor :config, :http_call_back
|
11
11
|
|
12
12
|
def self.user_agent
|
13
|
-
'Ruby-SDK/1.0.
|
13
|
+
'Ruby-SDK/1.0.3 [OS: {os-info}, Engine: {engine}/{engine-version}]'
|
14
14
|
end
|
15
15
|
|
16
16
|
def self.user_agent_parameters
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cuadra-ai-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cuadra AI
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-07-
|
11
|
+
date: 2025-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apimatic_core_interfaces
|