vellum_ai 1.7.10 → 1.7.12
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 +4 -4
 - data/lib/requests.rb +2 -2
 - data/lib/types_export.rb +1 -0
 - data/lib/vellum_ai/types/auth_type_enum.rb +12 -0
 - data/lib/vellum_ai/types/integration_name.rb +8 -0
 - data/lib/vellum_ai/types/slim_integration_auth_config_read.rb +10 -2
 - data/lib/vellum_ai/types/slim_workflow_execution_read.rb +26 -26
 - data/lib/vellum_ai/types/vellum_error_code_enum.rb +2 -0
 - data/lib/vellum_ai/types/vellum_sdk_error_code_enum.rb +2 -0
 - data/lib/vellum_ai/types/workflow_event_execution_read.rb +26 -26
 - data/lib/vellum_ai/types/workflow_execution_event_error_code.rb +2 -0
 - data/lib/vellum_ai/types/workflow_execution_snapshotted_body.rb +16 -2
 - metadata +3 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 625ec4b4626f6c4a510e02f696684c0b7b2a44b66f439d56dbb3b1c9b907b8b4
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: f9dd7c0d44f92d80f10fe7f28ca6570c19a308744fd7156fd3b5d9bf27a9c5c0
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: ad46891ddc5c946840b5115e6e61aac28a6bb8ee8d3904517cb7d8ae21e2953e87216cb88a5ea74ffdb12d8435652daff1b3a623fd96b80c3018288054a84c41
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 9c35b18e29467d781ad6126213a9ea88ddd81884a1132310ecbd1eba53e5e164bb3b3deede66c15526786316c49b1a670e5c01e2a9ea466da7d6b57ed080e88e
         
     | 
    
        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.7. 
     | 
| 
      
 59 
     | 
    
         
            +
                  headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.7.12' }
         
     | 
| 
       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.7. 
     | 
| 
      
 110 
     | 
    
         
            +
                  headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.7.12' }
         
     | 
| 
       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
    
    | 
         @@ -48,6 +48,7 @@ require_relative "vellum_ai/types/audio_input_request" 
     | 
|
| 
       48 
48 
     | 
    
         
             
            require_relative "vellum_ai/types/audio_prompt_block"
         
     | 
| 
       49 
49 
     | 
    
         
             
            require_relative "vellum_ai/types/audio_vellum_value"
         
     | 
| 
       50 
50 
     | 
    
         
             
            require_relative "vellum_ai/types/audio_vellum_value_request"
         
     | 
| 
      
 51 
     | 
    
         
            +
            require_relative "vellum_ai/types/auth_type_enum"
         
     | 
| 
       51 
52 
     | 
    
         
             
            require_relative "vellum_ai/types/base_output"
         
     | 
| 
       52 
53 
     | 
    
         
             
            require_relative "vellum_ai/types/basic_vectorizer_intfloat_multilingual_e_5_large"
         
     | 
| 
       53 
54 
     | 
    
         
             
            require_relative "vellum_ai/types/basic_vectorizer_intfloat_multilingual_e_5_large_request"
         
     | 
| 
         @@ -13,6 +13,10 @@ module Vellum 
     | 
|
| 
       13 
13 
     | 
    
         
             
            #  * `GOOGLE_DRIVE` - Google Drive
         
     | 
| 
       14 
14 
     | 
    
         
             
            #  * `GMAIL` - Gmail
         
     | 
| 
       15 
15 
     | 
    
         
             
            #  * `AIRTABLE` - Airtable
         
     | 
| 
      
 16 
     | 
    
         
            +
            #  * `GAMMA` - Gamma
         
     | 
| 
      
 17 
     | 
    
         
            +
            #  * `FIRECRAWL` - Firecrawl
         
     | 
| 
      
 18 
     | 
    
         
            +
            #  * `PERPLEXITY` - Perplexity
         
     | 
| 
      
 19 
     | 
    
         
            +
            #  * `SERPAPI` - Serp Api
         
     | 
| 
       16 
20 
     | 
    
         
             
              class IntegrationName
         
     | 
| 
       17 
21 
     | 
    
         | 
| 
       18 
22 
     | 
    
         
             
                SLACK = "SLACK"
         
     | 
| 
         @@ -27,6 +31,10 @@ module Vellum 
     | 
|
| 
       27 
31 
     | 
    
         
             
                GOOGLE_DRIVE = "GOOGLE_DRIVE"
         
     | 
| 
       28 
32 
     | 
    
         
             
                GMAIL = "GMAIL"
         
     | 
| 
       29 
33 
     | 
    
         
             
                AIRTABLE = "AIRTABLE"
         
     | 
| 
      
 34 
     | 
    
         
            +
                GAMMA = "GAMMA"
         
     | 
| 
      
 35 
     | 
    
         
            +
                FIRECRAWL = "FIRECRAWL"
         
     | 
| 
      
 36 
     | 
    
         
            +
                PERPLEXITY = "PERPLEXITY"
         
     | 
| 
      
 37 
     | 
    
         
            +
                SERPAPI = "SERPAPI"
         
     | 
| 
       30 
38 
     | 
    
         | 
| 
       31 
39 
     | 
    
         
             
              end
         
     | 
| 
       32 
40 
     | 
    
         
             
            end
         
     | 
| 
         @@ -1,6 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # frozen_string_literal: true
         
     | 
| 
       2 
2 
     | 
    
         
             
            require_relative "integration_auth_config_integration"
         
     | 
| 
       3 
3 
     | 
    
         
             
            require_relative "integration_auth_config_integration_credential"
         
     | 
| 
      
 4 
     | 
    
         
            +
            require_relative "auth_type_enum"
         
     | 
| 
       4 
5 
     | 
    
         
             
            require_relative "integration_credential_access_type"
         
     | 
| 
       5 
6 
     | 
    
         
             
            require "ostruct"
         
     | 
| 
       6 
7 
     | 
    
         
             
            require "json"
         
     | 
| 
         @@ -14,6 +15,8 @@ module Vellum 
     | 
|
| 
       14 
15 
     | 
    
         
             
                attr_reader :integration
         
     | 
| 
       15 
16 
     | 
    
         
             
              # @return [Array<Vellum::IntegrationAuthConfigIntegrationCredential>] 
         
     | 
| 
       16 
17 
     | 
    
         
             
                attr_reader :integration_credentials
         
     | 
| 
      
 18 
     | 
    
         
            +
              # @return [Vellum::AuthTypeEnum] 
         
     | 
| 
      
 19 
     | 
    
         
            +
                attr_reader :auth_type
         
     | 
| 
       17 
20 
     | 
    
         
             
              # @return [Vellum::IntegrationCredentialAccessType] 
         
     | 
| 
       18 
21 
     | 
    
         
             
                attr_reader :default_access_type
         
     | 
| 
       19 
22 
     | 
    
         
             
              # @return [OpenStruct] Additional properties unmapped to the current class definition
         
     | 
| 
         @@ -27,16 +30,18 @@ module Vellum 
     | 
|
| 
       27 
30 
     | 
    
         
             
                # @param id [String] 
         
     | 
| 
       28 
31 
     | 
    
         
             
                # @param integration [Vellum::IntegrationAuthConfigIntegration] 
         
     | 
| 
       29 
32 
     | 
    
         
             
                # @param integration_credentials [Array<Vellum::IntegrationAuthConfigIntegrationCredential>] 
         
     | 
| 
      
 33 
     | 
    
         
            +
                # @param auth_type [Vellum::AuthTypeEnum] 
         
     | 
