Size: 740 bytes.


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// cs/apps/trycopilot.ai/protos/prompt_driver.proto.hh
#ifndef CS_APPS_TRYCOPILOT_AI_PROTOS_PROMPT_DRIVER_PROTO_HH
#define CS_APPS_TRYCOPILOT_AI_PROTOS_PROMPT_DRIVER_PROTO_HH

#include <string>

#include "cs/net/proto/proto.hh"

namespace cs::apps::trycopilotai::protos {

// Prompt driver request.
DECLARE_PROTO(PromptDriverRequest) {
  // Prompt message text.
  std::string msg;
};

// Prompt driver response.
DECLARE_PROTO(PromptDriverResponse) {
  // Stdout content.
  std::string stdout_output;
  // Process exit code.
  int exit_code;
  // Success flag.
  bool ok;
  // Error message text.
  std::string error_message;
};

}  // namespace cs::apps::trycopilotai::protos

#endif  // CS_APPS_TRYCOPILOT_AI_PROTOS_PROMPT_DRIVER_PROTO_HH
v0 (commit) © 2025 @p13i.io | Load balancer proxied to: cs-code-viewer-3:8080 in 4ms.