mirror of
https://github.com/hanzo-cpp/sdk.git
synced 2026-11-20 19:55:32 +00:00
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.
157 lines
4.2 KiB
C++
157 lines
4.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_RouterStats.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_Ai_RouterStats_H_
|
|
#define HANZO_MODEL_Ai_RouterStats_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/model/Ai_TaskStats.h"
|
|
#include "hanzo/model/Ai_CostStats.h"
|
|
#include "hanzo/model/Ai_QualityStats.h"
|
|
#include "hanzo/model/Ai_RetrainMeta.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <map>
|
|
#include "hanzo/model/Ai_StatsWindow.h"
|
|
#include "hanzo/model/Ai_ThroughputStats.h"
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class Ai_TaskStats;
|
|
class Ai_CostStats;
|
|
class Ai_QualityStats;
|
|
class Ai_RetrainMeta;
|
|
class Ai_ThroughputStats;
|
|
class Ai_StatsWindow;
|
|
|
|
|
|
class Ai_RouterStats
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
Ai_RouterStats();
|
|
virtual ~Ai_RouterStats();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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_RouterStats members
|
|
|
|
|
|
std::map<utility::string_t, int32_t> getByModel() const;
|
|
bool byModelIsSet() const;
|
|
void unsetBy_model();
|
|
void setByModel(std::map<utility::string_t, int32_t> value);
|
|
|
|
std::map<utility::string_t, int32_t> getBySource() const;
|
|
bool bySourceIsSet() const;
|
|
void unsetBy_source();
|
|
void setBySource(std::map<utility::string_t, int32_t> value);
|
|
|
|
std::map<utility::string_t, std::shared_ptr<Ai_TaskStats>> getByTask() const;
|
|
bool byTaskIsSet() const;
|
|
void unsetBy_task();
|
|
void setByTask(const std::map<utility::string_t, std::shared_ptr<Ai_TaskStats>>& value);
|
|
|
|
std::shared_ptr<Ai_CostStats> getCost() const;
|
|
bool costIsSet() const;
|
|
void unsetCost();
|
|
void setCost(const std::shared_ptr<Ai_CostStats>& value);
|
|
|
|
utility::string_t getOrg() const;
|
|
bool orgIsSet() const;
|
|
void unsetOrg();
|
|
void setOrg(const utility::string_t& value);
|
|
|
|
std::shared_ptr<Ai_QualityStats> getQuality() const;
|
|
bool qualityIsSet() const;
|
|
void unsetQuality();
|
|
void setQuality(const std::shared_ptr<Ai_QualityStats>& value);
|
|
|
|
std::shared_ptr<Ai_RetrainMeta> getRetrain() const;
|
|
bool retrainIsSet() const;
|
|
void unsetRetrain();
|
|
void setRetrain(const std::shared_ptr<Ai_RetrainMeta>& value);
|
|
|
|
utility::string_t getScope() const;
|
|
bool scopeIsSet() const;
|
|
void unsetScope();
|
|
void setScope(const utility::string_t& value);
|
|
|
|
std::shared_ptr<Ai_ThroughputStats> getThroughput() const;
|
|
bool throughputIsSet() const;
|
|
void unsetThroughput();
|
|
void setThroughput(const std::shared_ptr<Ai_ThroughputStats>& value);
|
|
|
|
std::shared_ptr<Ai_StatsWindow> getWindow() const;
|
|
bool windowIsSet() const;
|
|
void unsetWindow();
|
|
void setWindow(const std::shared_ptr<Ai_StatsWindow>& value);
|
|
|
|
|
|
protected:
|
|
std::map<utility::string_t, int32_t> m_By_model;
|
|
bool m_By_modelIsSet;
|
|
|
|
std::map<utility::string_t, int32_t> m_By_source;
|
|
bool m_By_sourceIsSet;
|
|
|
|
std::map<utility::string_t, std::shared_ptr<Ai_TaskStats>> m_By_task;
|
|
bool m_By_taskIsSet;
|
|
|
|
std::shared_ptr<Ai_CostStats> m_Cost;
|
|
bool m_CostIsSet;
|
|
|
|
utility::string_t m_Org;
|
|
bool m_OrgIsSet;
|
|
|
|
std::shared_ptr<Ai_QualityStats> m_Quality;
|
|
bool m_QualityIsSet;
|
|
|
|
std::shared_ptr<Ai_RetrainMeta> m_Retrain;
|
|
bool m_RetrainIsSet;
|
|
|
|
utility::string_t m_Scope;
|
|
bool m_ScopeIsSet;
|
|
|
|
std::shared_ptr<Ai_ThroughputStats> m_Throughput;
|
|
bool m_ThroughputIsSet;
|
|
|
|
std::shared_ptr<Ai_StatsWindow> m_Window;
|
|
bool m_WindowIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_Ai_RouterStats_H_ */
|