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.
207 lines
5.8 KiB
C++
207 lines
5.8 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.
|
||
*/
|
||
|
||
/*
|
||
* LeaderRow.h
|
||
*
|
||
*
|
||
*/
|
||
|
||
#ifndef HANZO_MODEL_LeaderRow_H_
|
||
#define HANZO_MODEL_LeaderRow_H_
|
||
|
||
#include <boost/optional.hpp>
|
||
|
||
#include "hanzo/ModelBase.h"
|
||
|
||
#include <cpprest/details/basic_types.h>
|
||
|
||
namespace hanzo {
|
||
namespace model {
|
||
|
||
|
||
|
||
class LeaderRow
|
||
: public ModelBase
|
||
{
|
||
public:
|
||
LeaderRow();
|
||
virtual ~LeaderRow();
|
||
|
||
/////////////////////////////////////////////
|
||
/// 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;
|
||
|
||
|
||
/////////////////////////////////////////////
|
||
/// LeaderRow members
|
||
|
||
|
||
/// <summary>
|
||
/// CIHigh is the upper bound of that interval. Wilson rather than the normal approximation because the normal one produces bounds past 100 exactly where benchmark scores live — at 194/198 that is the top of the board, not a corner case.
|
||
/// </summary>
|
||
double getCiHigh() const;
|
||
bool ciHighIsSet() const;
|
||
void unsetCiHigh();
|
||
void setCiHigh(double value);
|
||
|
||
/// <summary>
|
||
/// CILow and CIHigh are the 95% Wilson interval on Measured, in percent. They are what makes the score comparable: at n=198 a 98% carries roughly ±2 points, so most differences at the top of a board are not distinguishable and a bare number implies a precision it does not have. Absent when there is no measurement.
|
||
/// </summary>
|
||
double getCiLow() const;
|
||
bool ciLowIsSet() const;
|
||
void unsetCiLow();
|
||
void setCiLow(double value);
|
||
|
||
/// <summary>
|
||
/// Claims is how many independent claims exist for this model on this benchmark. More than one means several sources reported it.
|
||
/// </summary>
|
||
int64_t getClaims() const;
|
||
bool claimsIsSet() const;
|
||
void unsetClaims();
|
||
void setClaims(int64_t value);
|
||
|
||
/// <summary>
|
||
/// published − measured (the arena signal)
|
||
/// </summary>
|
||
double getGap() const;
|
||
bool gapIsSet() const;
|
||
void unsetGap();
|
||
void setGap(double value);
|
||
|
||
/// <summary>
|
||
/// Mean is the unweighted average of every claim, which answers a different question from Published: what the field says on average, rather than what the vendor says about itself. With one claim the two are equal.
|
||
/// </summary>
|
||
double getMean() const;
|
||
bool meanIsSet() const;
|
||
void unsetMean();
|
||
void setMean(double value);
|
||
|
||
/// <summary>
|
||
/// hanzo-measured accuracy % (nil if unrun)
|
||
/// </summary>
|
||
double getMeasured() const;
|
||
bool measuredIsSet() const;
|
||
void unsetMeasured();
|
||
void setMeasured(double value);
|
||
|
||
/// <summary>
|
||
/// MeasuredAt is when the run behind Measured was recorded.
|
||
/// </summary>
|
||
utility::datetime getMeasuredAt() const;
|
||
bool measuredAtIsSet() const;
|
||
void unsetMeasuredAt();
|
||
void setMeasuredAt(const utility::datetime& value);
|
||
|
||
/// <summary>
|
||
/// the model this row scores
|
||
/// </summary>
|
||
utility::string_t getModel() const;
|
||
bool modelIsSet() const;
|
||
void unsetModel();
|
||
void setModel(const utility::string_t& value);
|
||
|
||
/// <summary>
|
||
/// coverage — NEVER compare across different n
|
||
/// </summary>
|
||
int64_t getN() const;
|
||
bool NIsSet() const;
|
||
void unsetn();
|
||
void setN(int64_t value);
|
||
|
||
/// <summary>
|
||
/// how the vendor scored their claim: single-attempt, pass@k or agentic
|
||
/// </summary>
|
||
utility::string_t getProtocol() const;
|
||
bool protocolIsSet() const;
|
||
void unsetProtocol();
|
||
void setProtocol(const utility::string_t& value);
|
||
|
||
/// <summary>
|
||
/// provider-claimed % (nil if none)
|
||
/// </summary>
|
||
double getPublished() const;
|
||
bool publishedIsSet() const;
|
||
void unsetPublished();
|
||
void setPublished(double value);
|
||
|
||
/// <summary>
|
||
/// Run names the measurement Measured came from, and MeasuredAt is when it ran. A score with no date is not a fact about a model, it is a fact about a model on a day — and models change, so the date is what makes the number checkable rather than merely quoted.
|
||
/// </summary>
|
||
utility::string_t getRun() const;
|
||
bool runIsSet() const;
|
||
void unsetRun();
|
||
void setRun(const utility::string_t& value);
|
||
|
||
/// <summary>
|
||
/// Spread is the distance between the highest and lowest of them, nil when there is only one. It is the disagreement AMONG sources, which a single Published number cannot show — signal in the same way the published-minus-measured gap is.
|
||
/// </summary>
|
||
double getSpread() const;
|
||
bool spreadIsSet() const;
|
||
void unsetSpread();
|
||
void setSpread(double value);
|
||
|
||
|
||
protected:
|
||
double m_CiHigh;
|
||
bool m_CiHighIsSet;
|
||
|
||
double m_CiLow;
|
||
bool m_CiLowIsSet;
|
||
|
||
int64_t m_Claims;
|
||
bool m_ClaimsIsSet;
|
||
|
||
double m_Gap;
|
||
bool m_GapIsSet;
|
||
|
||
double m_Mean;
|
||
bool m_MeanIsSet;
|
||
|
||
double m_Measured;
|
||
bool m_MeasuredIsSet;
|
||
|
||
utility::datetime m_MeasuredAt;
|
||
bool m_MeasuredAtIsSet;
|
||
|
||
utility::string_t m_Model;
|
||
bool m_ModelIsSet;
|
||
|
||
int64_t m_n;
|
||
bool m_nIsSet;
|
||
|
||
utility::string_t m_Protocol;
|
||
bool m_ProtocolIsSet;
|
||
|
||
double m_Published;
|
||
bool m_PublishedIsSet;
|
||
|
||
utility::string_t m_Run;
|
||
bool m_RunIsSet;
|
||
|
||
double m_Spread;
|
||
bool m_SpreadIsSet;
|
||
|
||
};
|
||
|
||
|
||
}
|
||
}
|
||
|
||
#endif /* HANZO_MODEL_LeaderRow_H_ */
|