mirror of
https://github.com/hanzo-cpp/sdk.git
synced 2026-11-20 19:55:32 +00:00
The projection these were generated from was a month old and predated the compute migration, so every one of them described /v1/visor — which the API serves at zero paths now. That is why a hand-written console client and a generated one had drifted the same way at the same time. No /v1/visor path survives here. The word still appears as a source-plane value and inside gvisor and supervisor, which are not this rename.
152 lines
4.1 KiB
C++
152 lines
4.1 KiB
C++
/**
|
|
* Hanzo Cloud API
|
|
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
|
|
*
|
|
* The version of the OpenAPI document: v1
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI-Generator 7.14.0.
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
/*
|
|
* ActionRecord.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_ActionRecord_H_
|
|
#define HANZO_MODEL_ActionRecord_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class ActionRecord
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
ActionRecord();
|
|
virtual ~ActionRecord();
|
|
|
|
/////////////////////////////////////////////
|
|
/// ModelBase overrides
|
|
|
|
void validate() override;
|
|
|
|
web::json::value toJson() const override;
|
|
bool fromJson(const web::json::value& json) override;
|
|
|
|
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
|
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// ActionRecord members
|
|
|
|
|
|
/// <summary>
|
|
/// Args is the JSON the tool was called with, recorded as TEXT exactly as sent — including whatever the AI drafted into it — so a run can be read back and reproduced. It is a string, not an object.
|
|
/// </summary>
|
|
utility::string_t getArgs() const;
|
|
bool argsIsSet() const;
|
|
void unsetArgs();
|
|
void setArgs(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// CreatedAt is when the run was recorded, as Unix seconds. The ledger is read newest-first on this column.
|
|
/// </summary>
|
|
int64_t getCreatedAt() const;
|
|
bool createdAtIsSet() const;
|
|
void unsetCreatedAt();
|
|
void setCreatedAt(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Err is why the run failed, when it did. Empty on a successful run.
|
|
/// </summary>
|
|
utility::string_t getErr() const;
|
|
bool errIsSet() const;
|
|
void unsetErr();
|
|
void setErr(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// ID identifies this one execution. The ledger is append-only, so an id is never reused and never updated.
|
|
/// </summary>
|
|
utility::string_t getId() const;
|
|
bool idIsSet() const;
|
|
void unsetId();
|
|
void setId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// OK is whether the tool ran to completion. It is the ledger's own verdict, not the tool's opinion of the outcome — a tool that succeeded at reporting bad news is ok.
|
|
/// </summary>
|
|
bool isOk() const;
|
|
bool okIsSet() const;
|
|
void unsetOk();
|
|
void setOk(bool value);
|
|
|
|
/// <summary>
|
|
/// Result is the tool's own answer, likewise recorded as JSON text. Present on a failed run too, where the tool answered but the answer was a refusal.
|
|
/// </summary>
|
|
utility::string_t getResult() const;
|
|
bool resultIsSet() const;
|
|
void unsetResult();
|
|
void setResult(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// StepID is the checklist step the Business AI was acting on.
|
|
/// </summary>
|
|
utility::string_t getStepId() const;
|
|
bool stepIdIsSet() const;
|
|
void unsetStepId();
|
|
void setStepId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Tool is the MCP tool that was dispatched, by name.
|
|
/// </summary>
|
|
utility::string_t getTool() const;
|
|
bool toolIsSet() const;
|
|
void unsetTool();
|
|
void setTool(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_Args;
|
|
bool m_ArgsIsSet;
|
|
|
|
int64_t m_CreatedAt;
|
|
bool m_CreatedAtIsSet;
|
|
|
|
utility::string_t m_Err;
|
|
bool m_ErrIsSet;
|
|
|
|
utility::string_t m_Id;
|
|
bool m_IdIsSet;
|
|
|
|
bool m_Ok;
|
|
bool m_OkIsSet;
|
|
|
|
utility::string_t m_Result;
|
|
bool m_ResultIsSet;
|
|
|
|
utility::string_t m_StepId;
|
|
bool m_StepIdIsSet;
|
|
|
|
utility::string_t m_Tool;
|
|
bool m_ToolIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_ActionRecord_H_ */
|