tavus 0.1.0
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 +7 -0
- data/.rspec +4 -0
- data/.rubocop.yml +32 -0
- data/CHANGELOG.md +58 -0
- data/Gemfile +12 -0
- data/Gemfile.lock +90 -0
- data/LICENSE.txt +21 -0
- data/README.md +736 -0
- data/Rakefile +153 -0
- data/examples/advanced_persona.rb +148 -0
- data/examples/basic_usage.rb +107 -0
- data/examples/complete_workflow.rb +200 -0
- data/lib/tavus/client.rb +150 -0
- data/lib/tavus/configuration.rb +26 -0
- data/lib/tavus/errors.rb +13 -0
- data/lib/tavus/resources/conversations.rb +66 -0
- data/lib/tavus/resources/documents.rb +61 -0
- data/lib/tavus/resources/guardrails.rb +88 -0
- data/lib/tavus/resources/objectives.rb +87 -0
- data/lib/tavus/resources/personas.rb +97 -0
- data/lib/tavus/resources/replicas.rb +64 -0
- data/lib/tavus/resources/videos.rb +90 -0
- data/lib/tavus/version.rb +5 -0
- data/lib/tavus.rb +31 -0
- metadata +168 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: b8abebe116a50edbe96292bcedc7a3594eab176057beba78b51b87040df69c56
|
|
4
|
+
data.tar.gz: 7009d1905a0e5ed9bd768913acfd04f6ac0902ea412497e4534a293e5b8ab10c
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: b98ef18d21ee6fbbf469c3ca2218326a7f81463ffba244f347ad6143d36e45ae1ab26aaaf2caf3331d3d47712da3f4312af3fa0588d06227f1aa422064b4e2ca
|
|
7
|
+
data.tar.gz: b516b9b900af933c7b28b5c04878f6898473086eb72d4ba03695dbc88c92333c16c849aacc2a960b4c468c3c34469ddab55b622c99cb0fd8669b864f94eb3277
|
data/.rspec
ADDED
data/.rubocop.yml
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
AllCops:
|
|
2
|
+
TargetRubyVersion: 2.7
|
|
3
|
+
NewCops: enable
|
|
4
|
+
Exclude:
|
|
5
|
+
- 'vendor/**/*'
|
|
6
|
+
- 'node_modules/**/*'
|
|
7
|
+
|
|
8
|
+
Style/StringLiterals:
|
|
9
|
+
Enabled: true
|
|
10
|
+
EnforcedStyle: double_quotes
|
|
11
|
+
|
|
12
|
+
Style/StringLiteralsInInterpolation:
|
|
13
|
+
Enabled: true
|
|
14
|
+
EnforcedStyle: double_quotes
|
|
15
|
+
|
|
16
|
+
Layout/LineLength:
|
|
17
|
+
Max: 120
|
|
18
|
+
|
|
19
|
+
Metrics/MethodLength:
|
|
20
|
+
Max: 20
|
|
21
|
+
|
|
22
|
+
Metrics/AbcSize:
|
|
23
|
+
Max: 20
|
|
24
|
+
|
|
25
|
+
Metrics/BlockLength:
|
|
26
|
+
Exclude:
|
|
27
|
+
- 'spec/**/*'
|
|
28
|
+
- '*.gemspec'
|
|
29
|
+
|
|
30
|
+
Style/Documentation:
|
|
31
|
+
Enabled: false
|
|
32
|
+
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [0.1.0] - 2025-10-04
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Initial release of Tavus Ruby client
|
|
13
|
+
- Support for Conversations API endpoints:
|
|
14
|
+
- Create conversation
|
|
15
|
+
- Get conversation
|
|
16
|
+
- List conversations
|
|
17
|
+
- End conversation
|
|
18
|
+
- Delete conversation
|
|
19
|
+
- Support for Personas API endpoints:
|
|
20
|
+
- Create persona
|
|
21
|
+
- Get persona
|
|
22
|
+
- List personas
|
|
23
|
+
- Patch persona (JSON Patch operations)
|
|
24
|
+
- Delete persona
|
|
25
|
+
- Support for Replicas API endpoints:
|
|
26
|
+
- Create replica
|
|
27
|
+
- Get replica
|
|
28
|
+
- List replicas
|
|
29
|
+
- Rename replica
|
|
30
|
+
- Delete replica
|
|
31
|
+
- Support for Objectives API endpoints:
|
|
32
|
+
- Create objectives
|
|
33
|
+
- Get objective
|
|
34
|
+
- List objectives
|
|
35
|
+
- Patch objective (JSON Patch operations)
|
|
36
|
+
- Delete objective
|
|
37
|
+
- Support for Guardrails API endpoints:
|
|
38
|
+
- Create guardrails
|
|
39
|
+
- Get guardrails
|
|
40
|
+
- List guardrails
|
|
41
|
+
- Patch guardrails (JSON Patch operations)
|
|
42
|
+
- Delete guardrails
|
|
43
|
+
- Support for Documents (Knowledge Base) API endpoints:
|
|
44
|
+
- Create document
|
|
45
|
+
- Get document
|
|
46
|
+
- List documents
|
|
47
|
+
- Update document
|
|
48
|
+
- Delete document
|
|
49
|
+
- Support for Video Generation API endpoints:
|
|
50
|
+
- Generate video from text
|
|
51
|
+
- Generate video from audio
|
|
52
|
+
- Get video
|
|
53
|
+
- List videos
|
|
54
|
+
- Rename video
|
|
55
|
+
- Delete video
|
|
56
|
+
- Configuration management for API key and base URL
|
|
57
|
+
- Comprehensive error handling
|
|
58
|
+
- Full API documentation in README
|
data/Gemfile
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
source "https://rubygems.org"
|
|
4
|
+
|
|
5
|
+
# Specify your gem's dependencies in tavus.gemspec
|
|
6
|
+
gemspec
|
|
7
|
+
|
|
8
|
+
gem "rake", "~> 13.0"
|
|
9
|
+
gem "rspec", "~> 3.0"
|
|
10
|
+
gem "webmock", "~> 3.18"
|
|
11
|
+
gem "vcr", "~> 6.1"
|
|
12
|
+
gem "rubocop", "~> 1.21"
|
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
tavus (0.1.0)
|
|
5
|
+
json (~> 2.0)
|
|
6
|
+
|
|
7
|
+
GEM
|
|
8
|
+
remote: https://rubygems.org/
|
|
9
|
+
specs:
|
|
10
|
+
addressable (2.8.7)
|
|
11
|
+
public_suffix (>= 2.0.2, < 7.0)
|
|
12
|
+
ast (2.4.3)
|
|
13
|
+
base64 (0.3.0)
|
|
14
|
+
bigdecimal (3.2.3)
|
|
15
|
+
bundler-audit (0.9.2)
|
|
16
|
+
bundler (>= 1.2.0, < 3)
|
|
17
|
+
thor (~> 1.0)
|
|
18
|
+
crack (1.0.0)
|
|
19
|
+
bigdecimal
|
|
20
|
+
rexml
|
|
21
|
+
diff-lcs (1.6.2)
|
|
22
|
+
hashdiff (1.2.1)
|
|
23
|
+
json (2.15.0)
|
|
24
|
+
language_server-protocol (3.17.0.5)
|
|
25
|
+
lint_roller (1.1.0)
|
|
26
|
+
parallel (1.27.0)
|
|
27
|
+
parser (3.3.9.0)
|
|
28
|
+
ast (~> 2.4.1)
|
|
29
|
+
racc
|
|
30
|
+
prism (1.5.1)
|
|
31
|
+
public_suffix (6.0.2)
|
|
32
|
+
racc (1.8.1)
|
|
33
|
+
rainbow (3.1.1)
|
|
34
|
+
rake (13.3.0)
|
|
35
|
+
regexp_parser (2.11.3)
|
|
36
|
+
rexml (3.4.4)
|
|
37
|
+
rspec (3.13.1)
|
|
38
|
+
rspec-core (~> 3.13.0)
|
|
39
|
+
rspec-expectations (~> 3.13.0)
|
|
40
|
+
rspec-mocks (~> 3.13.0)
|
|
41
|
+
rspec-core (3.13.5)
|
|
42
|
+
rspec-support (~> 3.13.0)
|
|
43
|
+
rspec-expectations (3.13.5)
|
|
44
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
45
|
+
rspec-support (~> 3.13.0)
|
|
46
|
+
rspec-mocks (3.13.5)
|
|
47
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
48
|
+
rspec-support (~> 3.13.0)
|
|
49
|
+
rspec-support (3.13.6)
|
|
50
|
+
rubocop (1.81.1)
|
|
51
|
+
json (~> 2.3)
|
|
52
|
+
language_server-protocol (~> 3.17.0.2)
|
|
53
|
+
lint_roller (~> 1.1.0)
|
|
54
|
+
parallel (~> 1.10)
|
|
55
|
+
parser (>= 3.3.0.2)
|
|
56
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
57
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
|
58
|
+
rubocop-ast (>= 1.47.1, < 2.0)
|
|
59
|
+
ruby-progressbar (~> 1.7)
|
|
60
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
61
|
+
rubocop-ast (1.47.1)
|
|
62
|
+
parser (>= 3.3.7.2)
|
|
63
|
+
prism (~> 1.4)
|
|
64
|
+
ruby-progressbar (1.13.0)
|
|
65
|
+
thor (1.4.0)
|
|
66
|
+
unicode-display_width (3.2.0)
|
|
67
|
+
unicode-emoji (~> 4.1)
|
|
68
|
+
unicode-emoji (4.1.0)
|
|
69
|
+
vcr (6.3.1)
|
|
70
|
+
base64
|
|
71
|
+
webmock (3.25.1)
|
|
72
|
+
addressable (>= 2.8.0)
|
|
73
|
+
crack (>= 0.3.2)
|
|
74
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
|
75
|
+
|
|
76
|
+
PLATFORMS
|
|
77
|
+
arm64-darwin-24
|
|
78
|
+
ruby
|
|
79
|
+
|
|
80
|
+
DEPENDENCIES
|
|
81
|
+
bundler-audit (~> 0.9)
|
|
82
|
+
rake (~> 13.0)
|
|
83
|
+
rspec (~> 3.0)
|
|
84
|
+
rubocop (~> 1.21)
|
|
85
|
+
tavus!
|
|
86
|
+
vcr (~> 6.1)
|
|
87
|
+
webmock (~> 3.18)
|
|
88
|
+
|
|
89
|
+
BUNDLED WITH
|
|
90
|
+
2.6.9
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Vitor Oliveira
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|