| 
       30 
34 
     | 
    
         
             
                # @param default_access_type [Vellum::IntegrationCredentialAccessType] 
         
     | 
| 
       31 
35 
     | 
    
         
             
                # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
         
     | 
| 
       32 
36 
     | 
    
         
             
                # @return [Vellum::SlimIntegrationAuthConfigRead]
         
     | 
| 
       33 
     | 
    
         
            -
                def initialize(id:, integration:, integration_credentials: OMIT, default_access_type: OMIT, additional_properties: nil)
         
     | 
| 
      
 37 
     | 
    
         
            +
                def initialize(id:, integration:, integration_credentials: OMIT, auth_type: OMIT, default_access_type: OMIT, additional_properties: nil)
         
     | 
| 
       34 
38 
     | 
    
         
             
                  @id = id
         
     | 
| 
       35 
39 
     | 
    
         
             
                  @integration = integration
         
     | 
| 
       36 
40 
     | 
    
         
             
                  @integration_credentials = integration_credentials if integration_credentials != OMIT
         
     | 
| 
      
 41 
     | 
    
         
            +
                  @auth_type = auth_type if auth_type != OMIT
         
     | 
| 
       37 
42 
     | 
    
         
             
                  @default_access_type = default_access_type if default_access_type != OMIT
         
     | 
| 
       38 
43 
     | 
    
         
             
                  @additional_properties = additional_properties
         
     | 
| 
       39 
     | 
    
         
            -
                  @_field_set = { "id": id, "integration": integration, "integration_credentials": integration_credentials, "default_access_type": default_access_type }.reject do | _k, v |
         
     | 
| 
      
 44 
     | 
    
         
            +
                  @_field_set = { "id": id, "integration": integration, "integration_credentials": integration_credentials, "auth_type": auth_type, "default_access_type": default_access_type }.reject do | _k, v |
         
     | 
| 
       40 
45 
     | 
    
         
             
              v == OMIT
         
     | 
| 
       41 
46 
     | 
    
         
             
            end
         
     | 
| 
       42 
47 
     | 
    
         
             
                end
         
     | 
| 
         @@ -58,11 +63,13 @@ end 
     | 
|
| 
       58 
63 
     | 
    
         
             
              item = item.to_json
         
     | 
| 
       59 
64 
     | 
    
         
             
              Vellum::IntegrationAuthConfigIntegrationCredential.from_json(json_object: item)
         
     | 
| 
       60 
65 
     | 
    
         
             
            end
         
     | 
| 
      
 66 
     | 
    
         
            +
                  auth_type = parsed_json["auth_type"]
         
     | 
| 
       61 
67 
     | 
    
         
             
                  default_access_type = parsed_json["default_access_type"]
         
     | 
| 
       62 
68 
     | 
    
         
             
                  new(
         
     | 
| 
       63 
69 
     | 
    
         
             
                    id: id,
         
     | 
| 
       64 
70 
     | 
    
         
             
                    integration: integration,
         
     | 
| 
       65 
71 
     | 
    
         
             
                    integration_credentials: integration_credentials,
         
     | 
| 
      
 72 
     | 
    
         
            +
                    auth_type: auth_type,
         
     | 
| 
       66 
73 
     | 
    
         
             
                    default_access_type: default_access_type,
         
     | 
| 
       67 
74 
     | 
    
         
             
                    additional_properties: struct
         
     | 
| 
       68 
75 
     | 
    
         
             
                  )
         
     | 
| 
         @@ -83,6 +90,7 @@ end 
     | 
|
| 
       83 
90 
     | 
    
         
             
                  obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
         
     | 
| 
       84 
91 
     | 
    
         
             
                  Vellum::IntegrationAuthConfigIntegration.validate_raw(obj: obj.integration)
         
     | 
| 
       85 
92 
     | 
    
         
             
                  obj.integration_credentials&.is_a?(Array) != false || raise("Passed value for field obj.integration_credentials is not the expected type, validation failed.")
         
     | 
| 
      
 93 
     | 
    
         
            +
                  obj.auth_type&.is_a?(Vellum::AuthTypeEnum) != false || raise("Passed value for field obj.auth_type is not the expected type, validation failed.")
         
     | 
| 
       86 
94 
     | 
    
         
             
                  obj.default_access_type&.is_a?(Vellum::IntegrationCredentialAccessType) != false || raise("Passed value for field obj.default_access_type is not the expected type, validation failed.")
         
     | 
| 
       87 
95 
     | 
    
         
             
                end
         
     | 
| 
       88 
96 
     | 
    
         
             
              end
         
     | 
| 
         @@ -1,12 +1,12 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # frozen_string_literal: true
         
     | 
| 
       2 
     | 
    
         
            -
            require_relative "workflow_deployment_parent_context"
         
     | 
| 
       3 
2 
     | 
    
         
             
            require "date"
         
     | 
| 
       4 
3 
     | 
    
         
             
            require "date"
         
     | 
| 
       5 
4 
     | 
    
         
             
            require_relative "execution_vellum_value"
         
     | 
| 
       6 
5 
     | 
    
         
             
            require_relative "workflow_error"
         
     | 
| 
      
 6 
     | 
    
         
            +
            require_relative "workflow_execution_usage_result"
         
     | 
| 
      
 7 
     | 
    
         
            +
            require_relative "workflow_deployment_parent_context"
         
     | 
| 
       7 
8 
     | 
    
         
             
            require_relative "workflow_execution_actual"
         
     | 
| 
       8 
9 
     | 
    
         
             
            require_relative "workflow_execution_view_online_eval_metric_result"
         
     | 
| 
       9 
     | 
    
         
            -
            require_relative "workflow_execution_usage_result"
         
     | 
| 
       10 
10 
     | 
    
         
             
            require "ostruct"
         
     | 
| 
       11 
11 
     | 
    
         
             
            require "json"
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
         @@ -14,8 +14,6 @@ module Vellum 
     | 
|
| 
       14 
14 
     | 
    
         
             
              class SlimWorkflowExecutionRead
         
     | 
| 
       15 
15 
     | 
    
         
             
              # @return [String] 
         
     | 
| 
       16 
16 
     | 
    
         
             
                attr_reader :span_id
         
     | 
| 
       17 
     | 
    
         
            -
              # @return [Vellum::WorkflowDeploymentParentContext] 
         
     | 
| 
       18 
     | 
    
         
            -
                attr_reader :parent_context
         
     | 
| 
       19 
17 
     | 
    
         
             
              # @return [DateTime] 
         
     | 
| 
       20 
18 
     | 
    
         
             
                attr_reader :start
         
     | 
| 
       21 
19 
     | 
    
         
             
              # @return [DateTime] 
         
     | 
| 
         @@ -26,12 +24,14 @@ module Vellum 
     | 
|
| 
       26 
24 
     | 
    
         
             
                attr_reader :outputs
         
     | 
| 
       27 
25 
     | 
    
         
             
              # @return [Vellum::WorkflowError] 
         
     | 
| 
       28 
26 
     | 
    
         
             
                attr_reader :error
         
     | 
| 
      
 27 
     | 
    
         
            +
              # @return [Array<Vellum::WorkflowExecutionUsageResult>] 
         
     | 
| 
      
 28 
     | 
    
         
            +
                attr_reader :usage_results
         
     | 
| 
      
 29 
     | 
    
         
            +
              # @return [Vellum::WorkflowDeploymentParentContext] 
         
     | 
