vellum_ai 1.12.0 → 1.12.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: '025449af032943d55350172dd40b19468e024144bd0bb32397b776b8c329ea18'
4
- data.tar.gz: faaea744fd497604aa4e952bf22b1429031024a83a924a010f858cc92e25bb02
3
+ metadata.gz: 59fb5cf45ad7757dbf20e3f4338b80bbcb13fc4b6721bddb792b8478bdc17aa3
4
+ data.tar.gz: 73affde7dfc3952a2cb7acb63540ce8d0e619a338383a8513d8f9503e450cc34
5
5
  SHA512:
6
- metadata.gz: d19f8ecdb7c59cfe6e1937bac9a7bfdcd460e53dc793095c1bae82116e5210884a99305355c4e6e21f2b669ec8e71516af5a3dbf4f810a211a259e8d4ffc4ee8
7
- data.tar.gz: 1799ef5280520ff032893aeb5181853d10733e51ac43eaef3dd17b60d2fe42e81976109422d3b5f6a0cf51e24e7a6fbe5542f3e0c83e7e51fad8c2c7b2041fa0
6
+ metadata.gz: 52efea2ecb59e0e853fc42cafd95b110ab21bf6745b67e99a7e4fc547107887b2c612d55a9490e52c6b74cee84f929c9fe794893e32e61570abdd591b48bd0b2
7
+ data.tar.gz: f7bf8d85584ff6aa3a776fa1fcbaa77fec771ea3ee18fee41f2f8670edd0137a7cf997c6edd349dca34ff883f8c98a2371cc2d489feca5e626d7e44cb6e82462
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.12.0' }
59
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.12.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.12.0' }
110
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.12.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
data/lib/types_export.rb CHANGED
@@ -114,6 +114,7 @@ require_relative "vellum_ai/types/node_execution_fulfilled_event"
114
114
  require_relative "vellum_ai/types/node_execution_rejected_event"
115
115
  require_relative "vellum_ai/types/node_execution_paused_event"
116
116
  require_relative "vellum_ai/types/node_execution_resumed_event"
117
+ require_relative "vellum_ai/types/node_execution_log_event"
117
118
  require_relative "vellum_ai/types/workflow_execution_initiated_event"
118
119
  require_relative "vellum_ai/types/workflow_execution_streaming_event"
119
120
  require_relative "vellum_ai/types/workflow_execution_rejected_event"
@@ -348,6 +349,7 @@ require_relative "vellum_ai/types/named_test_case_variable_value_request"
348
349
  require_relative "vellum_ai/types/new_member_join_behavior_enum"
349
350
  require_relative "vellum_ai/types/node_execution_fulfilled_body"
350
351
  require_relative "vellum_ai/types/node_execution_initiated_body"
352
+ require_relative "vellum_ai/types/node_execution_log_body"
351
353
  require_relative "vellum_ai/types/node_execution_paused_body"
352
354
  require_relative "vellum_ai/types/node_execution_rejected_body"
353
355
  require_relative "vellum_ai/types/node_execution_resumed_body"
@@ -481,6 +483,7 @@ require_relative "vellum_ai/types/search_weights_request"
481
483
  require_relative "vellum_ai/types/secret_type_enum"
482
484
  require_relative "vellum_ai/types/sentence_chunker_config"
483
485
  require_relative "vellum_ai/types/sentence_chunker_config_request"
486
+ require_relative "vellum_ai/types/severity_enum"
484
487
  require_relative "vellum_ai/types/slim_composio_tool_definition"
485
488
  require_relative "vellum_ai/types/slim_deployment_read"
486
489
  require_relative "vellum_ai/types/slim_document"
@@ -68,6 +68,7 @@ module Vellum
68
68
  # * `POSTHOG` - PostHog
69
69
  # * `PRODUCTBOARD` - Productboard
70
70
  # * `REDDIT` - Reddit
71
+ # * `SALESFORCE` - Salesforce
71
72
  # * `SEMRUSH` - Semrush
72
73
  # * `SEMANTICSCHOLAR` - Semantic Scholar
73
74
  # * `SENDGRID` - SendGrid
@@ -165,6 +166,7 @@ module Vellum
165
166
  POSTHOG = "POSTHOG"
166
167
  PRODUCTBOARD = "PRODUCTBOARD"
167
168
  REDDIT = "REDDIT"
169
+ SALESFORCE = "SALESFORCE"
168
170
  SEMRUSH = "SEMRUSH"
169
171
  SEMANTICSCHOLAR = "SEMANTICSCHOLAR"
170
172
  SENDGRID = "SENDGRID"
