Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/requests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def get_url(request_options: nil, environment:)
end
# @return [Hash{String => String}]
def get_headers
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.11.10' }
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '0.3.3' }
headers["X-API-KEY"] = ((@api_key.is_a? Method) ? @api_key.call : @api_key) unless @api_key.nil?
headers
end
Expand Down Expand Up @@ -107,7 +107,7 @@ def get_url(request_options: nil, environment:)
end
# @return [Hash{String => String}]
def get_headers
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.11.10' }
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '0.3.3' }
headers["X-API-KEY"] = ((@api_key.is_a? Method) ? @api_key.call : @api_key) unless @api_key.nil?
headers
end
Expand Down
11 changes: 9 additions & 2 deletions lib/vellum_ai/types/container_image_build_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ class ContainerImageBuildConfig
attr_reader :packages
# @return [String]
attr_reader :user_script
# @return [String]
attr_reader :hotswappable_version
# @return [OpenStruct] Additional properties unmapped to the current class definition
attr_reader :additional_properties
# @return [Object]
Expand All @@ -19,13 +21,15 @@ class ContainerImageBuildConfig

# @param packages [Array<Vellum::CodeExecutionPackage>]
# @param user_script [String]
# @param hotswappable_version [String]
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
# @return [Vellum::ContainerImageBuildConfig]
def initialize(packages:, user_script: OMIT, additional_properties: nil)
def initialize(packages:, user_script: OMIT, hotswappable_version: OMIT, additional_properties: nil)
@packages = packages
@user_script = user_script if user_script != OMIT
@hotswappable_version = hotswappable_version if hotswappable_version != OMIT
@additional_properties = additional_properties
@_field_set = { "packages": packages, "user_script": user_script }.reject do | _k, v |
@_field_set = { "packages": packages, "user_script": user_script, "hotswappable_version": hotswappable_version }.reject do | _k, v |
v == OMIT
end
end
Expand All @@ -41,9 +45,11 @@ def self.from_json(json_object:)
Vellum::CodeExecutionPackage.from_json(json_object: item)
end
user_script = parsed_json["user_script"]
hotswappable_version = parsed_json["hotswappable_version"]
new(
packages: packages,
user_script: user_script,
hotswappable_version: hotswappable_version,
additional_properties: struct
)
end
Expand All @@ -62,6 +68,7 @@ def to_json
def self.validate_raw(obj:)
obj.packages.is_a?(Array) != false || raise("Passed value for field obj.packages is not the expected type, validation failed.")
obj.user_script&.is_a?(String) != false || raise("Passed value for field obj.user_script is not the expected type, validation failed.")
obj.hotswappable_version&.is_a?(String) != false || raise("Passed value for field obj.hotswappable_version is not the expected type, validation failed.")
end
end
end
13 changes: 11 additions & 2 deletions lib/vellum_ai/types/dataset_row_push_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ class DatasetRowPushRequest
attr_reader :label
# @return [Hash{String => Object}]
attr_reader :inputs
# @return [String]
attr_reader :workflow_trigger_id
# @return [OpenStruct] Additional properties unmapped to the current class definition
attr_reader :additional_properties
# @return [Object]
Expand All @@ -18,13 +20,17 @@ class DatasetRowPushRequest

