TT Client Library 1.0.0
C++ library for Tandem Tales clients.
Loading...
Searching...
No Matches
Report.h
1#pragma once
2
3#include <tt/io/Message.h>
4
5#ifndef REPORT_H
6#define REPORT_H
7
8namespace tt {
16 class Report : public Message {
17 public:
19 std::string item;
20
22 std::string value;
23
28 std::string comment;
29
37 Report(const std::string& item, const std::string& value, const std::string& comment);
38
39 Report() {}
40
41 std::string toString() const override;
42
43 std::string type() const override {
44 return "Report";
45 }
46 };
47
48 void from_json(const nlohmann::json& j, Report& msg);
49 void to_json(nlohmann::json& j, const Report& msg);
50}
51
52#endif
Message()
Constructs a message.
Definition Message.h:32
std::string comment
A comment provided by the agent explaining their answer, or empty if the question does not allow comm...
Definition Report.h:28
std::string item
The name or ID of the survey question.
Definition Report.h:19
Report(const std::string &item, const std::string &value, const std::string &comment)
Constructs a new report message.
Definition Report.cpp:5
std::string type() const override
Type used for JSON deserialization.
Definition Report.h:43
std::string toString() const override
Returns a string representation of this object.
Definition Report.cpp:10
std::string value
The answer the agent gives to the survey question.
Definition Report.h:22
Tandem Tales is a platform that enables short, paired storytelling exercises between two agents over ...
Definition Client.h:22