@@ -0,0 +1,84 @@
1
+ # frozen_string_literal: true
2
+ require_relative "vellum_code_resource_definition"
3
+ require_relative "severity_enum"
4
+ require "ostruct"
5
+ require "json"
6
+
7
+ module Vellum
8
+ class NodeExecutionLogBody
9
+ # @return [Vellum::VellumCodeResourceDefinition]
10
+ attr_reader :node_definition
11
+ # @return [Hash{String => Object}]
12
+ attr_reader :attributes
13
+ # @return [Vellum::SeverityEnum]
14
+ attr_reader :severity
15
+ # @return [String]
16
+ attr_reader :message
17
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
18
+ attr_reader :additional_properties
19
+ # @return [Object]
20
+ attr_reader :_field_set
21
+ protected :_field_set
22
+
23
+ OMIT = Object.new
24
+
25
+ # @param node_definition [Vellum::VellumCodeResourceDefinition]
26
+ # @param attributes [Hash{String => Object}]
27
+ # @param severity [Vellum::SeverityEnum]
28
+ # @param message [String]
29
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
30
+ # @return [Vellum::NodeExecutionLogBody]
31
+ def initialize(node_definition:, attributes: OMIT, severity:, message:, additional_properties: nil)
32
+ @node_definition = node_definition
33
+ @attributes = attributes if attributes != OMIT
34
+ @severity = severity
35
+ @message = message
36
+ @additional_properties = additional_properties
37
+ @_field_set = { "node_definition": node_definition, "attributes": attributes, "severity": severity, "message": message }.reject do | _k, v |
38
+ v == OMIT
39
+ end
40
+ end
41
+ # Deserialize a JSON object to an instance of NodeExecutionLogBody
42
+ #
43
+ # @param json_object [String]
44
+ # @return [Vellum::NodeExecutionLogBody]
45
+ def self.from_json(json_object:)
46
+ struct = JSON.parse(json_object, object_class: OpenStruct)
47
+ parsed_json = JSON.parse(json_object)
48
+ unless parsed_json["node_definition"].nil?
49
+ node_definition = parsed_json["node_definition"].to_json
50
+ node_definition = Vellum::VellumCodeResourceDefinition.from_json(json_object: node_definition)
51
+ else
52
+ node_definition = nil
53
+ end
54
+ attributes = parsed_json["attributes"]
55
+ severity = parsed_json["severity"]
56
+ message = parsed_json["message"]
57
+ new(
58
+ node_definition: node_definition,
59
+ attributes: attributes,
60
+ severity: severity,
61
+ message: message,
62
+ additional_properties: struct
63
+ )
64
+ end
65
+ # Serialize an instance of NodeExecutionLogBody to a JSON object
66
+ #
67
+ # @return [String]
68
+ def to_json
69
+ @_field_set&.to_json
70
+ end
71
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
72
+ # hash and check each fields type against the current object's property
73
+ # definitions.
74
+ #
75
+ # @param obj [Object]
76
+ # @return [Void]
77
+ def self.validate_raw(obj:)
78
+ Vellum::VellumCodeResourceDefinition.validate_raw(obj: obj.node_definition)
79
+ obj.attributes&.is_a?(Hash) != false || raise("Passed value for field obj.attributes is not the expected type, validation failed.")
80
+ obj.severity.is_a?(Vellum::SeverityEnum) != false || raise("Passed value for field obj.severity is not the expected type, validation failed.")
81
+ obj.message.is_a?(String) != false || raise("Passed value for field obj.message is not the expected type, validation failed.")
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,134 @@
1
+ # frozen_string_literal: true
2
+ require_relative "parent_context"
3
+ require_relative "span_link"
4
+ require_relative "node_execution_log_body"
5
+ require "date"
6
+ require_relative "api_version_enum"
7
+ require "ostruct"
8
+ require "json"
9
+
10
+ module Vellum
11
+ class NodeExecutionLogEvent
12
+ # @return [Vellum::ParentContext]
13
+ attr_reader :parent
14
+ # @return [Array<Vellum::SpanLink>]
15
+ attr_reader :links
16
+ # @return [String]
17
+ attr_reader :name
18
+ # @return [Vellum::NodeExecutionLogBody]
19
+ attr_reader :body
20
+ # @return [String]
21
+ attr_reader :id
22
+ # @return [DateTime]
23
+ attr_reader :timestamp
24
+ # @return [Vellum::ApiVersionEnum]
25
+ attr_reader :api_version
26
+ # @return [String]
27
+ attr_reader :trace_id
28
+ # @return [String]
29
+ attr_reader :span_id
30
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
31
+ attr_reader :additional_properties
32
+ # @return [Object]
33
+ attr_reader :_field_set
34
+ protected :_field_set
35
+
36
+ OMIT = Object.new
37
+
38
+ # @param parent [Vellum::ParentContext]
39
+ # @param links [Array<Vellum::SpanLink>]
40
+ # @param name [String]
41
+ # @param body [Vellum::NodeExecutionLogBody]
42
+ # @param id [String]
43
+ # @param timestamp [DateTime]
44
+ # @param api_version [Vellum::ApiVersionEnum]
45
+ # @param trace_id [String]
46
+ # @param span_id [String]
47
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
48
+ # @return [Vellum::NodeExecutionLogEvent]
49
+ def initialize(parent: OMIT, links: OMIT, name:, body:, id:, timestamp:, api_version: OMIT, trace_id:, span_id:, additional_properties: nil)
50
+ @parent = parent if parent != OMIT
51
+ @links = links if links != OMIT
52
+ @name = name
53
+ @body = body
54
+ @id = id
55
+ @timestamp = timestamp
56
+ @api_version = api_version if api_version != OMIT
57
+ @trace_id = trace_id
58
+ @span_id = span_id
59
+ @additional_properties = additional_properties
60
+ @_field_set = { "parent": parent, "links": links, "name": name, "body": body, "id": id, "timestamp": timestamp, "api_version": api_version, "trace_id": trace_id, "span_id": span_id }.reject do | _k, v |
61
+ v == OMIT
62
+ end
63
+ end
64
+ # Deserialize a JSON object to an instance of NodeExecutionLogEvent
65
+ #
66
+ # @param json_object [String]
67
+ # @return [Vellum::NodeExecutionLogEvent]
68
+ def self.from_json(json_object:)
69
+ struct = JSON.parse(json_object, object_class: OpenStruct)
70
+ parsed_json = JSON.parse(json_object)
71
+ unless parsed_json["parent"].nil?
72
+ parent = parsed_json["parent"].to_json
73
+ parent = Vellum::ParentContext.from_json(json_object: parent)
74
+ else
75
+ parent = nil
76
+ end
77
+ links = parsed_json["links"]&.map do | item |
78
+ item = item.to_json
79
+ Vellum::SpanLink.from_json(json_object: item)
80
+ end
81
+ name = parsed_json["name"]
82
+ unless parsed_json["body"].nil?
83
+ body = parsed_json["body"].to_json
84
+ body = Vellum::NodeExecutionLogBody.from_json(json_object: body)
85
+ else
86
+ body = nil
87
+ end
88
+ id = parsed_json["id"]
89
+ timestamp = unless parsed_json["timestamp"].nil?
90
+ DateTime.parse(parsed_json["timestamp"])
91
+ else
92
+ nil
93
+ end
94
+ api_version = parsed_json["api_version"]
95
+ trace_id = parsed_json["trace_id"]
96
+ span_id = parsed_json["span_id"]
97
+ new(
98
+ parent: parent,
99
+ links: links,
100
+ name: name,
101
+ body: body,
102
+ id: id,
103
+ timestamp: timestamp,
104
+ api_version: api_version,
105
+ trace_id: trace_id,
106
+ span_id: span_id,
107
+ additional_properties: struct
108
+ )
109
+ end
110
+ # Serialize an instance of NodeExecutionLogEvent to a JSON object
111
+ #
112
+ # @return [String]
113
+ def to_json
114
+ @_field_set&.to_json
115
+ end
116
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
117
+ # hash and check each fields type against the current object's property
118
+ # definitions.
119
+ #
120
+ # @param obj [Object]
121
+ # @return [Void]
122
+ def self.validate_raw(obj:)
123
+ obj.parent.nil? || Vellum::ParentContext.validate_raw(obj: obj.parent)
124
+ obj.links&.is_a?(Array) != false || raise("Passed value for field obj.links is not the expected type, validation failed.")
125
+ obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
126
+ Vellum::NodeExecutionLogBody.validate_raw(obj: obj.body)
127
+ obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
128
+ obj.timestamp.is_a?(DateTime) != false || raise("Passed value for field obj.timestamp is not the expected type, validation failed.")
129
+ obj.api_version&.is_a?(Vellum::ApiVersionEnum) != false || raise("Passed value for field obj.api_version is not the expected type, validation failed.")
130
+ obj.trace_id.is_a?(String) != false || raise("Passed value for field obj.trace_id is not the expected type, validation failed.")
131
+ obj.span_id.is_a?(String) != false || raise("Passed value for field obj.span_id is not the expected type, validation failed.")
132
+ end
133
+ end
134
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Vellum
4
+ # * `DEBUG` - DEBUG
5
+ # * `INFO` - INFO
6
+ # * `WARNING` - WARNING
7
+ # * `ERROR` - ERROR
8
+ class SeverityEnum
9
+
10
+ DEBUG = "DEBUG"
11
+ INFO = "INFO"
12
+ WARNING = "WARNING"
13
+ ERROR = "ERROR"
14
+
15
+ end
16
+ end
@@ -6,6 +6,7 @@ require_relative "node_execution_fulfilled_event"
6
6
  require_relative "node_execution_rejected_event"