| 
      
 30 
     | 
    
         
            +
                attr_reader :parent_context
         
     | 
| 
       29 
31 
     | 
    
         
             
              # @return [Vellum::WorkflowExecutionActual] 
         
     | 
| 
       30 
32 
     | 
    
         
             
                attr_reader :latest_actual
         
     | 
| 
       31 
33 
     | 
    
         
             
              # @return [Array<Vellum::WorkflowExecutionViewOnlineEvalMetricResult>] 
         
     | 
| 
       32 
34 
     | 
    
         
             
                attr_reader :metric_results
         
     | 
| 
       33 
     | 
    
         
            -
              # @return [Array<Vellum::WorkflowExecutionUsageResult>] 
         
     | 
| 
       34 
     | 
    
         
            -
                attr_reader :usage_results
         
     | 
| 
       35 
35 
     | 
    
         
             
              # @return [OpenStruct] Additional properties unmapped to the current class definition
         
     | 
| 
       36 
36 
     | 
    
         
             
                attr_reader :additional_properties
         
     | 
| 
       37 
37 
     | 
    
         
             
              # @return [Object] 
         
     | 
| 
         @@ -41,30 +41,30 @@ module Vellum 
     | 
|
| 
       41 
41 
     | 
    
         
             
                OMIT = Object.new
         
     | 
| 
       42 
42 
     | 
    
         | 
| 
       43 
43 
     | 
    
         
             
                # @param span_id [String] 
         
     | 
| 
       44 
     | 
    
         
            -
                # @param parent_context [Vellum::WorkflowDeploymentParentContext] 
         
     | 
| 
       45 
44 
     | 
    
         
             
                # @param start [DateTime] 
         
     | 
| 
       46 
45 
     | 
    
         
             
                # @param end_ [DateTime] 
         
     | 
| 
       47 
46 
     | 
    
         
             
                # @param inputs [Array<Vellum::ExecutionVellumValue>] 
         
     | 
| 
       48 
47 
     | 
    
         
             
                # @param outputs [Array<Vellum::ExecutionVellumValue>] 
         
     | 
| 
       49 
48 
     | 
    
         
             
                # @param error [Vellum::WorkflowError] 
         
     | 
| 
      
 49 
     | 
    
         
            +
                # @param usage_results [Array<Vellum::WorkflowExecutionUsageResult>] 
         
     | 
| 
      
 50 
     | 
    
         
            +
                # @param parent_context [Vellum::WorkflowDeploymentParentContext] 
         
     | 
| 
       50 
51 
     | 
    
         
             
                # @param latest_actual [Vellum::WorkflowExecutionActual] 
         
     | 
| 
       51 
52 
     | 
    
         
             
                # @param metric_results [Array<Vellum::WorkflowExecutionViewOnlineEvalMetricResult>] 
         
     | 
| 
       52 
     | 
    
         
            -
                # @param usage_results [Array<Vellum::WorkflowExecutionUsageResult>] 
         
     | 
| 
       53 
53 
     | 
    
         
             
                # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
         
     | 
| 
       54 
54 
     | 
    
         
             
                # @return [Vellum::SlimWorkflowExecutionRead]
         
     | 
