Files
sdk/include/hanzo/model/Ai_ResponsesResource.h
zeekay 2872fb75b8 Regenerate: the AI surface says what it answers
288 of hanzoai/ai's 294 operations now declare a response, against 1 before.
GET /v1/models, POST /v1/chat/completions, /v1/embeddings, /v1/messages —
every address a client actually calls — used to reach this client untyped,
because cloud's relay carried an operation's sentence and dropped the shapes
it named. It carries both now.

Fleet-wide the document goes from 69% to 81% of operations declaring what
comes back, which is where the ~208 new models here come from.
2026-08-28 15:54:28 -07:00

233 lines
6.2 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.
*/
/*
* Ai_ResponsesResource.h
*
*
*/
#ifndef HANZO_MODEL_Ai_ResponsesResource_H_
#define HANZO_MODEL_Ai_ResponsesResource_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include "hanzo/AnyType.h"
#include <cpprest/details/basic_types.h>
#include <map>
#include "hanzo/model/Ai_ResponsesTool.h"
#include "hanzo/model/Ai_ResponsesUsage.h"
#include <vector>
namespace hanzo {
namespace model {
class Ai_ResponsesTool;
class Ai_ResponsesUsage;
class Ai_ResponsesResource
: public ModelBase
{
public:
Ai_ResponsesResource();
virtual ~Ai_ResponsesResource();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// Ai_ResponsesResource members
int32_t getCreatedAt() const;
bool createdAtIsSet() const;
void unsetCreated_at();
void setCreatedAt(int32_t value);
std::shared_ptr<AnyType> getError() const;
bool errorIsSet() const;
void unsetError();
void setError(const std::shared_ptr<AnyType>& value);
utility::string_t getId() const;
bool idIsSet() const;
void unsetId();
void setId(const utility::string_t& value);
std::shared_ptr<AnyType> getIncompleteDetails() const;
bool incompleteDetailsIsSet() const;
void unsetIncomplete_details();
void setIncompleteDetails(const std::shared_ptr<AnyType>& value);
utility::string_t getInstructions() const;
bool instructionsIsSet() const;
void unsetInstructions();
void setInstructions(const utility::string_t& value);
int32_t getMaxOutputTokens() const;
bool maxOutputTokensIsSet() const;
void unsetMax_output_tokens();
void setMaxOutputTokens(int32_t value);
std::map<utility::string_t, utility::string_t> getMetadata() const;
bool metadataIsSet() const;
void unsetMetadata();
void setMetadata(const std::map<utility::string_t, utility::string_t>& value);
utility::string_t getModel() const;
bool modelIsSet() const;
void unsetModel();
void setModel(const utility::string_t& value);
utility::string_t getObject() const;
bool objectIsSet() const;
void unsetobject();
void setObject(const utility::string_t& value);
std::vector<std::shared_ptr<AnyType>> getOutput() const;
bool outputIsSet() const;
void unsetOutput();
void setOutput(const std::vector<std::shared_ptr<AnyType>>& value);
bool isParallelToolCalls() const;
bool parallelToolCallsIsSet() const;
void unsetParallel_tool_calls();
void setParallelToolCalls(bool value);
std::shared_ptr<AnyType> getPreviousResponseId() const;
bool previousResponseIdIsSet() const;
void unsetPrevious_response_id();
void setPreviousResponseId(const std::shared_ptr<AnyType>& value);
std::shared_ptr<AnyType> getReasoning() const;
bool reasoningIsSet() const;
void unsetReasoning();
void setReasoning(const std::shared_ptr<AnyType>& value);
utility::string_t getStatus() const;
bool statusIsSet() const;
void unsetStatus();
void setStatus(const utility::string_t& value);
bool isStore() const;
bool storeIsSet() const;
void unsetStore();
void setStore(bool value);
double getTemperature() const;
bool temperatureIsSet() const;
void unsetTemperature();
void setTemperature(double value);
std::shared_ptr<AnyType> getText() const;
bool textIsSet() const;
void unsetText();
void setText(const std::shared_ptr<AnyType>& value);
std::shared_ptr<AnyType> getToolChoice() const;
bool toolChoiceIsSet() const;
void unsetTool_choice();
void setToolChoice(const std::shared_ptr<AnyType>& value);
std::vector<std::shared_ptr<Ai_ResponsesTool>> getTools() const;
bool toolsIsSet() const;
void unsetTools();
void setTools(const std::vector<std::shared_ptr<Ai_ResponsesTool>>& value);
double getTopP() const;
bool topPIsSet() const;
void unsetTop_p();
void setTopP(double value);
std::shared_ptr<Ai_ResponsesUsage> getUsage() const;
bool usageIsSet() const;
void unsetUsage();
void setUsage(const std::shared_ptr<Ai_ResponsesUsage>& value);
protected:
int32_t m_Created_at;
bool m_Created_atIsSet;
boost::optional<std::shared_ptr<AnyType>> m_Error;
utility::string_t m_Id;
bool m_IdIsSet;
boost::optional<std::shared_ptr<AnyType>> m_Incomplete_details;
utility::string_t m_Instructions;
bool m_InstructionsIsSet;
int32_t m_Max_output_tokens;
bool m_Max_output_tokensIsSet;
std::map<utility::string_t, utility::string_t> m_Metadata;
bool m_MetadataIsSet;
utility::string_t m_Model;
bool m_ModelIsSet;
utility::string_t m_object;
bool m_objectIsSet;
std::vector<std::shared_ptr<AnyType>> m_Output;
bool m_OutputIsSet;
bool m_Parallel_tool_calls;
bool m_Parallel_tool_callsIsSet;
boost::optional<std::shared_ptr<AnyType>> m_Previous_response_id;
boost::optional<std::shared_ptr<AnyType>> m_Reasoning;
utility::string_t m_Status;
bool m_StatusIsSet;
bool m_Store;
bool m_StoreIsSet;
double m_Temperature;
bool m_TemperatureIsSet;
boost::optional<std::shared_ptr<AnyType>> m_Text;
boost::optional<std::shared_ptr<AnyType>> m_Tool_choice;
std::vector<std::shared_ptr<Ai_ResponsesTool>> m_Tools;
bool m_ToolsIsSet;
double m_Top_p;
bool m_Top_pIsSet;
std::shared_ptr<Ai_ResponsesUsage> m_Usage;
bool m_UsageIsSet;
};
}
}
#endif /* HANZO_MODEL_Ai_ResponsesResource_H_ */