elevenlabs_client 0.8.0 → 0.8.2
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c8db5d7267ffc3c94e8703fb9ffc04e2c6a29e4abc2943d455fb8c5a8f50ab93
|
|
4
|
+
data.tar.gz: 2cf38e4c70f9b9d42ec46d9b27db98379d20ab11404a6f5db013aeaea0c2397f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2d2c206b5dce27f6d56f09db90e507c7ec51ac3e18ad55cb5acbf66dddb6183b48d95c9cd81505a9d1bbeb82bbf81aee3ef1e07e832bb68c0e4ac07978422df4
|
|
7
|
+
data.tar.gz: e367487c2730bfe2de318e0f1ed7590d8facda4a886bf697d9b5f8ef1edf709c27e9daa63ec8d09af9318e92752661a61a41568e2909d0fadb70363766d537ae
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.8.2] - 2024-12-23
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- **🤖 Agents Platform: MCP Servers** - Tool configuration overrides
|
|
14
|
+
- **MCP Server Tool Configs** (`client.mcp_servers.*`)
|
|
15
|
+
- Create tool config override: `client.mcp_servers.create_tool_config(mcp_server_id, tool_name:, **options)`
|
|
16
|
+
- Supports optional parameters: `force_pre_tool_speech`, `disable_interruptions`, `tool_call_sound`, `tool_call_sound_behavior`, `execution_mode`, `assignments`
|
|
17
|
+
|
|
18
|
+
## [0.8.1] - 2025-12-03
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
- **🔧 Document Upload MIME Types** - Fixed `invalid_file_type` errors when uploading documents to knowledge base
|
|
22
|
+
- Added support for document MIME types in `HttpClient#mime_for` method:
|
|
23
|
+
- PDF: `application/pdf`
|
|
24
|
+
- EPUB: `application/epub+zip`
|
|
25
|
+
- DOCX: `application/vnd.openxmlformats-officedocument.wordprocessingml.document`
|
|
26
|
+
- DOC: `application/msword`
|
|
27
|
+
- TXT: `text/plain`
|
|
28
|
+
- HTML/HTM: `text/html`
|
|
29
|
+
- Markdown: `text/markdown`
|
|
30
|
+
- Previously, all document types defaulted to `application/octet-stream`, causing ElevenLabs API to reject valid files
|
|
31
|
+
- Added comprehensive test coverage for MIME type detection
|
|
32
|
+
|
|
10
33
|
## [0.8.0] - 2024-09-17
|
|
11
34
|
|
|
12
35
|
### Added
|
|
@@ -115,6 +115,31 @@ module ElevenlabsClient
|
|
|
115
115
|
@client.delete("/v1/convai/mcp-servers/#{mcp_server_id}/tool-approvals/#{tool_name}")
|
|
116
116
|
end
|
|
117
117
|
|
|
118
|
+
# POST /v1/convai/mcp-servers/:mcp_server_id/tool-configs
|
|
119
|
+
# Create configuration overrides for a specific MCP tool
|
|
120
|
+
# Documentation: https://elevenlabs.io/docs/api-reference/convai/mcp-servers/tool-configuration/create
|
|
121
|
+
#
|
|
122
|
+
# @param mcp_server_id [String] ID of the MCP Server (required)
|
|
123
|
+
# @param tool_name [String] The name of the MCP tool (required)
|
|
124
|
+
# @param options [Hash] Optional configuration overrides
|
|
125
|
+
# @option options [Boolean] :force_pre_tool_speech Override force_pre_tool_speech setting
|
|
126
|
+
# @option options [Boolean] :disable_interruptions Override disable_interruptions setting
|
|
127
|
+
# @option options [String] :tool_call_sound Override tool_call_sound setting
|
|
128
|
+
# @option options [String] :tool_call_sound_behavior Override tool_call_sound_behavior setting
|
|
129
|
+
# @option options [String] :execution_mode Override execution_mode setting
|
|
130
|
+
# @option options [Array] :assignments Dynamic variable assignments
|
|
131
|
+
# @return [Hash] JSON response containing updated MCP server details
|
|
132
|
+
def create_tool_config(mcp_server_id, tool_name:, **options)
|
|
133
|
+
validate_required!(:mcp_server_id, mcp_server_id)
|
|
134
|
+
validate_required!(:tool_name, tool_name)
|
|
135
|
+
|
|
136
|
+
body = {
|
|
137
|
+
tool_name: tool_name
|
|
138
|
+
}.merge(options.compact)
|
|
139
|
+
|
|
140
|
+
@client.post("/v1/convai/mcp-servers/#{mcp_server_id}/tool-configs", body)
|
|
141
|
+
end
|
|
142
|
+
|
|
118
143
|
# Convenience method aliases
|
|
119
144
|
alias_method :servers, :list
|
|
120
145
|
alias_method :get_server, :get
|
|
@@ -318,6 +318,13 @@ module ElevenlabsClient
|
|
|
318
318
|
when ".wav" then "audio/wav"
|
|
319
319
|
when ".flac" then "audio/flac"
|
|
320
320
|
when ".m4a" then "audio/mp4"
|
|
321
|
+
when ".pdf" then "application/pdf"
|
|
322
|
+
when ".epub" then "application/epub+zip"
|
|
323
|
+
when ".docx" then "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
|
|
324
|
+
when ".doc" then "application/msword"
|
|
325
|
+
when ".txt" then "text/plain"
|
|
326
|
+
when ".html", ".htm" then "text/html"
|
|
327
|
+
when ".md" then "text/markdown"
|
|
321
328
|
else "application/octet-stream"
|
|
322
329
|
end
|
|
323
330
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: elevenlabs_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vitor Oliveira
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-12-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -210,7 +210,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
210
210
|
requirements:
|
|
211
211
|
- - ">="
|
|
212
212
|
- !ruby/object:Gem::Version
|
|
213
|
-
version: 3.
|
|
213
|
+
version: 3.2.0
|
|
214
214
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
215
215
|
requirements:
|
|
216
216
|
- - ">="
|