| 
       55 
     | 
    
         
            -
                def initialize(span_id:,  
     | 
| 
      
 55 
     | 
    
         
            +
                def initialize(span_id:, start:, end_: OMIT, inputs:, outputs:, error: OMIT, usage_results: OMIT, parent_context: OMIT, latest_actual: OMIT, metric_results:, additional_properties: nil)
         
     | 
| 
       56 
56 
     | 
    
         
             
                  @span_id = span_id
         
     | 
| 
       57 
     | 
    
         
            -
                  @parent_context = parent_context if parent_context != OMIT
         
     | 
| 
       58 
57 
     | 
    
         
             
                  @start = start
         
     | 
| 
       59 
58 
     | 
    
         
             
                  @end_ = end_ if end_ != OMIT
         
     | 
| 
       60 
59 
     | 
    
         
             
                  @inputs = inputs
         
     | 
| 
       61 
60 
     | 
    
         
             
                  @outputs = outputs
         
     | 
| 
       62 
61 
     | 
    
         
             
                  @error = error if error != OMIT
         
     | 
| 
      
 62 
     | 
    
         
            +
                  @usage_results = usage_results if usage_results != OMIT
         
     | 
| 
      
 63 
     | 
    
         
            +
                  @parent_context = parent_context if parent_context != OMIT
         
     | 
| 
       63 
64 
     | 
    
         
             
                  @latest_actual = latest_actual if latest_actual != OMIT
         
     | 
| 
       64 
65 
     | 
    
         
             
                  @metric_results = metric_results
         
     | 
| 
       65 
     | 
    
         
            -
                  @usage_results = usage_results if usage_results != OMIT
         
     | 
| 
       66 
66 
     | 
    
         
             
                  @additional_properties = additional_properties
         
     | 
| 
       67 
     | 
    
         
            -
                  @_field_set = { "span_id": span_id, " 
     | 
| 
      
 67 
     | 
    
         
            +
                  @_field_set = { "span_id": span_id, "start": start, "end": end_, "inputs": inputs, "outputs": outputs, "error": error, "usage_results": usage_results, "parent_context": parent_context, "latest_actual": latest_actual, "metric_results": metric_results }.reject do | _k, v |
         
     | 
| 
       68 
68 
     | 
    
         
             
              v == OMIT
         
     | 
| 
       69 
69 
     | 
    
         
             
            end
         
     | 
| 
       70 
70 
     | 
    
         
             
                end
         
     | 
| 
         @@ -76,12 +76,6 @@ end 
     | 
|
| 
       76 
76 
     | 
    
         
             
                  struct = JSON.parse(json_object, object_class: OpenStruct)
         
     | 
| 
       77 
77 
     | 
    
         
             
                  parsed_json = JSON.parse(json_object)
         
     | 
| 
       78 
78 
     | 
    
         
             
                  span_id = parsed_json["span_id"]
         
     | 
| 
       79 
     | 
    
         
            -
                  unless parsed_json["parent_context"].nil?
         
     | 
| 
       80 
     | 
    
         
            -
                    parent_context = parsed_json["parent_context"].to_json
         
     | 
| 
       81 
     | 
    
         
            -
                    parent_context = Vellum::WorkflowDeploymentParentContext.from_json(json_object: parent_context)
         
     | 
| 
       82 
     | 
    
         
            -
                  else
         
     | 
| 
       83 
     | 
    
         
            -
                    parent_context = nil
         
     | 
| 
       84 
     | 
    
         
            -
                  end
         
     | 
| 
       85 
79 
     | 
    
         
             
                  start = unless parsed_json["start"].nil?
         
     | 
| 
       86 
80 
     | 
    
         
             
              DateTime.parse(parsed_json["start"])
         
     | 
| 
       87 
81 
     | 
    
         
             
            else
         
     | 
| 
         @@ -106,6 +100,16 @@ end 
     | 
|
| 
       106 
100 
     | 
    
         
             
                  else
         
     | 
| 
       107 
101 
     | 
    
         
             
                    error = nil
         
     | 
| 
       108 
102 
     | 
    
         
             
                  end
         
     | 
| 
      
 103 
     | 
    
         
            +
                  usage_results = parsed_json["usage_results"]&.map do | item |
         
     | 
| 
      
 104 
     | 
    
         
            +
              item = item.to_json
         
     | 
| 
      
 105 
     | 
    
         
            +
              Vellum::WorkflowExecutionUsageResult.from_json(json_object: item)
         
     | 
| 
      
 106 
     | 
    
         
            +
            end
         
     | 
| 
      
 107 
     | 
    
         
            +
                  unless parsed_json["parent_context"].nil?
         
     | 
| 
      
 108 
     | 
    
         
            +
                    parent_context = parsed_json["parent_context"].to_json
         
     | 
| 
      
 109 
     | 
    
         
            +
                    parent_context = Vellum::WorkflowDeploymentParentContext.from_json(json_object: parent_context)
         
     | 
| 
      
 110 
     | 
    
         
            +
                  else
         
     | 
| 
      
 111 
     | 
    
         
            +
                    parent_context = nil
         
     | 
| 
      
 112 
     | 
    
         
            +
                  end
         
     | 
| 
       109 
113 
     | 
    
         
             
                  unless parsed_json["latest_actual"].nil?
         
     | 
| 
       110 
114 
     | 
    
         
             
                    latest_actual = parsed_json["latest_actual"].to_json
         
     | 
| 
       111 
115 
     | 
    
         
             
                    latest_actual = Vellum::WorkflowExecutionActual.from_json(json_object: latest_actual)
         
     | 
| 
         @@ -115,22 +119,18 @@ end 
     | 
|
| 
       115 
119 
     | 
    
         
             
                  metric_results = parsed_json["metric_results"]&.map do | item |
         
     | 
| 
       116 
120 
     | 
    
         
             
              item = item.to_json
         
     | 
| 
       117 
121 
     | 
    
         
             
              Vellum::WorkflowExecutionViewOnlineEvalMetricResult.from_json(json_object: item)
         
     | 
| 
       118 
     | 
    
         
            -
            end
         
     | 
| 
       119 
     | 
    
         
            -
                  usage_results = parsed_json["usage_results"]&.map do | item |
         
     | 
| 
       120 
     | 
    
         
            -
              item = item.to_json
         
     | 
| 
       121 
     | 
    
         
            -
              Vellum::WorkflowExecutionUsageResult.from_json(json_object: item)
         
     | 
| 
       122 
122 
     | 
    
         
             
            end
         
     | 
| 
       123 
123 
     | 
    
         
             
                  new(
         
     | 
| 
       124 
124 
     | 
    
         
             
                    span_id: span_id,
         
     | 
| 
       125 
     | 
    
         
            -
                    parent_context: parent_context,
         
     | 
| 
       126 
125 
     | 
    
         
             
                    start: start,
         
     | 
| 
       127 
126 
     | 
    
         
             
                    end_: end_,
         
     | 
| 
       128 
127 
     | 
    
         
             
                    inputs: inputs,
         
     | 
| 
       129 
128 
     | 
    
         
             
                    outputs: outputs,
         
     | 
| 
       130 
129 
     | 
    
         
             
                    error: error,
         
     | 
| 
      
 130 
     | 
    
         
            +
                    usage_results: usage_results,
         
     | 
| 
      
 131 
     | 
    
         
            +
                    parent_context: parent_context,
         
     | 
| 
       131 
132 
     | 
    
         
             
                    latest_actual: latest_actual,
         
     | 
| 
       132 
133 
     | 
    
         
             
                    metric_results: metric_results,
         
     | 
| 
       133 
     | 
    
         
            -
                    usage_results: usage_results,
         
     | 
| 
       134 
134 
     | 
    
         
             
                    additional_properties: struct
         
     | 
| 
       135 
135 
     | 
    
         
             
                  )
         
     | 
| 
       136 
136 
     | 
    
         
             
                end
         
     | 
| 
         @@ -148,15 +148,15 @@ end 
     | 
|
| 
       148 
148 
     | 
    
         
             
                # @return [Void]
         
     | 
| 
       149 
149 
     | 
    
         
             
                def self.validate_raw(obj:)
         
     | 
| 
       150 
150 
     | 
    
         
             
                  obj.span_id.is_a?(String) != false || raise("Passed value for field obj.span_id is not the expected type, validation failed.")
         
     | 
| 
       151 
     | 
    
         
            -
                  obj.parent_context.nil? || Vellum::WorkflowDeploymentParentContext.validate_raw(obj: obj.parent_context)
         
     | 
| 
       152 
151 
     | 
    
         
             
                  obj.start.is_a?(DateTime) != false || raise("Passed value for field obj.start is not the expected type, validation failed.")
         
     | 
| 
       153 
152 
     | 
    
         
             
                  obj.end_&.is_a?(DateTime) != false || raise("Passed value for field obj.end_ is not the expected type, validation failed.")
         
     | 
| 
       154 
153 
     | 
    
         
             
                  obj.inputs.is_a?(Array) != false || raise("Passed value for field obj.inputs is not the expected type, validation failed.")
         
     | 
| 
       155 
154 
     | 
    
         
             
                  obj.outputs.is_a?(Array) != false || raise("Passed value for field obj.outputs is not the expected type, validation failed.")
         
     | 
| 
       156 
155 
     | 
    
         
             
                  obj.error.nil? || Vellum::WorkflowError.validate_raw(obj: obj.error)
         
     | 
| 
      
 156 
     | 
    
         
            +
                  obj.usage_results&.is_a?(Array) != false || raise("Passed value for field obj.usage_results is not the expected type, validation failed.")
         
     | 
| 
      
 157 
     | 
    
         
            +
                  obj.parent_context.nil? || Vellum::WorkflowDeploymentParentContext.validate_raw(obj: obj.parent_context)
         
     | 
| 
       157 
158 
     | 
    
         
             
                  obj.latest_actual.nil? || Vellum::WorkflowExecutionActual.validate_raw(obj: obj.latest_actual)
         
     | 
| 
       158 
159 
     | 
    
         
             
                  obj.metric_results.is_a?(Array) != false || raise("Passed value for field obj.metric_results is not the expected type, validation failed.")
         
     | 
| 
       159 
     | 
    
         
            -
                  obj.usage_results&.is_a?(Array) != false || raise("Passed value for field obj.usage_results is not the expected type, validation failed.")
         
     | 
| 
       160 
160 
     | 
    
         
             
                end
         
     | 
| 
       161 
161 
     | 
    
         
             
              end
         
     | 
| 
       162 
162 
     | 
    
         
             
            end
         
     | 
| 
         @@ -11,6 +11,7 @@ module Vellum 
     | 
|
| 
       11 
11 
     | 
    
         
             
            #  * `USER_DEFINED_ERROR` - USER_DEFINED_ERROR
         
     | 
| 
       12 
12 
     | 
    
         
             
            #  * `WORKFLOW_CANCELLED` - WORKFLOW_CANCELLED
         
     | 
| 
       13 
13 
     | 
    
         
             
            #  * `NODE_CANCELLED` - NODE_CANCELLED
         
     | 
| 
      
 14 
     | 
    
         
            +
            #  * `PROVIDER_QUOTA_EXCEEDED` - PROVIDER_QUOTA_EXCEEDED
         
     | 
| 
       14 
15 
     | 
    
         
             
              class VellumErrorCodeEnum
         
     | 
| 
       15 
16 
     | 
    
         | 
| 
       16 
17 
     | 
    
         
             
                INVALID_REQUEST = "INVALID_REQUEST"
         
     | 
| 
         @@ -23,6 +24,7 @@ module Vellum 
     | 
|
| 
       23 
24 
     | 
    
         
             
                USER_DEFINED_ERROR = "USER_DEFINED_ERROR"
         
     | 
| 
       24 
25 
     | 
    
         
             
                WORKFLOW_CANCELLED = "WORKFLOW_CANCELLED"
         
     | 
| 
       25 
26 
     | 
    
         
             
                NODE_CANCELLED = "NODE_CANCELLED"
         
     | 
| 
      
 27 
     | 
    
         
            +
                PROVIDER_QUOTA_EXCEEDED = "PROVIDER_QUOTA_EXCEEDED"
         
     | 
| 
       26 
28 
     | 
    
         | 
| 
       27 
29 
     | 
    
         
             
              end
         
     | 
| 
       28 
30 
     | 
    
         
             
            end
         
     | 
| 
         @@ -11,6 +11,7 @@ module Vellum 
     | 
|
| 
       11 
11 
     | 
    
         
             
            #  * `PROVIDER_CREDENTIALS_UNAVAILABLE` - PROVIDER_CREDENTIALS_UNAVAILABLE
         
     | 
| 
       12 
12 
     | 
    
         
             
            #  * `INTEGRATION_CREDENTIALS_UNAVAILABLE` - INTEGRATION_CREDENTIALS_UNAVAILABLE
         
     | 
| 
       13 
13 
     | 
    
         
             
            #  * `PROVIDER_ERROR` - PROVIDER_ERROR
         
     | 
| 
      
 14 
     | 
    
         
            +
            #  * `PROVIDER_QUOTA_EXCEEDED` - PROVIDER_QUOTA_EXCEEDED
         
     | 
| 
       14 
15 
     | 
    
         
             
            #  * `USER_DEFINED_ERROR` - USER_DEFINED_ERROR
         
     | 
| 
       15 
16 
     | 
    
         
             
            #  * `WORKFLOW_CANCELLED` - WORKFLOW_CANCELLED
         
     | 
| 
       16 
17 
     | 
    
         
             
            #  * `NODE_CANCELLED` - NODE_CANCELLED
         
     | 
| 
         @@ -27,6 +28,7 @@ module Vellum 
     | 
|
| 
       27 
28 
     | 
    
         
             
                PROVIDER_CREDENTIALS_UNAVAILABLE = "PROVIDER_CREDENTIALS_UNAVAILABLE"
         
     | 
| 
       28 
29 
     | 
    
         
             
                INTEGRATION_CREDENTIALS_UNAVAILABLE = "INTEGRATION_CREDENTIALS_UNAVAILABLE"
         
     | 
| 
       29 
30 
     | 
    
         
             
                PROVIDER_ERROR = "PROVIDER_ERROR"
         
     | 
| 
      
 31 
     | 
    
         
            +
                PROVIDER_QUOTA_EXCEEDED = "PROVIDER_QUOTA_EXCEEDED"
         
     | 
| 
       30 
32 
     | 
    
         
             
                USER_DEFINED_ERROR = "USER_DEFINED_ERROR"
         
     | 
| 
       31 
33 
     | 
    
         
             
                WORKFLOW_CANCELLED = "WORKFLOW_CANCELLED"
         
     | 
| 
       32 
34 
     | 
    
         
             
                NODE_CANCELLED = "NODE_CANCELLED"
         
     | 
| 
         @@ -1,12 +1,12 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # frozen_string_literal: true
         
     | 
| 
       2 
     | 
    
         
            -
            require_relative "workflow_deployment_parent_context"
         
     | 
| 
       3 
2 
     | 
    
         
             
            require "date"
         
     | 
| 
       4 
3 
     | 
    
         
             
            require "date"
         
     | 
| 
       5 
4 
     | 
    
         
             
            require_relative "execution_vellum_value"
         
     | 
| 
       6 
5 
     | 
    
         
             
            require_relative "workflow_error"
         
     | 
| 
      
 6 
     | 
    
         
            +
            require_relative "workflow_execution_usage_result"
         
     | 
| 
      
 7 
     | 
    
         
            +
            require_relative "workflow_deployment_parent_context"
         
     | 
| 
       7 
8 
     | 
    
         
             
            require_relative "workflow_execution_actual"
         
     | 
| 
       8 
9 
     | 
    
         
             
            require_relative "workflow_execution_view_online_eval_metric_result"
         
     | 
| 
       9 
     | 
    
         
            -
            require_relative "workflow_execution_usage_result"
         
     | 
| 
       10 
10 
     | 
    
         
             
            require_relative "vellum_span"
         
     | 
| 
       11 
11 
     | 
    
         
             
            require "ostruct"
         
     | 
| 
       12 
12 
     | 
    
         
             
            require "json"
         
     | 
| 
         @@ -15,8 +15,6 @@ module Vellum 
     | 
|
| 
       15 
15 
     | 
    
         
             
              class WorkflowEventExecutionRead
         
     | 
| 
       16 
16 
     | 
    
         
             
              # @return [String] 
         
     | 
| 
       17 
17 
     | 
    
         
             
                attr_reader :span_id
         
     | 
| 
       18 
     | 
    
         
            -
              # @return [Vellum::WorkflowDeploymentParentContext] 
         
     | 
| 
       19 
     | 
    
         
            -
                attr_reader :parent_context
         
     | 
| 
       20 
18 
     | 
    
         
             
              # @return [DateTime] 
         
     | 
| 
       21 
19 
     | 
    
         
             
                attr_reader :start
         
     | 
| 
       22 
20 
     | 
    
         
             
              # @return [DateTime] 
         
     | 
| 
         @@ -27,12 +25,14 @@ module Vellum 
     | 
|
| 
       27 
25 
     | 
    
         
             
                attr_reader :outputs
         
     | 
| 
       28 
26 
     | 
    
         
             
              # @return [Vellum::WorkflowError] 
         
     | 
| 
       29 
27 
     | 
    
         
             
                attr_reader :error
         
     | 
| 
      
 28 
     | 
    
         
            +
              # @return [Array<Vellum::WorkflowExecutionUsageResult>] 
         
     | 
| 
      
 29 
     | 
    
         
            +
                attr_reader :usage_results
         
     | 
| 
      
 30 
     | 
    
         
            +
              # @return [Vellum::WorkflowDeploymentParentContext] 
         
     | 
| 
      
 31 
     | 
    
         
            +
                attr_reader :parent_context
         
     | 
| 
       30 
32 
     | 
    
         
             
              # @return [Vellum::WorkflowExecutionActual] 
         
     | 
| 
       31 
33 
     | 
    
         
             
                attr_reader :latest_actual
         
     | 
| 
       32 
34 
     | 
    
         
             
              # @return [Array<Vellum::WorkflowExecutionViewOnlineEvalMetricResult>] 
         
     | 
| 
       33 
35 
     | 
    
         
             
                attr_reader :metric_results
         
     | 
| 
       34 
     | 
    
         
            -
              # @return [Array<Vellum::WorkflowExecutionUsageResult>] 
         
     | 
| 
       35 
     | 
    
         
            -
                attr_reader :usage_results
         
     | 
| 
       36 
36 
     | 
    
         
             
              # @return [Array<Vellum::VellumSpan>] 
         
     | 
| 
       37 
37 
     | 
    
         
             
                attr_reader :spans
         
     | 
| 
       38 
38 
     | 
    
         
             
              # @return [Hash{String => Object}] 
         
     | 
| 
         @@ -46,34 +46,34 @@ module Vellum 
     | 
|
| 
       46 
46 
     | 
    
         
             
                OMIT = Object.new
         
     | 
| 
       47 
47 
     | 
    
         | 
| 
       48 
48 
     | 
    
         
             
                # @param span_id [String] 
         
     | 
| 
       49 
     | 
    
         
            -
                # @param parent_context [Vellum::WorkflowDeploymentParentContext] 
         
     | 
| 
       50 
49 
     | 
    
         
             
                # @param start [DateTime] 
         
     | 
| 
       51 
50 
     | 
    
         
             
                # @param end_ [DateTime] 
         
     | 
| 
       52 
51 
     | 
    
         
             
                # @param inputs [Array<Vellum::ExecutionVellumValue>] 
         
     | 
| 
       53 
52 
     | 
    
         
             
                # @param outputs [Array<Vellum::ExecutionVellumValue>] 
         
     | 
| 
       54 
53 
     | 
    
         
             
                # @param error [Vellum::WorkflowError] 
         
     | 
| 
      
 54 
     | 
    
         
            +
                # @param usage_results [Array<Vellum::WorkflowExecutionUsageResult>] 
         
     | 
| 
      
 55 
     | 
    
         
            +
                # @param parent_context [Vellum::WorkflowDeploymentParentContext] 
         
     | 
| 
       55 
56 
     | 
    
         
             
                # @param latest_actual [Vellum::WorkflowExecutionActual] 
         
     | 
| 
       56 
57 
     | 
    
         
             
                # @param metric_results [Array<Vellum::WorkflowExecutionViewOnlineEvalMetricResult>] 
         
     | 
| 
       57 
     | 
    
         
            -
                # @param usage_results [Array<Vellum::WorkflowExecutionUsageResult>] 
         
     | 
| 
       58 
58 
     | 
    
         
             
                # @param spans [Array<Vellum::VellumSpan>] 
         
     | 
| 
       59 
59 
     | 
    
         
             
                # @param state [Hash{String => Object}] 
         
     | 
| 
       60 
60 
     | 
    
         
             
                # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
         
     | 
| 
       61 
61 
     | 
    
         
             
                # @return [Vellum::WorkflowEventExecutionRead]
         
     | 
| 
       62 
     | 
    
         
            -
                def initialize(span_id:,  
     | 
| 
      
 62 
     | 
    
         
            +
                def initialize(span_id:, start:, end_: OMIT, inputs:, outputs:, error: OMIT, usage_results: OMIT, parent_context: OMIT, latest_actual: OMIT, metric_results:, spans:, state: OMIT, additional_properties: nil)
         
     | 
| 
       63 
63 
     | 
    
         
             
                  @span_id = span_id
         
     | 
| 
       64 
     | 
    
         
            -
                  @parent_context = parent_context if parent_context != OMIT
         
     | 
| 
       65 
64 
     | 
    
         
             
                  @start = start
         
     | 
| 
       66 
65 
     | 
    
         
             
                  @end_ = end_ if end_ != OMIT
         
     | 
| 
       67 
66 
     | 
    
         
             
                  @inputs = inputs
         
     | 
| 
       68 
67 
     | 
    
         
             
                  @outputs = outputs
         
     | 
| 
       69 
68 
     | 
    
         
             
                  @error = error if error != OMIT
         
     | 
| 
      
 69 
     | 
    
         
            +
                  @usage_results = usage_results if usage_results != OMIT
         
     | 
| 
      
 70 
     | 
    
         
            +
                  @parent_context = parent_context if parent_context != OMIT
         
     | 
| 
       70 
71 
     | 
    
         
             
                  @latest_actual = latest_actual if latest_actual != OMIT
         
     | 
| 
       71 
72 
     | 
    
         
             
                  @metric_results = metric_results
         
     | 
| 
       72 
     | 
    
         
            -
                  @usage_results = usage_results if usage_results != OMIT
         
     | 
| 
       73 
73 
     | 
    
         
             
                  @spans = spans
         
     | 
| 
       74 
74 
     | 
    
         
             
                  @state = state if state != OMIT
         
     | 
| 
       75 
75 
     | 
    
         
             
                  @additional_properties = additional_properties
         
     | 
| 
       76 
     | 
    
         
            -
                  @_field_set = { "span_id": span_id, " 
     | 
| 
      
 76 
     | 
    
         
            +
                  @_field_set = { "span_id": span_id, "start": start, "end": end_, "inputs": inputs, "outputs": outputs, "error": error, "usage_results": usage_results, "parent_context": parent_context, "latest_actual": latest_actual, "metric_results": metric_results, "spans": spans, "state": state }.reject do | _k, v |
         
     | 
| 
       77 
77 
     | 
    
         
             
              v == OMIT
         
     | 
| 
       78 
78 
     | 
    
         
             
            end
         
     | 
| 
       79 
79 
     | 
    
         
             
                end
         
     | 
| 
         @@ -85,12 +85,6 @@ end 
     | 
|
| 
       85 
85 
     | 
    
         
             
                  struct = JSON.parse(json_object, object_class: OpenStruct)
         
     | 
| 
       86 
86 
     | 
    
         
             
                  parsed_json = JSON.parse(json_object)
         
     | 
| 
       87 
87 
     | 
    
         
             
                  span_id = parsed_json["span_id"]
         
     | 
| 
       88 
     | 
    
         
            -
                  unless parsed_json["parent_context"].nil?
         
     | 
| 
       89 
     | 
    
         
            -
                    parent_context = parsed_json["parent_context"].to_json
         
     | 
| 
       90 
     | 
    
         
            -
                    parent_context = Vellum::WorkflowDeploymentParentContext.from_json(json_object: parent_context)
         
     | 
| 
       91 
     | 
    
         
            -
                  else
         
     | 
| 
       92 
     | 
    
         
            -
                    parent_context = nil
         
     | 
| 
       93 
     | 
    
         
            -
                  end
         
     | 
| 
       94 
88 
     | 
    
         
             
                  start = unless parsed_json["start"].nil?
         
     | 
| 
       95 
89 
     | 
    
         
             
              DateTime.parse(parsed_json["start"])
         
     | 
| 
       96 
90 
     | 
    
         
             
            else
         
     | 
| 
         @@ -115,6 +109,16 @@ end 
     | 
|
| 
       115 
109 
     | 
    
         
             
                  else
         
     | 
| 
       116 
110 
     | 
    
         
             
                    error = nil
         
     | 
| 
       117 
111 
     | 
    
         
             
                  end
         
     | 
| 
      
 112 
     | 
    
         
            +
                  usage_results = parsed_json["usage_results"]&.map do | item |
         
     | 
| 
      
 113 
     | 
    
         
            +
              item = item.to_json
         
     | 
| 
      
 114 
     | 
    
         
            +
              Vellum::WorkflowExecutionUsageResult.from_json(json_object: item)
         
     | 
| 
      
 115 
     | 
    
         
            +
            end
         
     | 
| 
      
 116 
     | 
    
         
            +
                  unless parsed_json["parent_context"].nil?
         
     | 
| 
      
 117 
     | 
    
         
            +
                    parent_context = parsed_json["parent_context"].to_json
         
     | 
| 
      
 118 
     | 
    
         
            +
                    parent_context = Vellum::WorkflowDeploymentParentContext.from_json(json_object: parent_context)
         
     | 
| 
      
 119 
     | 
    
         
            +
                  else
         
     | 
| 
      
 120 
     | 
    
         
            +
                    parent_context = nil
         
     | 
| 
      
 121 
     | 
    
         
            +
                  end
         
     | 
| 
       118 
122 
     | 
    
         
             
                  unless parsed_json["latest_actual"].nil?
         
     | 
| 
       119 
123 
     | 
    
         
             
                    latest_actual = parsed_json["latest_actual"].to_json
         
     | 
| 
       120 
124 
     | 
    
         
             
                    latest_actual = Vellum::WorkflowExecutionActual.from_json(json_object: latest_actual)
         
     | 
| 
         @@ -124,10 +128,6 @@ end 
     | 
|
| 
       124 
128 
     | 
    
         
             
                  metric_results = parsed_json["metric_results"]&.map do | item |
         
     | 
| 
       125 
129 
     | 
    
         
             
              item = item.to_json
         
     | 
| 
       126 
130 
     | 
    
         
             
              Vellum::WorkflowExecutionViewOnlineEvalMetricResult.from_json(json_object: item)
         
     | 
| 
       127 
     | 
    
         
            -
            end
         
     | 
| 
       128 
     | 
    
         
            -
                  usage_results = parsed_json["usage_results"]&.map do | item |
         
     | 
| 
       129 
     | 
    
         
            -
              item = item.to_json
         
     | 
| 
       130 
     | 
    
         
            -
              Vellum::WorkflowExecutionUsageResult.from_json(json_object: item)
         
     | 
| 
       131 
131 
     | 
    
         
             
            end
         
     | 
| 
       132 
132 
     | 
    
         
             
                  spans = parsed_json["spans"]&.map do | item |
         
     | 
| 
       133 
133 
     | 
    
         
             
              item = item.to_json
         
     | 
| 
         @@ -136,15 +136,15 @@ end 
     | 
|
| 
       136 
136 
     | 
    
         
             
                  state = parsed_json["state"]
         
     | 
| 
       137 
137 
     | 
    
         
             
                  new(
         
     | 
| 
       138 
138 
     | 
    
         
             
                    span_id: span_id,
         
     | 
| 
       139 
     | 
    
         
            -
                    parent_context: parent_context,
         
     | 
| 
       140 
139 
     | 
    
         
             
                    start: start,
         
     | 
| 
       141 
140 
     | 
    
         
             
                    end_: end_,
         
     | 
| 
       142 
141 
     | 
    
         
             
                    inputs: inputs,
         
     | 
| 
       143 
142 
     | 
    
         
             
                    outputs: outputs,
         
     | 
| 
       144 
143 
     | 
    
         
             
                    error: error,
         
     | 
| 
      
 144 
     | 
    
         
            +
                    usage_results: usage_results,
         
     | 
| 
      
 145 
     | 
    
         
            +
                    parent_context: parent_context,
         
     | 
| 
       145 
146 
     | 
    
         
             
                    latest_actual: latest_actual,
         
     | 
| 
       146 
147 
     | 
    
         
             
                    metric_results: metric_results,
         
     | 
| 
       147 
     | 
    
         
            -
                    usage_results: usage_results,
         
     | 
| 
       148 
148 
     | 
    
         
             
                    spans: spans,
         
     | 
| 
       149 
149 
     | 
    
         
             
                    state: state,
         
     | 
| 
       150 
150 
     | 
    
         
             
                    additional_properties: struct
         
     | 
| 
         @@ -164,15 +164,15 @@ end 
     | 
|
| 
       164 
164 
     | 
    
         
             
                # @return [Void]
         
     | 
| 
       165 
165 
     | 
    
         
             
                def self.validate_raw(obj:)
         
     | 
| 
       166 
166 
     | 
    
         
             
                  obj.span_id.is_a?(String) != false || raise("Passed value for field obj.span_id is not the expected type, validation failed.")
         
     | 
| 
       167 
     | 
    
         
            -
                  obj.parent_context.nil? || Vellum::WorkflowDeploymentParentContext.validate_raw(obj: obj.parent_context)
         
     | 
| 
       168 
167 
     | 
    
         
             
                  obj.start.is_a?(DateTime) != false || raise("Passed value for field obj.start is not the expected type, validation failed.")
         
     | 
| 
       169 
168 
     | 
    
         
             
                  obj.end_&.is_a?(DateTime) != false || raise("Passed value for field obj.end_ is not the expected type, validation failed.")
         
     | 
| 
       170 
169 
     | 
    
         
             
                  obj.inputs.is_a?(Array) != false || raise("Passed value for field obj.inputs is not the expected type, validation failed.")
         
     | 
| 
       171 
170 
     | 
    
         
             
                  obj.outputs.is_a?(Array) != false || raise("Passed value for field obj.outputs is not the expected type, validation failed.")
         
     | 
| 
       172 
171 
     | 
    
         
             
                  obj.error.nil? || Vellum::WorkflowError.validate_raw(obj: obj.error)
         
     | 
| 
      
 172 
     | 
    
         
            +
                  obj.usage_results&.is_a?(Array) != false || raise("Passed value for field obj.usage_results is not the expected type, validation failed.")
         
     | 
| 
      
 173 
     | 
    
         
            +
                  obj.parent_context.nil? || Vellum::WorkflowDeploymentParentContext.validate_raw(obj: obj.parent_context)
         
     | 
| 
       173 
174 
     | 
    
         
             
                  obj.latest_actual.nil? || Vellum::WorkflowExecutionActual.validate_raw(obj: obj.latest_actual)
         
     | 
| 
       174 
175 
     | 
    
         
             
                  obj.metric_results.is_a?(Array) != false || raise("Passed value for field obj.metric_results is not the expected type, validation failed.")
         
     | 
| 
       175 
     | 
    
         
            -
                  obj.usage_results&.is_a?(Array) != false || raise("Passed value for field obj.usage_results is not the expected type, validation failed.")
         
     | 
| 
       176 
176 
     | 
    
         
             
                  obj.spans.is_a?(Array) != false || raise("Passed value for field obj.spans is not the expected type, validation failed.")
         
     | 
| 
       177 
177 
     | 
    
         
             
                  obj.state&.is_a?(Hash) != false || raise("Passed value for field obj.state is not the expected type, validation failed.")
         
     | 
| 
       178 
178 
     | 
    
         
             
                end
         
     | 
| 
         @@ -12,6 +12,7 @@ module Vellum 
     | 
|
| 
       12 
12 
     | 
    
         
             
            #  * `LLM_PROVIDER` - LLM_PROVIDER
         
     | 
| 
       13 
13 
     | 
    
         
             
            #  * `INVALID_TEMPLATE` - INVALID_TEMPLATE
         
     | 
| 
       14 
14 
     | 
    
         
             
            #  * `INVALID_INPUTS` - INVALID_INPUTS
         
     | 
| 
      
 15 
     | 
    
         
            +
            #  * `PROVIDER_QUOTA_EXCEEDED` - PROVIDER_QUOTA_EXCEEDED
         
     | 
| 
       15 
16 
     | 
    
         
             
            #  * `USER_DEFINED_ERROR` - USER_DEFINED_ERROR
         
     | 
| 
       16 
17 
     | 
    
         
             
              class WorkflowExecutionEventErrorCode
         
     | 
| 
       17 
18 
     | 
    
         | 
| 
         @@ -26,6 +27,7 @@ module Vellum 
     | 
|
| 
       26 
27 
     | 
    
         
             
                LLM_PROVIDER = "LLM_PROVIDER"
         
     | 
| 
       27 
28 
     | 
    
         
             
                INVALID_TEMPLATE = "INVALID_TEMPLATE"
         
     | 
| 
       28 
29 
     | 
    
         
             
                INVALID_INPUTS = "INVALID_INPUTS"
         
     | 
| 
      
 30 
     | 
    
         
            +
                PROVIDER_QUOTA_EXCEEDED = "PROVIDER_QUOTA_EXCEEDED"
         
     | 
| 
       29 
31 
     | 
    
         
             
                USER_DEFINED_ERROR = "USER_DEFINED_ERROR"
         
     | 
| 
       30 
32 
     | 
    
         | 
| 
       31 
33 
     | 
    
         
             
              end
         
     | 
| 
         @@ -7,6 +7,8 @@ module Vellum 
     | 
|
| 
       7 
7 
     | 
    
         
             
              class WorkflowExecutionSnapshottedBody
         
     | 
| 
       8 
8 
     | 
    
         
             
              # @return [Vellum::VellumCodeResourceDefinition] 
         
     | 
| 
       9 
9 
     | 
    
         
             
                attr_reader :workflow_definition
         
     | 
| 
      
 10 
     | 
    
         
            +
              # @return [Vellum::VellumCodeResourceDefinition] 
         
     | 
| 
      
 11 
     | 
    
         
            +
                attr_reader :edited_by
         
     | 
| 
       10 
12 
     | 
    
         
             
              # @return [Hash{String => Object}] 
         
     | 
| 
       11 
13 
     | 
    
         
             
                attr_reader :state
         
     | 
| 
       12 
14 
     | 
    
         
             
              # @return [OpenStruct] Additional properties unmapped to the current class definition
         
     | 
| 
         @@ -18,14 +20,18 @@ module Vellum 
     | 
|
| 
       18 
20 
     | 
    
         
             
                OMIT = Object.new
         
     | 
| 
       19 
21 
     | 
    
         | 
| 
       20 
22 
     | 
    
         
             
                # @param workflow_definition [Vellum::VellumCodeResourceDefinition] 
         
     | 
| 
      
 23 
     | 
    
         
            +
                # @param edited_by [Vellum::VellumCodeResourceDefinition] 
         
     | 
| 
       21 
24 
     | 
    
         
             
                # @param state [Hash{String => Object}] 
         
     | 
| 
       22 
25 
     | 
    
         
             
                # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
         
     | 
| 
       23 
26 
     | 
    
         
             
                # @return [Vellum::WorkflowExecutionSnapshottedBody]
         
     | 
| 
       24 
     | 
    
         
            -
                def initialize(workflow_definition:, state:, additional_properties: nil)
         
     | 
| 
      
 27 
     | 
    
         
            +
                def initialize(workflow_definition:, edited_by: OMIT, state:, additional_properties: nil)
         
     | 
| 
       25 
28 
     | 
    
         
             
                  @workflow_definition = workflow_definition
         
     | 
| 
      
 29 
     | 
    
         
            +
                  @edited_by = edited_by if edited_by != OMIT
         
     | 
| 
       26 
30 
     | 
    
         
             
                  @state = state
         
     | 
| 
       27 
31 
     | 
    
         
             
                  @additional_properties = additional_properties
         
     | 
| 
       28 
     | 
    
         
            -
                  @_field_set = { "workflow_definition": workflow_definition, "state": state }
         
     | 
| 
      
 32 
     | 
    
         
            +
                  @_field_set = { "workflow_definition": workflow_definition, "edited_by": edited_by, "state": state }.reject do | _k, v |
         
     | 
| 
      
 33 
     | 
    
         
            +
              v == OMIT
         
     | 
| 
      
 34 
     | 
    
         
            +
            end
         
     | 
| 
       29 
35 
     | 
    
         
             
                end
         
     | 
| 
       30 
36 
     | 
    
         
             
            # Deserialize a JSON object to an instance of WorkflowExecutionSnapshottedBody
         
     | 
| 
       31 
37 
     | 
    
         
             
                #
         
     | 
| 
         @@ -40,9 +46,16 @@ module Vellum 
     | 
|
| 
       40 
46 
     | 
    
         
             
                  else
         
     | 
| 
       41 
47 
     | 
    
         
             
                    workflow_definition = nil
         
     | 
| 
       42 
48 
     | 
    
         
             
                  end
         
     | 
| 
      
 49 
     | 
    
         
            +
                  unless parsed_json["edited_by"].nil?
         
     | 
| 
      
 50 
     | 
    
         
            +
                    edited_by = parsed_json["edited_by"].to_json
         
     | 
| 
      
 51 
     | 
    
         
            +
                    edited_by = Vellum::VellumCodeResourceDefinition.from_json(json_object: edited_by)
         
     | 
| 
      
 52 
     | 
    
         
            +
                  else
         
     | 
| 
      
 53 
     | 
    
         
            +
                    edited_by = nil
         
     | 
| 
      
 54 
     | 
    
         
            +
                  end
         
     | 
| 
       43 
55 
     | 
    
         
             
                  state = parsed_json["state"]
         
     | 
| 
       44 
56 
     | 
    
         
             
                  new(
         
     | 
| 
       45 
57 
     | 
    
         
             
                    workflow_definition: workflow_definition,
         
     | 
| 
      
 58 
     | 
    
         
            +
                    edited_by: edited_by,
         
     | 
| 
       46 
59 
     | 
    
         
             
                    state: state,
         
     | 
| 
       47 
60 
     | 
    
         
             
                    additional_properties: struct
         
     | 
| 
       48 
61 
     | 
    
         
             
                  )
         
     | 
| 
         @@ -61,6 +74,7 @@ module Vellum 
     | 
|
| 
       61 
74 
     | 
    
         
             
                # @return [Void]
         
     | 
| 
       62 
75 
     | 
    
         
             
                def self.validate_raw(obj:)
         
     | 
| 
       63 
76 
     | 
    
         
             
                  Vellum::VellumCodeResourceDefinition.validate_raw(obj: obj.workflow_definition)
         
     | 
| 
      
 77 
     | 
    
         
            +
                  obj.edited_by.nil? || Vellum::VellumCodeResourceDefinition.validate_raw(obj: obj.edited_by)
         
     | 
| 
       64 
78 
     | 
    
         
             
                  obj.state.is_a?(Hash) != false || raise("Passed value for field obj.state is not the expected type, validation failed.")
         
     | 
| 
       65 
79 
     | 
    
         
             
                end
         
     | 
| 
       66 
80 
     | 
    
         
             
              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.7. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.7.12
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Vellum
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire:
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: exe
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2025-10- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2025-10-16 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: faraday
         
     | 
| 
         @@ -182,6 +182,7 @@ files: 
     | 
|
| 
       182 
182 
     | 
    
         
             
            - lib/vellum_ai/types/audio_prompt_block.rb
         
     | 
| 
       183 
183 
     | 
    
         
             
            - lib/vellum_ai/types/audio_vellum_value.rb
         
     | 
| 
       184 
184 
     | 
    
         
             
            - lib/vellum_ai/types/audio_vellum_value_request.rb
         
     | 
| 
      
 185 
     | 
    
         
            +
            - lib/vellum_ai/types/auth_type_enum.rb
         
     | 
| 
       185 
186 
     | 
    
         
             
            - lib/vellum_ai/types/base_output.rb
         
     | 
| 
       186 
187 
     | 
    
         
             
            - lib/vellum_ai/types/basic_vectorizer_intfloat_multilingual_e_5_large.rb
         
     | 
| 
       187 
188 
     | 
    
         
             
            - lib/vellum_ai/types/basic_vectorizer_intfloat_multilingual_e_5_large_request.rb
         
     |