Class: Vellum::AsyncClient
- Inherits:
-
Object
- Object
- Vellum::AsyncClient
- Defined in:
- lib/vellum_ai.rb
Instance Attribute Summary collapse
- #ad_hoc ⇒ Vellum::AsyncAdHocClient readonly
- #container_images ⇒ Vellum::AsyncContainerImagesClient readonly
- #deployments ⇒ Vellum::AsyncDeploymentsClient readonly
- #document_indexes ⇒ Vellum::AsyncDocumentIndexesClient readonly
- #documents ⇒ Vellum::AsyncDocumentsClient readonly
- #environments ⇒ Vellum::AsyncEnvironmentsClient readonly
- #events ⇒ Vellum::AsyncEventsClient readonly
- #folder_entities ⇒ Vellum::AsyncFolderEntitiesClient readonly
- #integration_auth_configs ⇒ Vellum::AsyncIntegrationAuthConfigsClient readonly
- #integration_providers ⇒ Vellum::AsyncIntegrationProvidersClient readonly
- #integrations ⇒ Vellum::AsyncIntegrationsClient readonly
- #metric_definitions ⇒ Vellum::AsyncMetricDefinitionsClient readonly
- #ml_models ⇒ Vellum::AsyncMlModelsClient readonly
- #organizations ⇒ Vellum::AsyncOrganizationsClient readonly
- #prompts ⇒ Vellum::AsyncPromptsClient readonly
- #sandboxes ⇒ Vellum::AsyncSandboxesClient readonly
- #test_suite_runs ⇒ Vellum::AsyncTestSuiteRunsClient readonly
- #test_suites ⇒ Vellum::AsyncTestSuitesClient readonly
- #uploaded_files ⇒ Vellum::AsyncUploadedFilesClient readonly
- #workflow_deployments ⇒ Vellum::AsyncWorkflowDeploymentsClient readonly
- #workflow_executions ⇒ Vellum::AsyncWorkflowExecutionsClient readonly
- #workflow_sandboxes ⇒ Vellum::AsyncWorkflowSandboxesClient readonly
- #workflows ⇒ Vellum::AsyncWorkflowsClient readonly
- #workspace_secrets ⇒ Vellum::AsyncWorkspaceSecretsClient readonly
- #workspaces ⇒ Vellum::AsyncWorkspacesClient readonly
Instance Method Summary collapse
-
#execute_api(url:, method: nil, body: nil, headers: nil, bearer_token: nil, request_options: nil) ⇒ Object
api.execute_api(url: "x").
-
#execute_code(code:, runtime:, input_values:, packages:, output_type:, request_options: nil) ⇒ Object
).
-
#execute_prompt(inputs:, prompt_deployment_id: nil, prompt_deployment_name: nil, release_tag: nil, external_id: nil, expand_meta: nil, raw_overrides: nil, expand_raw: nil, metadata: nil, request_options: nil) ⇒ Object
api.execute_prompt(inputs: [{ name: "x", type: "STRING", value: "value" }, { name: "x", type: "STRING", value: "value" }]).
-
#execute_workflow(inputs:, expand_meta: nil, workflow_deployment_id: nil, workflow_deployment_name: nil, release_tag: nil, external_id: nil, metadata: nil, previous_execution_id: nil, request_options: nil) ⇒ Object
api.execute_workflow(inputs: [{ name: "x", type: "STRING", value: "value" }, { name: "x", type: "STRING", value: "value" }]).
-
#execute_workflow_async(inputs:, workflow_deployment_id: nil, workflow_deployment_name: nil, release_tag: nil, external_id: nil, previous_execution_id: nil, metadata: nil, request_options: nil) ⇒ Object
api.execute_workflow_async(inputs: [{ name: "x", type: "STRING", value: "value" }, { name: "x", type: "STRING", value: "value" }]).
-
#generate(deployment_id: nil, deployment_name: nil, requests:, options: nil, request_options: nil) ⇒ Object
api.generate(requests: [{ input_values: { "input_values": "key":"value" } }, { input_values: { "input_values": "key":"value" } }]).
- #initialize(base_url: nil, environment: Vellum::Environment::PRODUCTION, max_retries: nil, timeout_in_seconds: nil, api_key:, api_version: nil) ⇒ Vellum::AsyncClient constructor
-
#search(index_id: nil, index_name: nil, query:, options: nil, document_index: nil, request_options: nil) ⇒ Object
api.search(query: "x").
-
#submit_completion_actuals(deployment_id: nil, deployment_name: nil, actuals:, request_options: nil) ⇒ Object
api.submit_completion_actuals(actuals: [{ }, { }]).
-
#submit_workflow_execution_actuals(actuals:, execution_id: nil, external_id: nil, request_options: nil) ⇒ Object
api.submit_workflow_execution_actuals(actuals: [{ output_type: "STRING" }, { output_type: "STRING" }]).
Constructor Details
#initialize(base_url: nil, environment: Vellum::Environment::PRODUCTION, max_retries: nil, timeout_in_seconds: nil, api_key:, api_version: nil) ⇒ Vellum::AsyncClient
637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 |
# File 'lib/vellum_ai.rb', line 637 def initialize(base_url: nil, environment: Vellum::Environment::PRODUCTION, max_retries: nil, timeout_in_seconds: nil, api_key:, api_version: nil) @async_request_client = Vellum::AsyncRequestClient.new( base_url: base_url, environment: environment, max_retries: max_retries, timeout_in_seconds: timeout_in_seconds, api_key: api_key, api_version: api_version ) @integrations = Vellum::AsyncIntegrationsClient.new(request_client: @async_request_client) @events = Vellum::AsyncEventsClient.new(request_client: @async_request_client) @ad_hoc = Vellum::AsyncAdHocClient.new(request_client: @async_request_client) @container_images = Vellum::AsyncContainerImagesClient.new(request_client: @async_request_client) @deployments = Vellum::AsyncDeploymentsClient.new(request_client: @async_request_client) @document_indexes = Vellum::AsyncDocumentIndexesClient.new(request_client: @async_request_client) @documents = Vellum::AsyncDocumentsClient.new(request_client: @async_request_client) @environments = Vellum::AsyncEnvironmentsClient.new(request_client: @async_request_client) @folder_entities = Vellum::AsyncFolderEntitiesClient.new(request_client: @async_request_client) @integration_auth_configs = Vellum::AsyncIntegrationAuthConfigsClient.new(request_client: @async_request_client) @integration_providers = Vellum::AsyncIntegrationProvidersClient.new(request_client: @async_request_client) @metric_definitions = Vellum::AsyncMetricDefinitionsClient.new(request_client: @async_request_client) @ml_models = Vellum::AsyncMlModelsClient.new(request_client: @async_request_client) @organizations = Vellum::AsyncOrganizationsClient.new(request_client: @async_request_client) @prompts = Vellum::AsyncPromptsClient.new(request_client: @async_request_client) @sandboxes = Vellum::AsyncSandboxesClient.new(request_client: @async_request_client) @test_suite_runs = Vellum::AsyncTestSuiteRunsClient.new(request_client: @async_request_client) @test_suites = Vellum::AsyncTestSuitesClient.new(request_client: @async_request_client) @uploaded_files = Vellum::AsyncUploadedFilesClient.new(request_client: @async_request_client) @workflow_deployments = Vellum::AsyncWorkflowDeploymentsClient.new(request_client: @async_request_client) @workflow_executions = Vellum::AsyncWorkflowExecutionsClient.new(request_client: @async_request_client) @workflow_sandboxes = Vellum::AsyncWorkflowSandboxesClient.new(request_client: @async_request_client) @workflows = Vellum::AsyncWorkflowsClient.new(request_client: @async_request_client) @workspace_secrets = Vellum::AsyncWorkspaceSecretsClient.new(request_client: @async_request_client) @workspaces = Vellum::AsyncWorkspacesClient.new(request_client: @async_request_client) end |
Instance Attribute Details
#ad_hoc ⇒ Vellum::AsyncAdHocClient (readonly)
583 584 585 |
# File 'lib/vellum_ai.rb', line 583 def ad_hoc @ad_hoc end |
#container_images ⇒ Vellum::AsyncContainerImagesClient (readonly)
585 586 587 |
# File 'lib/vellum_ai.rb', line 585 def container_images @container_images end |
#deployments ⇒ Vellum::AsyncDeploymentsClient (readonly)
587 588 589 |
# File 'lib/vellum_ai.rb', line 587 def deployments @deployments end |
#document_indexes ⇒ Vellum::AsyncDocumentIndexesClient (readonly)
589 590 591 |
# File 'lib/vellum_ai.rb', line 589 def document_indexes @document_indexes end |
#documents ⇒ Vellum::AsyncDocumentsClient (readonly)
591 592 593 |
# File 'lib/vellum_ai.rb', line 591 def documents @documents end |
#environments ⇒ Vellum::AsyncEnvironmentsClient (readonly)
593 594 595 |
# File 'lib/vellum_ai.rb', line 593 def environments @environments end |
#events ⇒ Vellum::AsyncEventsClient (readonly)
581 582 583 |
# File 'lib/vellum_ai.rb', line 581 def events @events end |
#folder_entities ⇒ Vellum::AsyncFolderEntitiesClient (readonly)
595 596 597 |
# File 'lib/vellum_ai.rb', line 595 def folder_entities @folder_entities end |
#integration_auth_configs ⇒ Vellum::AsyncIntegrationAuthConfigsClient (readonly)
597 598 599 |
# File 'lib/vellum_ai.rb', line 597 def integration_auth_configs @integration_auth_configs end |
#integration_providers ⇒ Vellum::AsyncIntegrationProvidersClient (readonly)
599 600 601 |
# File 'lib/vellum_ai.rb', line 599 def integration_providers @integration_providers end |
#integrations ⇒ Vellum::AsyncIntegrationsClient (readonly)
579 580 581 |
# File 'lib/vellum_ai.rb', line 579 def integrations @integrations end |
#metric_definitions ⇒ Vellum::AsyncMetricDefinitionsClient (readonly)
601 602 603 |
# File 'lib/vellum_ai.rb', line 601 def metric_definitions @metric_definitions end |
#ml_models ⇒ Vellum::AsyncMlModelsClient (readonly)
603 604 605 |
# File 'lib/vellum_ai.rb', line 603 def ml_models @ml_models end |
#organizations ⇒ Vellum::AsyncOrganizationsClient (readonly)
605 606 607 |
# File 'lib/vellum_ai.rb', line 605 def organizations @organizations end |
#prompts ⇒ Vellum::AsyncPromptsClient (readonly)
607 608 609 |
# File 'lib/vellum_ai.rb', line 607 def prompts @prompts end |
#sandboxes ⇒ Vellum::AsyncSandboxesClient (readonly)
609 610 611 |
# File 'lib/vellum_ai.rb', line 609 def sandboxes @sandboxes end |
#test_suite_runs ⇒ Vellum::AsyncTestSuiteRunsClient (readonly)
611 612 613 |
# File 'lib/vellum_ai.rb', line 611 def test_suite_runs @test_suite_runs end |
#test_suites ⇒ Vellum::AsyncTestSuitesClient (readonly)
613 614 615 |
# File 'lib/vellum_ai.rb', line 613 def test_suites @test_suites end |
#uploaded_files ⇒ Vellum::AsyncUploadedFilesClient (readonly)
615 616 617 |
# File 'lib/vellum_ai.rb', line 615 def uploaded_files @uploaded_files end |
#workflow_deployments ⇒ Vellum::AsyncWorkflowDeploymentsClient (readonly)
617 618 619 |
# File 'lib/vellum_ai.rb', line 617 def workflow_deployments @workflow_deployments end |
#workflow_executions ⇒ Vellum::AsyncWorkflowExecutionsClient (readonly)
619 620 621 |
# File 'lib/vellum_ai.rb', line 619 def workflow_executions @workflow_executions end |
#workflow_sandboxes ⇒ Vellum::AsyncWorkflowSandboxesClient (readonly)
621 622 623 |
# File 'lib/vellum_ai.rb', line 621 def workflow_sandboxes @workflow_sandboxes end |
#workflows ⇒ Vellum::AsyncWorkflowsClient (readonly)
623 624 625 |
# File 'lib/vellum_ai.rb', line 623 def workflows @workflows end |
#workspace_secrets ⇒ Vellum::AsyncWorkspaceSecretsClient (readonly)
625 626 627 |
# File 'lib/vellum_ai.rb', line 625 def workspace_secrets @workspace_secrets end |
#workspaces ⇒ Vellum::AsyncWorkspacesClient (readonly)
627 628 629 |
# File 'lib/vellum_ai.rb', line 627 def workspaces @workspaces end |
Instance Method Details
#execute_api(url:, method: nil, body: nil, headers: nil, bearer_token: nil, request_options: nil) ⇒ Object
api.execute_api(url: "x")
686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 |
# File 'lib/vellum_ai.rb', line 686 def execute_api(url:, method: nil, body: nil, headers: nil, bearer_token: nil, request_options: nil) response = @async_request_client.conn.post do | req | unless &.timeout_in_seconds.nil? req..timeout = .timeout_in_seconds end unless &.api_key.nil? req.headers["X-API-KEY"] = .api_key end unless &.api_version.nil? req.headers["X-API-Version"] = .api_version else req.headers["X-API-Version"] = "2025-07-30" end req.headers = { **(req.headers || {}), **@async_request_client.get_headers, **(&.additional_headers || {}) }.compact unless .nil? || &.additional_query_parameters.nil? req.params = { **(&.additional_query_parameters || {}) }.compact end req.body = { **(&.additional_body_parameters || {}), url: url, method: method, body: body, headers: headers, bearer_token: bearer_token }.compact req.url "#{@async_request_client.get_url(environment: Default, request_options: )}/v1/execute-api" end Vellum::ExecuteApiResponse.from_json(json_object: response.body) end |
#execute_code(code:, runtime:, input_values:, packages:, output_type:, request_options: nil) ⇒ Object
)
731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 |
# File 'lib/vellum_ai.rb', line 731 def execute_code(code:, runtime:, input_values:, packages:, output_type:, request_options: nil) response = @async_request_client.conn.post do | req | unless &.timeout_in_seconds.nil? req..timeout = .timeout_in_seconds end unless &.api_key.nil? req.headers["X-API-KEY"] = .api_key end unless &.api_version.nil? req.headers["X-API-Version"] = .api_version else req.headers["X-API-Version"] = "2025-07-30" end req.headers = { **(req.headers || {}), **@async_request_client.get_headers, **(&.additional_headers || {}) }.compact unless .nil? || &.additional_query_parameters.nil? req.params = { **(&.additional_query_parameters || {}) }.compact end req.body = { **(&.additional_body_parameters || {}), code: code, runtime: runtime, input_values: input_values, packages: packages, output_type: output_type }.compact req.url "#{@async_request_client.get_url(environment: Predict, request_options: )}/v1/execute-code" end Vellum::CodeExecutorResponse.from_json(json_object: response.body) end |
#execute_prompt(inputs:, prompt_deployment_id: nil, prompt_deployment_name: nil, release_tag: nil, external_id: nil, expand_meta: nil, raw_overrides: nil, expand_raw: nil, metadata: nil, request_options: nil) ⇒ Object
api.execute_prompt(inputs: [{ name: "x", type: "STRING", value: "value" }, { name: "x", type: "STRING", value: "value" }])
795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 |
# File 'lib/vellum_ai.rb', line 795 def execute_prompt(inputs:, prompt_deployment_id: nil, prompt_deployment_name: nil, release_tag: nil, external_id: nil, expand_meta: nil, raw_overrides: nil, expand_raw: nil, metadata: nil, request_options: nil) response = @async_request_client.conn.post do | req | unless &.timeout_in_seconds.nil? req..timeout = .timeout_in_seconds end unless &.api_key.nil? req.headers["X-API-KEY"] = .api_key end unless &.api_version.nil? req.headers["X-API-Version"] = .api_version else req.headers["X-API-Version"] = "2025-07-30" end req.headers = { **(req.headers || {}), **@async_request_client.get_headers, **(&.additional_headers || {}) }.compact unless .nil? || &.additional_query_parameters.nil? req.params = { **(&.additional_query_parameters || {}) }.compact end req.body = { **(&.additional_body_parameters || {}), inputs: inputs, prompt_deployment_id: prompt_deployment_id, prompt_deployment_name: prompt_deployment_name, release_tag: release_tag, external_id: external_id, expand_meta: , raw_overrides: raw_overrides, expand_raw: , metadata: }.compact req.url "#{@async_request_client.get_url(environment: Predict, request_options: )}/v1/execute-prompt" end Vellum::ExecutePromptResponse.from_json(json_object: response.body) end |
#execute_workflow(inputs:, expand_meta: nil, workflow_deployment_id: nil, workflow_deployment_name: nil, release_tag: nil, external_id: nil, metadata: nil, previous_execution_id: nil, request_options: nil) ⇒ Object
api.execute_workflow(inputs: [{ name: "x", type: "STRING", value: "value" }, { name: "x", type: "STRING", value: "value" }])
849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 |
# File 'lib/vellum_ai.rb', line 849 def execute_workflow(inputs:, expand_meta: nil, workflow_deployment_id: nil, workflow_deployment_name: nil, release_tag: nil, external_id: nil, metadata: nil, previous_execution_id: nil, request_options: nil) response = @async_request_client.conn.post do | req | unless &.timeout_in_seconds.nil? req..timeout = .timeout_in_seconds end unless &.api_key.nil? req.headers["X-API-KEY"] = .api_key end unless &.api_version.nil? req.headers["X-API-Version"] = .api_version else req.headers["X-API-Version"] = "2025-07-30" end req.headers = { **(req.headers || {}), **@async_request_client.get_headers, **(&.additional_headers || {}) }.compact unless .nil? || &.additional_query_parameters.nil? req.params = { **(&.additional_query_parameters || {}) }.compact end req.body = { **(&.additional_body_parameters || {}), inputs: inputs, expand_meta: , workflow_deployment_id: workflow_deployment_id, workflow_deployment_name: workflow_deployment_name, release_tag: release_tag, external_id: external_id, metadata: , previous_execution_id: previous_execution_id }.compact req.url "#{@async_request_client.get_url(environment: Predict, request_options: )}/v1/execute-workflow" end Vellum::ExecuteWorkflowResponse.from_json(json_object: response.body) end |
#execute_workflow_async(inputs:, workflow_deployment_id: nil, workflow_deployment_name: nil, release_tag: nil, external_id: nil, previous_execution_id: nil, metadata: nil, request_options: nil) ⇒ Object
api.execute_workflow_async(inputs: [{ name: "x", type: "STRING", value: "value" }, { name: "x", type: "STRING", value: "value" }])
896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 |
# File 'lib/vellum_ai.rb', line 896 def execute_workflow_async(inputs:, workflow_deployment_id: nil, workflow_deployment_name: nil, release_tag: nil, external_id: nil, previous_execution_id: nil, metadata: nil, request_options: nil) response = @async_request_client.conn.post do | req | unless &.timeout_in_seconds.nil? req..timeout = .timeout_in_seconds end unless &.api_key.nil? req.headers["X-API-KEY"] = .api_key end unless &.api_version.nil? req.headers["X-API-Version"] = .api_version else req.headers["X-API-Version"] = "2025-07-30" end req.headers = { **(req.headers || {}), **@async_request_client.get_headers, **(&.additional_headers || {}) }.compact unless .nil? || &.additional_query_parameters.nil? req.params = { **(&.additional_query_parameters || {}) }.compact end req.body = { **(&.additional_body_parameters || {}), inputs: inputs, workflow_deployment_id: workflow_deployment_id, workflow_deployment_name: workflow_deployment_name, release_tag: release_tag, external_id: external_id, previous_execution_id: previous_execution_id, metadata: }.compact req.url "#{@async_request_client.get_url(environment: Predict, request_options: )}/v1/execute-workflow-async" end Vellum::ExecuteWorkflowAsyncResponse.from_json(json_object: response.body) end |
#generate(deployment_id: nil, deployment_name: nil, requests:, options: nil, request_options: nil) ⇒ Object
api.generate(requests: [{ input_values: { "input_values": "key":"value" } }, { input_values: { "input_values": "key":"value" } }])
941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 |
# File 'lib/vellum_ai.rb', line 941 def generate(deployment_id: nil, deployment_name: nil, requests:, options: nil, request_options: nil) response = @async_request_client.conn.post do | req | unless &.timeout_in_seconds.nil? req..timeout = .timeout_in_seconds end unless &.api_key.nil? req.headers["X-API-KEY"] = .api_key end unless &.api_version.nil? req.headers["X-API-Version"] = .api_version else req.headers["X-API-Version"] = "2025-07-30" end req.headers = { **(req.headers || {}), **@async_request_client.get_headers, **(&.additional_headers || {}) }.compact unless .nil? || &.additional_query_parameters.nil? req.params = { **(&.additional_query_parameters || {}) }.compact end req.body = { **(&.additional_body_parameters || {}), deployment_id: deployment_id, deployment_name: deployment_name, requests: requests, options: }.compact req.url "#{@async_request_client.get_url(environment: Predict, request_options: )}/v1/generate" end Vellum::GenerateResponse.from_json(json_object: response.body) end |
#search(index_id: nil, index_name: nil, query:, options: nil, document_index: nil, request_options: nil) ⇒ Object
api.search(query: "x")
991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 |
# File 'lib/vellum_ai.rb', line 991 def search(index_id: nil, index_name: nil, query:, options: nil, document_index: nil, request_options: nil) response = @async_request_client.conn.post do | req | unless &.timeout_in_seconds.nil? req..timeout = .timeout_in_seconds end unless &.api_key.nil? req.headers["X-API-KEY"] = .api_key end unless &.api_version.nil? req.headers["X-API-Version"] = .api_version else req.headers["X-API-Version"] = "2025-07-30" end req.headers = { **(req.headers || {}), **@async_request_client.get_headers, **(&.additional_headers || {}) }.compact unless .nil? || &.additional_query_parameters.nil? req.params = { **(&.additional_query_parameters || {}) }.compact end req.body = { **(&.additional_body_parameters || {}), index_id: index_id, index_name: index_name, query: query, options: , document_index: document_index }.compact req.url "#{@async_request_client.get_url(environment: Predict, request_options: )}/v1/search" end Vellum::SearchResponse.from_json(json_object: response.body) end |
#submit_completion_actuals(deployment_id: nil, deployment_name: nil, actuals:, request_options: nil) ⇒ Object
api.submit_completion_actuals(actuals: [{ }, { }])
1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 |
# File 'lib/vellum_ai.rb', line 1034 def submit_completion_actuals(deployment_id: nil, deployment_name: nil, actuals:, request_options: nil) response = @async_request_client.conn.post do | req | unless &.timeout_in_seconds.nil? req..timeout = .timeout_in_seconds end unless &.api_key.nil? req.headers["X-API-KEY"] = .api_key end unless &.api_version.nil? req.headers["X-API-Version"] = .api_version else req.headers["X-API-Version"] = "2025-07-30" end req.headers = { **(req.headers || {}), **@async_request_client.get_headers, **(&.additional_headers || {}) }.compact unless .nil? || &.additional_query_parameters.nil? req.params = { **(&.additional_query_parameters || {}) }.compact end req.body = { **(&.additional_body_parameters || {}), deployment_id: deployment_id, deployment_name: deployment_name, actuals: actuals }.compact req.url "#{@async_request_client.get_url(environment: Predict, request_options: )}/v1/submit-completion-actuals" end end |
#submit_workflow_execution_actuals(actuals:, execution_id: nil, external_id: nil, request_options: nil) ⇒ Object
api.submit_workflow_execution_actuals(actuals: [{ output_type: "STRING" }, { output_type: "STRING" }])
1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 |
# File 'lib/vellum_ai.rb', line 1074 def submit_workflow_execution_actuals(actuals:, execution_id: nil, external_id: nil, request_options: nil) response = @async_request_client.conn.post do | req | unless &.timeout_in_seconds.nil? req..timeout = .timeout_in_seconds end unless &.api_key.nil? req.headers["X-API-KEY"] = .api_key end unless &.api_version.nil? req.headers["X-API-Version"] = .api_version else req.headers["X-API-Version"] = "2025-07-30" end req.headers = { **(req.headers || {}), **@async_request_client.get_headers, **(&.additional_headers || {}) }.compact unless .nil? || &.additional_query_parameters.nil? req.params = { **(&.additional_query_parameters || {}) }.compact end req.body = { **(&.additional_body_parameters || {}), actuals: actuals, execution_id: execution_id, external_id: external_id }.compact req.url "#{@async_request_client.get_url(environment: Predict, request_options: )}/v1/submit-workflow-execution-actuals" end end |