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.
185 lines
4.5 KiB
C++
185 lines
4.5 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.
|
|
*/
|
|
|
|
/*
|
|
* LLMOverview.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_LLMOverview_H_
|
|
#define HANZO_MODEL_LLMOverview_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class LLMOverview
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
LLMOverview();
|
|
virtual ~LLMOverview();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// LLMOverview members
|
|
|
|
|
|
/// <summary>
|
|
/// Available is true whenever the ledger answered — including with no usage in the window, which is honest zeros rather than a missing lens.
|
|
/// </summary>
|
|
bool isAvailable() const;
|
|
bool availableIsSet() const;
|
|
void unsetAvailable();
|
|
void setAvailable(bool value);
|
|
|
|
/// <summary>
|
|
/// CompletionTokens is the output half of Tokens.
|
|
/// </summary>
|
|
int64_t getCompletionTokens() const;
|
|
bool completionTokensIsSet() const;
|
|
void unsetCompletionTokens();
|
|
void setCompletionTokens(int64_t value);
|
|
|
|
/// <summary>
|
|
/// ErrorRate is Errors/Requests, 0..1, rounded to three places. Zero when there were no requests.
|
|
/// </summary>
|
|
double getErrorRate() const;
|
|
bool errorRateIsSet() const;
|
|
void unsetErrorRate();
|
|
void setErrorRate(double value);
|
|
|
|
/// <summary>
|
|
/// Errors is how many of Requests failed.
|
|
/// </summary>
|
|
int64_t getErrors() const;
|
|
bool errorsIsSet() const;
|
|
void unsetErrors();
|
|
void setErrors(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Models is how many distinct models the org called.
|
|
/// </summary>
|
|
int64_t getModels() const;
|
|
bool modelsIsSet() const;
|
|
void unsetModels();
|
|
void setModels(int64_t value);
|
|
|
|
/// <summary>
|
|
/// PromptTokens is the input half of Tokens.
|
|
/// </summary>
|
|
int64_t getPromptTokens() const;
|
|
bool promptTokensIsSet() const;
|
|
void unsetPromptTokens();
|
|
void setPromptTokens(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Providers is how many distinct providers served them.
|
|
/// </summary>
|
|
int64_t getProviders() const;
|
|
bool providersIsSet() const;
|
|
void unsetProviders();
|
|
void setProviders(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Requests is how many LLM calls the org made in the window.
|
|
/// </summary>
|
|
int64_t getRequests() const;
|
|
bool requestsIsSet() const;
|
|
void unsetRequests();
|
|
void setRequests(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Source is the warehouse table the lens read.
|
|
/// </summary>
|
|
utility::string_t getSource() const;
|
|
bool sourceIsSet() const;
|
|
void unsetSource();
|
|
void setSource(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// SpendCents is what those calls cost, in cents.
|
|
/// </summary>
|
|
int64_t getSpendCents() const;
|
|
bool spendCentsIsSet() const;
|
|
void unsetSpendCents();
|
|
void setSpendCents(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Tokens is prompt plus completion tokens over those calls.
|
|
/// </summary>
|
|
int64_t getTokens() const;
|
|
bool tokensIsSet() const;
|
|
void unsetTokens();
|
|
void setTokens(int64_t value);
|
|
|
|
|
|
protected:
|
|
bool m_Available;
|
|
bool m_AvailableIsSet;
|
|
|
|
int64_t m_CompletionTokens;
|
|
bool m_CompletionTokensIsSet;
|
|
|
|
double m_ErrorRate;
|
|
bool m_ErrorRateIsSet;
|
|
|
|
int64_t m_Errors;
|
|
bool m_ErrorsIsSet;
|
|
|
|
int64_t m_Models;
|
|
bool m_ModelsIsSet;
|
|
|
|
int64_t m_PromptTokens;
|
|
bool m_PromptTokensIsSet;
|
|
|
|
int64_t m_Providers;
|
|
bool m_ProvidersIsSet;
|
|
|
|
int64_t m_Requests;
|
|
bool m_RequestsIsSet;
|
|
|
|
utility::string_t m_Source;
|
|
bool m_SourceIsSet;
|
|
|
|
int64_t m_SpendCents;
|
|
bool m_SpendCentsIsSet;
|
|
|
|
int64_t m_Tokens;
|
|
bool m_TokensIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_LLMOverview_H_ */
|