7
7
  require_relative "node_execution_paused_event"
8
8
  require_relative "node_execution_resumed_event"
9
+ require_relative "node_execution_log_event"
9
10
 
10
11
  module Vellum
11
12
  class VellumNodeExecutionEvent
@@ -73,6 +74,16 @@ end
73
74
  return Vellum::NodeExecutionResumedEvent.from_json(json_object: struct)
74
75
  else
75
76
  return nil
77
+ end
78
+ rescue StandardError
79
+ # noop
80
+ end
81
+ begin
82
+ Vellum::NodeExecutionLogEvent.validate_raw(obj: struct)
83
+ unless struct.nil?
84
+ return Vellum::NodeExecutionLogEvent.from_json(json_object: struct)
85
+ else
86
+ return nil
76
87
  end
77
88
  rescue StandardError
78
89
  # noop
@@ -116,6 +127,11 @@ end
116
127
  rescue StandardError
117
128
  # noop
118
129
  end
130
+ begin
131
+ return Vellum::NodeExecutionLogEvent.validate_raw(obj: obj)
132
+ rescue StandardError
133
+ # noop
134
+ end
119
135
  raise("Passed value matched no type within the union, validation failed.")
120
136
  end
121
137
  end
@@ -6,6 +6,7 @@ require_relative "node_execution_fulfilled_event"
6
6
  require_relative "node_execution_rejected_event"