# @param label [String]
# @param inputs [Hash{String => Object}]
# @param workflow_trigger_id [String]
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
# @return [Vellum::DatasetRowPushRequest]
def initialize(label:, inputs:, additional_properties: nil)
def initialize(label:, inputs:, workflow_trigger_id: OMIT, additional_properties: nil)
@label = label
@inputs = inputs
@workflow_trigger_id = workflow_trigger_id if workflow_trigger_id != OMIT
@additional_properties = additional_properties
@_field_set = { "label": label, "inputs": inputs }
@_field_set = { "label": label, "inputs": inputs, "workflow_trigger_id": workflow_trigger_id }.reject do | _k, v |
v == OMIT
end
end
# Deserialize a JSON object to an instance of DatasetRowPushRequest
#
Expand All @@ -35,9 +41,11 @@ def self.from_json(json_object:)
parsed_json = JSON.parse(json_object)
label = parsed_json["label"]
inputs = parsed_json["inputs"]
workflow_trigger_id = parsed_json["workflow_trigger_id"]
new(
label: label,
inputs: inputs,
workflow_trigger_id: workflow_trigger_id,
additional_properties: struct
)
end
Expand All @@ -56,6 +64,7 @@ def to_json
def self.validate_raw(obj:)
obj.label.is_a?(String) != false || raise("Passed value for field obj.label is not the expected type, validation failed.")
obj.inputs.is_a?(Hash) != false || raise("Passed value for field obj.inputs is not the expected type, validation failed.")
obj.workflow_trigger_id&.is_a?(String) != false || raise("Passed value for field obj.workflow_trigger_id is not the expected type, validation failed.")
end
end
end
2 changes: 2 additions & 0 deletions lib/vellum_ai/types/integration_name.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ module Vellum
# * `MEM0` - Mem0
# * `MONDAY` - Monday
# * `NEON` - Neon
# * `OUTLOOK` - Outlook
# * `GITHUB` - Github
# * `GOOGLE_SHEETS` - Google Sheets
# * `GOOGLE_CALENDAR` - Google Calendar
Expand Down Expand Up @@ -112,6 +113,7 @@ class IntegrationName
MEM_0 = "MEM0"
MONDAY = "MONDAY"
NEON = "NEON"
OUTLOOK = "OUTLOOK"
GITHUB = "GITHUB"
GOOGLE_SHEETS = "GOOGLE_SHEETS"
GOOGLE_CALENDAR = "GOOGLE_CALENDAR"
Expand Down
11 changes: 9 additions & 2 deletions lib/vellum_ai/types/runner_config_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class RunnerConfigRequest
attr_reader :sdk_version
# @return [Boolean]
attr_reader :is_deployment_inlining_enabled
# @return [String]
attr_reader :server_version
# @return [OpenStruct] Additional properties unmapped to the current class definition
attr_reader :additional_properties
# @return [Object]
Expand All @@ -27,16 +29,18 @@ class RunnerConfigRequest
# @param codegen_version [String]
# @param sdk_version [String]
# @param is_deployment_inlining_enabled [Boolean]
# @param server_version [String]
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
# @return [Vellum::RunnerConfigRequest]
def initialize(container_image_name: OMIT, container_image_tag: OMIT, codegen_version: OMIT, sdk_version: OMIT, is_deployment_inlining_enabled: OMIT, additional_properties: nil)
def initialize(container_image_name: OMIT, container_image_tag: OMIT, codegen_version: OMIT, sdk_version: OMIT, is_deployment_inlining_enabled: OMIT, server_version: OMIT, additional_properties: nil)
@container_image_name = container_image_name if container_image_name != OMIT
@container_image_tag = container_image_tag if container_image_tag != OMIT
@codegen_version = codegen_version if codegen_version != OMIT
@sdk_version = sdk_version if sdk_version != OMIT
@is_deployment_inlining_enabled = is_deployment_inlining_enabled if is_deployment_inlining_enabled != OMIT
@server_version = server_version if server_version != OMIT
@additional_properties = additional_properties
@_field_set = { "container_image_name": container_image_name, "container_image_tag": container_image_tag, "codegen_version": codegen_version, "sdk_version": sdk_version, "is_deployment_inlining_enabled": is_deployment_inlining_enabled }.reject do | _k, v |
@_field_set = { "container_image_name": container_image_name, "container_image_tag": container_image_tag, "codegen_version": codegen_version, "sdk_version": sdk_version, "is_deployment_inlining_enabled": is_deployment_inlining_enabled, "server_version": server_version }.reject do | _k, v |
v == OMIT
end
end
Expand All @@ -52,12 +56,14 @@ def self.from_json(json_object:)
codegen_version = parsed_json["codegen_version"]
sdk_version = parsed_json["sdk_version"]
is_deployment_inlining_enabled = parsed_json["is_deployment_inlining_enabled"]
server_version = parsed_json["server_version"]
new(
container_image_name: container_image_name,
container_image_tag: container_image_tag,
codegen_version: codegen_version,
sdk_version: sdk_version,
is_deployment_inlining_enabled: is_deployment_inlining_enabled,
server_version: server_version,
additional_properties: struct
)
end
Expand All @@ -79,6 +85,7 @@ def self.validate_raw(obj:)
obj.codegen_version&.is_a?(String) != false || raise("Passed value for field obj.codegen_version is not the expected type, validation failed.")
obj.sdk_version&.is_a?(String) != false || raise("Passed value for field obj.sdk_version is not the expected type, validation failed.")
obj.is_deployment_inlining_enabled&.is_a?(Boolean) != false || raise("Passed value for field obj.is_deployment_inlining_enabled is not the expected type, validation failed.")
obj.server_version&.is_a?(String) != false || raise("Passed value for field obj.server_version is not the expected type, validation failed.")
end
end
end
4 changes: 4 additions & 0 deletions lib/vellum_ai/workflows/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def retrieve_state(span_id:, request_options: nil)
# @param dataset [Array<Hash>] List of dataset rows with inputs for scenarios.Request of type Array<Vellum::DatasetRowPushRequest>, as a Hash
# * :label (String)
# * :inputs (Hash{String => Object})
# * :workflow_trigger_id (String)
# @param dry_run [Boolean]
# @param strict [Boolean]
# @param request_options [Vellum::RequestOptions]
Expand Down Expand Up @@ -148,6 +149,7 @@ def push(exec_config:, workflow_sandbox_id: nil, deployment_config: nil, artifac
# * :codegen_version (String)
# * :sdk_version (String)
# * :is_deployment_inlining_enabled (Boolean)
# * :server_version (String)
# @param request_options [Vellum::RequestOptions]
# @return [Hash{String => Object}]
# @example
Expand Down Expand Up @@ -281,6 +283,7 @@ def retrieve_state(span_id:, request_options: nil)
# @param dataset [Array<Hash>] List of dataset rows with inputs for scenarios.Request of type Array<Vellum::DatasetRowPushRequest>, as a Hash
# * :label (String)
# * :inputs (Hash{String => Object})
# * :workflow_trigger_id (String)
# @param dry_run [Boolean]
# @param strict [Boolean]
# @param request_options [Vellum::RequestOptions]
Expand Down Expand Up @@ -321,6 +324,7 @@ def push(exec_config:, workflow_sandbox_id: nil, deployment_config: nil, artifac
# * :codegen_version (String)
# * :sdk_version (String)
# * :is_deployment_inlining_enabled (Boolean)
# * :server_version (String)
# @param request_options [Vellum::RequestOptions]
# @return [Hash{String => Object}]
# @example
Expand Down
2 changes: 1 addition & 1 deletion vellum_ai.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require_relative "lib/gemconfig"

Gem::Specification.new do | spec |
spec.name = "vellum_ai"
spec.version = "1.11.10"
spec.version = "0.3.3"
spec.licenses = ["MIT"]
spec.authors = Vellum::Gemconfig::AUTHORS
spec.email = Vellum::Gemconfig::EMAIL
Expand Down