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.
443 lines
12 KiB
C++
443 lines
12 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.
|
|
*/
|
|
|
|
/*
|
|
* Provider.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_Provider_H_
|
|
#define HANZO_MODEL_Provider_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/model/Agent_McpTools.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class Agent_McpTools;
|
|
|
|
|
|
class Provider
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
Provider();
|
|
virtual ~Provider();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// Provider members
|
|
|
|
|
|
utility::string_t getApiVersion() const;
|
|
bool apiVersionIsSet() const;
|
|
void unsetApiVersion();
|
|
void setApiVersion(const utility::string_t& value);
|
|
|
|
utility::string_t getAsset() const;
|
|
bool assetIsSet() const;
|
|
void unsetAsset();
|
|
void setAsset(const utility::string_t& value);
|
|
|
|
utility::string_t getBrowserUrl() const;
|
|
bool browserUrlIsSet() const;
|
|
void unsetBrowserUrl();
|
|
void setBrowserUrl(const utility::string_t& value);
|
|
|
|
utility::string_t getCategory() const;
|
|
bool categoryIsSet() const;
|
|
void unsetCategory();
|
|
void setCategory(const utility::string_t& value);
|
|
|
|
utility::string_t getChain() const;
|
|
bool chainIsSet() const;
|
|
void unsetChain();
|
|
void setChain(const utility::string_t& value);
|
|
|
|
utility::string_t getClientId() const;
|
|
bool clientIdIsSet() const;
|
|
void unsetClientId();
|
|
void setClientId(const utility::string_t& value);
|
|
|
|
utility::string_t getClientSecret() const;
|
|
bool clientSecretIsSet() const;
|
|
void unsetClientSecret();
|
|
void setClientSecret(const utility::string_t& value);
|
|
|
|
utility::string_t getCompatibleProvider() const;
|
|
bool compatibleProviderIsSet() const;
|
|
void unsetCompatibleProvider();
|
|
void setCompatibleProvider(const utility::string_t& value);
|
|
|
|
utility::string_t getConfigText() const;
|
|
bool configTextIsSet() const;
|
|
void unsetConfigText();
|
|
void setConfigText(const utility::string_t& value);
|
|
|
|
utility::string_t getContractMethod() const;
|
|
bool contractMethodIsSet() const;
|
|
void unsetContractMethod();
|
|
void setContractMethod(const utility::string_t& value);
|
|
|
|
utility::string_t getContractName() const;
|
|
bool contractNameIsSet() const;
|
|
void unsetContractName();
|
|
void setContractName(const utility::string_t& value);
|
|
|
|
utility::string_t getCreatedTime() const;
|
|
bool createdTimeIsSet() const;
|
|
void unsetCreatedTime();
|
|
void setCreatedTime(const utility::string_t& value);
|
|
|
|
utility::string_t getCurrency() const;
|
|
bool currencyIsSet() const;
|
|
void unsetCurrency();
|
|
void setCurrency(const utility::string_t& value);
|
|
|
|
utility::string_t getDisplayName() const;
|
|
bool displayNameIsSet() const;
|
|
void unsetDisplayName();
|
|
void setDisplayName(const utility::string_t& value);
|
|
|
|
bool isEnableThinking() const;
|
|
bool enableThinkingIsSet() const;
|
|
void unsetEnableThinking();
|
|
void setEnableThinking(bool value);
|
|
|
|
utility::string_t getErrorText() const;
|
|
bool errorTextIsSet() const;
|
|
void unsetErrorText();
|
|
void setErrorText(const utility::string_t& value);
|
|
|
|
utility::string_t getFlavor() const;
|
|
bool flavorIsSet() const;
|
|
void unsetFlavor();
|
|
void setFlavor(const utility::string_t& value);
|
|
|
|
double getFrequencyPenalty() const;
|
|
bool frequencyPenaltyIsSet() const;
|
|
void unsetFrequencyPenalty();
|
|
void setFrequencyPenalty(double value);
|
|
|
|
double getInputPricePerThousandTokens() const;
|
|
bool inputPricePerThousandTokensIsSet() const;
|
|
void unsetInputPricePerThousandTokens();
|
|
void setInputPricePerThousandTokens(double value);
|
|
|
|
bool isIsDefault() const;
|
|
bool isDefaultIsSet() const;
|
|
void unsetIsDefault();
|
|
void setIsDefault(bool value);
|
|
|
|
bool isIsRemote() const;
|
|
bool isRemoteIsSet() const;
|
|
void unsetIsRemote();
|
|
void setIsRemote(bool value);
|
|
|
|
std::vector<std::shared_ptr<Agent_McpTools>> getMcpTools() const;
|
|
bool mcpToolsIsSet() const;
|
|
void unsetMcpTools();
|
|
void setMcpTools(const std::vector<std::shared_ptr<Agent_McpTools>>& value);
|
|
|
|
utility::string_t getName() const;
|
|
bool nameIsSet() const;
|
|
void unsetName();
|
|
void setName(const utility::string_t& value);
|
|
|
|
utility::string_t getNetwork() const;
|
|
bool networkIsSet() const;
|
|
void unsetNetwork();
|
|
void setNetwork(const utility::string_t& value);
|
|
|
|
double getOutputPricePerThousandTokens() const;
|
|
bool outputPricePerThousandTokensIsSet() const;
|
|
void unsetOutputPricePerThousandTokens();
|
|
void setOutputPricePerThousandTokens(double value);
|
|
|
|
utility::string_t getOwner() const;
|
|
bool ownerIsSet() const;
|
|
void unsetOwner();
|
|
void setOwner(const utility::string_t& value);
|
|
|
|
double getPresencePenalty() const;
|
|
bool presencePenaltyIsSet() const;
|
|
void unsetPresencePenalty();
|
|
void setPresencePenalty(double value);
|
|
|
|
utility::string_t getProviderKey() const;
|
|
bool providerKeyIsSet() const;
|
|
void unsetProviderKey();
|
|
void setProviderKey(const utility::string_t& value);
|
|
|
|
utility::string_t getProviderUrl() const;
|
|
bool providerUrlIsSet() const;
|
|
void unsetProviderUrl();
|
|
void setProviderUrl(const utility::string_t& value);
|
|
|
|
utility::string_t getRawText() const;
|
|
bool rawTextIsSet() const;
|
|
void unsetRawText();
|
|
void setRawText(const utility::string_t& value);
|
|
|
|
utility::string_t getRegion() const;
|
|
bool regionIsSet() const;
|
|
void unsetRegion();
|
|
void setRegion(const utility::string_t& value);
|
|
|
|
utility::string_t getResultSummary() const;
|
|
bool resultSummaryIsSet() const;
|
|
void unsetResultSummary();
|
|
void setResultSummary(const utility::string_t& value);
|
|
|
|
utility::string_t getRunner() const;
|
|
bool runnerIsSet() const;
|
|
void unsetRunner();
|
|
void setRunner(const utility::string_t& value);
|
|
|
|
utility::string_t getSignCert() const;
|
|
bool signCertIsSet() const;
|
|
void unsetSignCert();
|
|
void setSignCert(const utility::string_t& value);
|
|
|
|
utility::string_t getSignKey() const;
|
|
bool signKeyIsSet() const;
|
|
void unsetSignKey();
|
|
void setSignKey(const utility::string_t& value);
|
|
|
|
utility::string_t getState() const;
|
|
bool stateIsSet() const;
|
|
void unsetState();
|
|
void setState(const utility::string_t& value);
|
|
|
|
utility::string_t getSubType() const;
|
|
bool subTypeIsSet() const;
|
|
void unsetSubType();
|
|
void setSubType(const utility::string_t& value);
|
|
|
|
utility::string_t getTarget() const;
|
|
bool targetIsSet() const;
|
|
void unsetTarget();
|
|
void setTarget(const utility::string_t& value);
|
|
|
|
utility::string_t getTargetMode() const;
|
|
bool targetModeIsSet() const;
|
|
void unsetTargetMode();
|
|
void setTargetMode(const utility::string_t& value);
|
|
|
|
double getTemperature() const;
|
|
bool temperatureIsSet() const;
|
|
void unsetTemperature();
|
|
void setTemperature(double value);
|
|
|
|
utility::string_t getTestContent() const;
|
|
bool testContentIsSet() const;
|
|
void unsetTestContent();
|
|
void setTestContent(const utility::string_t& value);
|
|
|
|
utility::string_t getText() const;
|
|
bool textIsSet() const;
|
|
void unsetText();
|
|
void setText(const utility::string_t& value);
|
|
|
|
int32_t getTopK() const;
|
|
bool topKIsSet() const;
|
|
void unsetTopK();
|
|
void setTopK(int32_t value);
|
|
|
|
double getTopP() const;
|
|
bool topPIsSet() const;
|
|
void unsetTopP();
|
|
void setTopP(double value);
|
|
|
|
utility::string_t getType() const;
|
|
bool typeIsSet() const;
|
|
void unsetType();
|
|
void setType(const utility::string_t& value);
|
|
|
|
utility::string_t getUserCert() const;
|
|
bool userCertIsSet() const;
|
|
void unsetUserCert();
|
|
void setUserCert(const utility::string_t& value);
|
|
|
|
utility::string_t getUserKey() const;
|
|
bool userKeyIsSet() const;
|
|
void unsetUserKey();
|
|
void setUserKey(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_ApiVersion;
|
|
bool m_ApiVersionIsSet;
|
|
|
|
utility::string_t m_Asset;
|
|
bool m_AssetIsSet;
|
|
|
|
utility::string_t m_BrowserUrl;
|
|
bool m_BrowserUrlIsSet;
|
|
|
|
utility::string_t m_Category;
|
|
bool m_CategoryIsSet;
|
|
|
|
utility::string_t m_Chain;
|
|
bool m_ChainIsSet;
|
|
|
|
utility::string_t m_ClientId;
|
|
bool m_ClientIdIsSet;
|
|
|
|
utility::string_t m_ClientSecret;
|
|
bool m_ClientSecretIsSet;
|
|
|
|
utility::string_t m_CompatibleProvider;
|
|
bool m_CompatibleProviderIsSet;
|
|
|
|
utility::string_t m_ConfigText;
|
|
bool m_ConfigTextIsSet;
|
|
|
|
utility::string_t m_ContractMethod;
|
|
bool m_ContractMethodIsSet;
|
|
|
|
utility::string_t m_ContractName;
|
|
bool m_ContractNameIsSet;
|
|
|
|
utility::string_t m_CreatedTime;
|
|
bool m_CreatedTimeIsSet;
|
|
|
|
utility::string_t m_Currency;
|
|
bool m_CurrencyIsSet;
|
|
|
|
utility::string_t m_DisplayName;
|
|
bool m_DisplayNameIsSet;
|
|
|
|
bool m_EnableThinking;
|
|
bool m_EnableThinkingIsSet;
|
|
|
|
utility::string_t m_ErrorText;
|
|
bool m_ErrorTextIsSet;
|
|
|
|
utility::string_t m_Flavor;
|
|
bool m_FlavorIsSet;
|
|
|
|
double m_FrequencyPenalty;
|
|
bool m_FrequencyPenaltyIsSet;
|
|
|
|
double m_InputPricePerThousandTokens;
|
|
bool m_InputPricePerThousandTokensIsSet;
|
|
|
|
bool m_IsDefault;
|
|
bool m_IsDefaultIsSet;
|
|
|
|
bool m_IsRemote;
|
|
bool m_IsRemoteIsSet;
|
|
|
|
std::vector<std::shared_ptr<Agent_McpTools>> m_McpTools;
|
|
bool m_McpToolsIsSet;
|
|
|
|
utility::string_t m_Name;
|
|
bool m_NameIsSet;
|
|
|
|
utility::string_t m_Network;
|
|
bool m_NetworkIsSet;
|
|
|
|
double m_OutputPricePerThousandTokens;
|
|
bool m_OutputPricePerThousandTokensIsSet;
|
|
|
|
utility::string_t m_Owner;
|
|
bool m_OwnerIsSet;
|
|
|
|
double m_PresencePenalty;
|
|
bool m_PresencePenaltyIsSet;
|
|
|
|
utility::string_t m_ProviderKey;
|
|
bool m_ProviderKeyIsSet;
|
|
|
|
utility::string_t m_ProviderUrl;
|
|
bool m_ProviderUrlIsSet;
|
|
|
|
utility::string_t m_RawText;
|
|
bool m_RawTextIsSet;
|
|
|
|
utility::string_t m_Region;
|
|
bool m_RegionIsSet;
|
|
|
|
utility::string_t m_ResultSummary;
|
|
bool m_ResultSummaryIsSet;
|
|
|
|
utility::string_t m_Runner;
|
|
bool m_RunnerIsSet;
|
|
|
|
utility::string_t m_SignCert;
|
|
bool m_SignCertIsSet;
|
|
|
|
utility::string_t m_SignKey;
|
|
bool m_SignKeyIsSet;
|
|
|
|
utility::string_t m_State;
|
|
bool m_StateIsSet;
|
|
|
|
utility::string_t m_SubType;
|
|
bool m_SubTypeIsSet;
|
|
|
|
utility::string_t m_Target;
|
|
bool m_TargetIsSet;
|
|
|
|
utility::string_t m_TargetMode;
|
|
bool m_TargetModeIsSet;
|
|
|
|
double m_Temperature;
|
|
bool m_TemperatureIsSet;
|
|
|
|
utility::string_t m_TestContent;
|
|
bool m_TestContentIsSet;
|
|
|
|
utility::string_t m_Text;
|
|
bool m_TextIsSet;
|
|
|
|
int32_t m_TopK;
|
|
bool m_TopKIsSet;
|
|
|
|
double m_TopP;
|
|
bool m_TopPIsSet;
|
|
|
|
utility::string_t m_Type;
|
|
bool m_TypeIsSet;
|
|
|
|
utility::string_t m_UserCert;
|
|
bool m_UserCertIsSet;
|
|
|
|
utility::string_t m_UserKey;
|
|
bool m_UserKeyIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_Provider_H_ */
|