7
7
  require_relative "node_execution_paused_event"
8
8
  require_relative "node_execution_resumed_event"
9
+ require_relative "node_execution_log_event"
9
10
  require_relative "workflow_execution_initiated_event"
10
11
  require_relative "workflow_execution_streaming_event"
11
12
  require_relative "workflow_execution_rejected_event"
@@ -80,6 +81,16 @@ end
80
81
  return Vellum::NodeExecutionResumedEvent.from_json(json_object: struct)
81
82
  else
82
83
  return nil
84
+ end
85
+ rescue StandardError
86
+ # noop
87
+ end
88
+ begin
89
+ Vellum::NodeExecutionLogEvent.validate_raw(obj: struct)
90
+ unless struct.nil?
91
+ return Vellum::NodeExecutionLogEvent.from_json(json_object: struct)
92
+ else
93
+ return nil
83
94
  end
84
95
  rescue StandardError
85
96
  # noop
@@ -193,6 +204,11 @@ end
193
204
  rescue StandardError
194
205
  # noop
195
206
  end
207
+ begin
208
+ return Vellum::NodeExecutionLogEvent.validate_raw(obj: obj)
209
+ rescue StandardError
210
+ # noop
211
+ end
196
212
  begin
197
213
  return Vellum::WorkflowExecutionInitiatedEvent.validate_raw(obj: obj)
198
214
  rescue StandardError
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.12.0
4
+ version: 1.12.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-12-19 00:00:00.000000000 Z
11
+ date: 2025-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -453,6 +453,8 @@ files:
453
453
  - lib/vellum_ai/types/node_execution_fulfilled_event.rb
454
454
  - lib/vellum_ai/types/node_execution_initiated_body.rb
455
455
  - lib/vellum_ai/types/node_execution_initiated_event.rb
456
+ - lib/vellum_ai/types/node_execution_log_body.rb
457
+ - lib/vellum_ai/types/node_execution_log_event.rb
456
458
  - lib/vellum_ai/types/node_execution_paused_body.rb
457
459
  - lib/vellum_ai/types/node_execution_paused_event.rb
458
460
  - lib/vellum_ai/types/node_execution_rejected_body.rb
@@ -604,6 +606,7 @@ files:
604
606
  - lib/vellum_ai/types/sentence_chunker_config_request.rb
605
607
  - lib/vellum_ai/types/sentence_chunking.rb
606
608
  - lib/vellum_ai/types/sentence_chunking_request.rb
609
+ - lib/vellum_ai/types/severity_enum.rb
607
610
  - lib/vellum_ai/types/slim_composio_tool_definition.rb
608
611
  - lib/vellum_ai/types/slim_deployment_read.rb
609
612
  - lib/vellum_ai/types/slim_document.rb