20#ifndef ORES_COMPUTE_MESSAGING_RESULT_PROTOCOL_HPP
21#define ORES_COMPUTE_MESSAGING_RESULT_PROTOCOL_HPP
26#include "ores.compute.api/domain/result.hpp"
28namespace ores::compute::messaging {
30struct list_results_request {
31 using response_type =
struct list_results_response;
32 static constexpr std::string_view nats_subject =
33 "compute.v1.results.list";
38struct list_results_response {
39 std::vector<ores::compute::domain::result> results;
40 int total_available_count = 0;
43struct submit_result_request {
44 using response_type =
struct submit_result_response;
45 static constexpr std::string_view nats_subject =
46 "compute.v1.results.submit";
47 std::string result_id;
49 std::string output_uri;
51 std::string error_message;
54struct submit_result_response {