vellum_ai 1.10.0 → 1.10.1
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: 057ba74c23155e4b27b6a35b1237a0926891d3c8e4479cf6f5150cc1db7c1084
|
|
4
|
+
data.tar.gz: 7414cda52e90d72746d368628c782affd5e482c22e48bfc85d092a6827af32fe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dc492e6cd0995ea71fdc4d6175603f7fa1e4eda1e4a0b5ac1bc0534e006becb5e74ab9031606f0ebb1ea421509e4bdf810da43b0d90a6b58633f997b8e82003c
|
|
7
|
+
data.tar.gz: 88b6cb6cb965ffd3068c34a7c31fe0d4dbe827936df7a1389e88f4db7f46ae9af4d6b848d18febc6aa1bbee30d30dcbfdee8802397fbc90a80f5fd503d761148
|
data/lib/requests.rb
CHANGED
|
@@ -56,7 +56,7 @@ end
|
|
|
56
56
|
end
|
|
57
57
|
# @return [Hash{String => String}]
|
|
58
58
|
def get_headers
|
|
59
|
-
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.10.
|
|
59
|
+
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.10.1' }
|
|
60
60
|
headers["X-API-KEY"] = ((@api_key.is_a? Method) ? @api_key.call : @api_key) unless @api_key.nil?
|
|
61
61
|
headers
|
|
62
62
|
end
|
|
@@ -107,7 +107,7 @@ end
|
|
|
107
107
|
end
|
|
108
108
|
# @return [Hash{String => String}]
|
|
109
109
|
def get_headers
|
|
110
|
-
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.10.
|
|
110
|
+
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.10.1' }
|
|
111
111
|
headers["X-API-KEY"] = ((@api_key.is_a? Method) ? @api_key.call : @api_key) unless @api_key.nil?
|
|
112
112
|
headers
|
|
113
113
|
end
|
|
@@ -32,6 +32,7 @@ module Vellum
|
|
|
32
32
|
# * :default (Hash)
|
|
33
33
|
# * :extensions (Hash)
|
|
34
34
|
# * :color (String)
|
|
35
|
+
# * :description (String)
|
|
35
36
|
# @param parameters [Hash] Request of type Vellum::PromptParameters, as a Hash
|
|
36
37
|
# * :stop (Array<String>)
|
|
37
38
|
# * :temperature (Float)
|
|
@@ -119,6 +120,7 @@ end
|
|
|
119
120
|
# * :default (Hash)
|
|
120
121
|
# * :extensions (Hash)
|
|
121
122
|
# * :color (String)
|
|
123
|
+
# * :description (String)
|
|
122
124
|
# @param parameters [Hash] Request of type Vellum::PromptParameters, as a Hash
|
|
123
125
|
# * :stop (Array<String>)
|
|
124
126
|
# * :temperature (Float)
|
|
@@ -75,6 +75,7 @@ module Vellum
|
|
|
75
75
|
# * `COINBASE` - Coinbase
|
|
76
76
|
# * `DISCORD` - Discord
|
|
77
77
|
# * `DOCUSIGN` - DocuSign
|
|
78
|
+
# * `TRELLO` - Trello
|
|
78
79
|
class IntegrationName
|
|
79
80
|
|
|
80
81
|
SLACK = "SLACK"
|
|
@@ -151,6 +152,7 @@ module Vellum
|
|
|
151
152
|
COINBASE = "COINBASE"
|
|
152
153
|
DISCORD = "DISCORD"
|
|
153
154
|
DOCUSIGN = "DOCUSIGN"
|
|
155
|
+
TRELLO = "TRELLO"
|
|
154
156
|
|
|
155
157
|
end
|
|
156
158
|
end
|
|
@@ -7,6 +7,8 @@ module Vellum
|
|
|
7
7
|
class VellumVariableExtensions
|
|
8
8
|
# @return [String]
|
|
9
9
|
attr_reader :color
|
|
10
|
+
# @return [String]
|
|
11
|
+
attr_reader :description
|
|
10
12
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
11
13
|
attr_reader :additional_properties
|
|
12
14
|
# @return [Object]
|
|
@@ -16,12 +18,14 @@ module Vellum
|
|
|
16
18
|
OMIT = Object.new
|
|
17
19
|
|
|
18
20
|
# @param color [String]
|
|
21
|
+
# @param description [String]
|
|
19
22
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
20
23
|
# @return [Vellum::VellumVariableExtensions]
|
|
21
|
-
def initialize(color: OMIT, additional_properties: nil)
|
|
24
|
+
def initialize(color: OMIT, description: OMIT, additional_properties: nil)
|
|
22
25
|
@color = color if color != OMIT
|
|
26
|
+
@description = description if description != OMIT
|
|
23
27
|
@additional_properties = additional_properties
|
|
24
|
-
@_field_set = { "color": color }.reject do | _k, v |
|
|
28
|
+
@_field_set = { "color": color, "description": description }.reject do | _k, v |
|
|
25
29
|
v == OMIT
|
|
26
30
|
end
|
|
27
31
|
end
|
|
@@ -33,7 +37,12 @@ end
|
|
|
33
37
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
34
38
|
parsed_json = JSON.parse(json_object)
|
|
35
39
|
color = parsed_json["color"]
|
|
36
|
-
|
|
40
|
+
description = parsed_json["description"]
|
|
41
|
+
new(
|
|
42
|
+
color: color,
|
|
43
|
+
description: description,
|
|
44
|
+
additional_properties: struct
|
|
45
|
+
)
|
|
37
46
|
end
|
|
38
47
|
# Serialize an instance of VellumVariableExtensions to a JSON object
|
|
39
48
|
#
|
|
@@ -49,6 +58,7 @@ end
|
|
|
49
58
|
# @return [Void]
|
|
50
59
|
def self.validate_raw(obj:)
|
|
51
60
|
obj.color&.is_a?(String) != false || raise("Passed value for field obj.color is not the expected type, validation failed.")
|
|
61
|
+
obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
|
|
52
62
|
end
|
|
53
63
|
end
|
|
54
64
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vellum_ai
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.10.
|
|
4
|
+
version: 1.10.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vellum
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-11-
|
|
11
|
+
date: 2025-11-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|