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.
456 lines
13 KiB
C++
456 lines
13 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.
|
|
*/
|
|
|
|
/*
|
|
* Store.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_Store_H_
|
|
#define HANZO_MODEL_Store_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/model/ExampleQuestion.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
#include "hanzo/model/Properties.h"
|
|
#include <map>
|
|
#include "hanzo/model/TreeFile.h"
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class ExampleQuestion;
|
|
class TreeFile;
|
|
class Properties;
|
|
|
|
|
|
class Store
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
Store();
|
|
virtual ~Store();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// Store members
|
|
|
|
|
|
utility::string_t getAgentProvider() const;
|
|
bool agentProviderIsSet() const;
|
|
void unsetAgentProvider();
|
|
void setAgentProvider(const utility::string_t& value);
|
|
|
|
utility::string_t getAvatar() const;
|
|
bool avatarIsSet() const;
|
|
void unsetAvatar();
|
|
void setAvatar(const utility::string_t& value);
|
|
|
|
std::vector<utility::string_t> getBuiltinTools() const;
|
|
bool builtinToolsIsSet() const;
|
|
void unsetBuiltinTools();
|
|
void setBuiltinTools(const std::vector<utility::string_t>& value);
|
|
|
|
int32_t getChatCount() const;
|
|
bool chatCountIsSet() const;
|
|
void unsetChatCount();
|
|
void setChatCount(int32_t value);
|
|
|
|
std::vector<utility::string_t> getChildModelProviders() const;
|
|
bool childModelProvidersIsSet() const;
|
|
void unsetChildModelProviders();
|
|
void setChildModelProviders(const std::vector<utility::string_t>& value);
|
|
|
|
std::vector<utility::string_t> getChildStores() const;
|
|
bool childStoresIsSet() const;
|
|
void unsetChildStores();
|
|
void setChildStores(const std::vector<utility::string_t>& value);
|
|
|
|
utility::string_t getCreatedTime() const;
|
|
bool createdTimeIsSet() const;
|
|
void unsetCreatedTime();
|
|
void setCreatedTime(const utility::string_t& value);
|
|
|
|
bool isDisableFileUpload() const;
|
|
bool disableFileUploadIsSet() const;
|
|
void unsetDisableFileUpload();
|
|
void setDisableFileUpload(bool value);
|
|
|
|
utility::string_t getDisplayName() const;
|
|
bool displayNameIsSet() const;
|
|
void unsetDisplayName();
|
|
void setDisplayName(const utility::string_t& value);
|
|
|
|
utility::string_t getEmbeddingProvider() const;
|
|
bool embeddingProviderIsSet() const;
|
|
void unsetEmbeddingProvider();
|
|
void setEmbeddingProvider(const utility::string_t& value);
|
|
|
|
bool isEnableTtsStreaming() const;
|
|
bool enableTtsStreamingIsSet() const;
|
|
void unsetEnableTtsStreaming();
|
|
void setEnableTtsStreaming(bool value);
|
|
|
|
std::vector<std::shared_ptr<ExampleQuestion>> getExampleQuestions() const;
|
|
bool exampleQuestionsIsSet() const;
|
|
void unsetExampleQuestions();
|
|
void setExampleQuestions(const std::vector<std::shared_ptr<ExampleQuestion>>& value);
|
|
|
|
utility::string_t getFaviconUrl() const;
|
|
bool faviconUrlIsSet() const;
|
|
void unsetFaviconUrl();
|
|
void setFaviconUrl(const utility::string_t& value);
|
|
|
|
std::shared_ptr<TreeFile> getFileTree() const;
|
|
bool fileTreeIsSet() const;
|
|
void unsetFileTree();
|
|
void setFileTree(const std::shared_ptr<TreeFile>& value);
|
|
|
|
utility::string_t getFooterHtml() const;
|
|
bool footerHtmlIsSet() const;
|
|
void unsetFooterHtml();
|
|
void setFooterHtml(const utility::string_t& value);
|
|
|
|
std::vector<utility::string_t> getForbiddenWords() const;
|
|
bool forbiddenWordsIsSet() const;
|
|
void unsetForbiddenWords();
|
|
void setForbiddenWords(const std::vector<utility::string_t>& value);
|
|
|
|
int32_t getFrequency() const;
|
|
bool frequencyIsSet() const;
|
|
void unsetFrequency();
|
|
void setFrequency(int32_t value);
|
|
|
|
bool isHideThinking() const;
|
|
bool hideThinkingIsSet() const;
|
|
void unsetHideThinking();
|
|
void setHideThinking(bool value);
|
|
|
|
utility::string_t getHtmlTitle() const;
|
|
bool htmlTitleIsSet() const;
|
|
void unsetHtmlTitle();
|
|
void setHtmlTitle(const utility::string_t& value);
|
|
|
|
utility::string_t getImageProvider() const;
|
|
bool imageProviderIsSet() const;
|
|
void unsetImageProvider();
|
|
void setImageProvider(const utility::string_t& value);
|
|
|
|
bool isIsDefault() const;
|
|
bool isDefaultIsSet() const;
|
|
void unsetIsDefault();
|
|
void setIsDefault(bool value);
|
|
|
|
int32_t getKnowledgeCount() const;
|
|
bool knowledgeCountIsSet() const;
|
|
void unsetKnowledgeCount();
|
|
void setKnowledgeCount(int32_t value);
|
|
|
|
int32_t getLimitMinutes() const;
|
|
bool limitMinutesIsSet() const;
|
|
void unsetLimitMinutes();
|
|
void setLimitMinutes(int32_t value);
|
|
|
|
utility::string_t getLogoUrl() const;
|
|
bool logoUrlIsSet() const;
|
|
void unsetLogoUrl();
|
|
void setLogoUrl(const utility::string_t& value);
|
|
|
|
int32_t getMemoryLimit() const;
|
|
bool memoryLimitIsSet() const;
|
|
void unsetMemoryLimit();
|
|
void setMemoryLimit(int32_t value);
|
|
|
|
int32_t getMessageCount() const;
|
|
bool messageCountIsSet() const;
|
|
void unsetMessageCount();
|
|
void setMessageCount(int32_t value);
|
|
|
|
utility::string_t getModelProvider() const;
|
|
bool modelProviderIsSet() const;
|
|
void unsetModelProvider();
|
|
void setModelProvider(const utility::string_t& value);
|
|
|
|
utility::string_t getName() const;
|
|
bool nameIsSet() const;
|
|
void unsetName();
|
|
void setName(const utility::string_t& value);
|
|
|
|
std::vector<utility::string_t> getNavItems() const;
|
|
bool navItemsIsSet() const;
|
|
void unsetNavItems();
|
|
void setNavItems(const std::vector<utility::string_t>& value);
|
|
|
|
utility::string_t getOwner() const;
|
|
bool ownerIsSet() const;
|
|
void unsetOwner();
|
|
void setOwner(const utility::string_t& value);
|
|
|
|
utility::string_t getPrompt() const;
|
|
bool promptIsSet() const;
|
|
void unsetPrompt();
|
|
void setPrompt(const utility::string_t& value);
|
|
|
|
std::map<utility::string_t, std::shared_ptr<Properties>> getPropertiesMap() const;
|
|
bool propertiesMapIsSet() const;
|
|
void unsetPropertiesMap();
|
|
void setPropertiesMap(const std::map<utility::string_t, std::shared_ptr<Properties>>& value);
|
|
|
|
utility::string_t getSearchProvider() const;
|
|
bool searchProviderIsSet() const;
|
|
void unsetSearchProvider();
|
|
void setSearchProvider(const utility::string_t& value);
|
|
|
|
bool isShowAutoRead() const;
|
|
bool showAutoReadIsSet() const;
|
|
void unsetShowAutoRead();
|
|
void setShowAutoRead(bool value);
|
|
|
|
utility::string_t getSpeechToTextProvider() const;
|
|
bool speechToTextProviderIsSet() const;
|
|
void unsetSpeechToTextProvider();
|
|
void setSpeechToTextProvider(const utility::string_t& value);
|
|
|
|
utility::string_t getSplitProvider() const;
|
|
bool splitProviderIsSet() const;
|
|
void unsetSplitProvider();
|
|
void setSplitProvider(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 getStorageProvider() const;
|
|
bool storageProviderIsSet() const;
|
|
void unsetStorageProvider();
|
|
void setStorageProvider(const utility::string_t& value);
|
|
|
|
utility::string_t getStorageSubpath() const;
|
|
bool storageSubpathIsSet() const;
|
|
void unsetStorageSubpath();
|
|
void setStorageSubpath(const utility::string_t& value);
|
|
|
|
int32_t getSuggestionCount() const;
|
|
bool suggestionCountIsSet() const;
|
|
void unsetSuggestionCount();
|
|
void setSuggestionCount(int32_t value);
|
|
|
|
utility::string_t getTextToSpeechProvider() const;
|
|
bool textToSpeechProviderIsSet() const;
|
|
void unsetTextToSpeechProvider();
|
|
void setTextToSpeechProvider(const utility::string_t& value);
|
|
|
|
utility::string_t getThemeColor() const;
|
|
bool themeColorIsSet() const;
|
|
void unsetThemeColor();
|
|
void setThemeColor(const utility::string_t& value);
|
|
|
|
utility::string_t getTitle() const;
|
|
bool titleIsSet() const;
|
|
void unsetTitle();
|
|
void setTitle(const utility::string_t& value);
|
|
|
|
utility::string_t getVectorStoreId() const;
|
|
bool vectorStoreIdIsSet() const;
|
|
void unsetVectorStoreId();
|
|
void setVectorStoreId(const utility::string_t& value);
|
|
|
|
std::vector<utility::string_t> getVectorStores() const;
|
|
bool vectorStoresIsSet() const;
|
|
void unsetVectorStores();
|
|
void setVectorStores(const std::vector<utility::string_t>& value);
|
|
|
|
utility::string_t getWelcome() const;
|
|
bool welcomeIsSet() const;
|
|
void unsetWelcome();
|
|
void setWelcome(const utility::string_t& value);
|
|
|
|
utility::string_t getWelcomeText() const;
|
|
bool welcomeTextIsSet() const;
|
|
void unsetWelcomeText();
|
|
void setWelcomeText(const utility::string_t& value);
|
|
|
|
utility::string_t getWelcomeTitle() const;
|
|
bool welcomeTitleIsSet() const;
|
|
void unsetWelcomeTitle();
|
|
void setWelcomeTitle(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_AgentProvider;
|
|
bool m_AgentProviderIsSet;
|
|
|
|
utility::string_t m_Avatar;
|
|
bool m_AvatarIsSet;
|
|
|
|
std::vector<utility::string_t> m_BuiltinTools;
|
|
bool m_BuiltinToolsIsSet;
|
|
|
|
int32_t m_ChatCount;
|
|
bool m_ChatCountIsSet;
|
|
|
|
std::vector<utility::string_t> m_ChildModelProviders;
|
|
bool m_ChildModelProvidersIsSet;
|
|
|
|
std::vector<utility::string_t> m_ChildStores;
|
|
bool m_ChildStoresIsSet;
|
|
|
|
utility::string_t m_CreatedTime;
|
|
bool m_CreatedTimeIsSet;
|
|
|
|
bool m_DisableFileUpload;
|
|
bool m_DisableFileUploadIsSet;
|
|
|
|
utility::string_t m_DisplayName;
|
|
bool m_DisplayNameIsSet;
|
|
|
|
utility::string_t m_EmbeddingProvider;
|
|
bool m_EmbeddingProviderIsSet;
|
|
|
|
bool m_EnableTtsStreaming;
|
|
bool m_EnableTtsStreamingIsSet;
|
|
|
|
std::vector<std::shared_ptr<ExampleQuestion>> m_ExampleQuestions;
|
|
bool m_ExampleQuestionsIsSet;
|
|
|
|
utility::string_t m_FaviconUrl;
|
|
bool m_FaviconUrlIsSet;
|
|
|
|
std::shared_ptr<TreeFile> m_FileTree;
|
|
bool m_FileTreeIsSet;
|
|
|
|
utility::string_t m_FooterHtml;
|
|
bool m_FooterHtmlIsSet;
|
|
|
|
std::vector<utility::string_t> m_ForbiddenWords;
|
|
bool m_ForbiddenWordsIsSet;
|
|
|
|
int32_t m_Frequency;
|
|
bool m_FrequencyIsSet;
|
|
|
|
bool m_HideThinking;
|
|
bool m_HideThinkingIsSet;
|
|
|
|
utility::string_t m_HtmlTitle;
|
|
bool m_HtmlTitleIsSet;
|
|
|
|
utility::string_t m_ImageProvider;
|
|
bool m_ImageProviderIsSet;
|
|
|
|
bool m_IsDefault;
|
|
bool m_IsDefaultIsSet;
|
|
|
|
int32_t m_KnowledgeCount;
|
|
bool m_KnowledgeCountIsSet;
|
|
|
|
int32_t m_LimitMinutes;
|
|
bool m_LimitMinutesIsSet;
|
|
|
|
utility::string_t m_LogoUrl;
|
|
bool m_LogoUrlIsSet;
|
|
|
|
int32_t m_MemoryLimit;
|
|
bool m_MemoryLimitIsSet;
|
|
|
|
int32_t m_MessageCount;
|
|
bool m_MessageCountIsSet;
|
|
|
|
utility::string_t m_ModelProvider;
|
|
bool m_ModelProviderIsSet;
|
|
|
|
utility::string_t m_Name;
|
|
bool m_NameIsSet;
|
|
|
|
std::vector<utility::string_t> m_NavItems;
|
|
bool m_NavItemsIsSet;
|
|
|
|
utility::string_t m_Owner;
|
|
bool m_OwnerIsSet;
|
|
|
|
utility::string_t m_Prompt;
|
|
bool m_PromptIsSet;
|
|
|
|
std::map<utility::string_t, std::shared_ptr<Properties>> m_PropertiesMap;
|
|
bool m_PropertiesMapIsSet;
|
|
|
|
utility::string_t m_SearchProvider;
|
|
bool m_SearchProviderIsSet;
|
|
|
|
bool m_ShowAutoRead;
|
|
bool m_ShowAutoReadIsSet;
|
|
|
|
utility::string_t m_SpeechToTextProvider;
|
|
bool m_SpeechToTextProviderIsSet;
|
|
|
|
utility::string_t m_SplitProvider;
|
|
bool m_SplitProviderIsSet;
|
|
|
|
utility::string_t m_State;
|
|
bool m_StateIsSet;
|
|
|
|
utility::string_t m_StorageProvider;
|
|
bool m_StorageProviderIsSet;
|
|
|
|
utility::string_t m_StorageSubpath;
|
|
bool m_StorageSubpathIsSet;
|
|
|
|
int32_t m_SuggestionCount;
|
|
bool m_SuggestionCountIsSet;
|
|
|
|
utility::string_t m_TextToSpeechProvider;
|
|
bool m_TextToSpeechProviderIsSet;
|
|
|
|
utility::string_t m_ThemeColor;
|
|
bool m_ThemeColorIsSet;
|
|
|
|
utility::string_t m_Title;
|
|
bool m_TitleIsSet;
|
|
|
|
utility::string_t m_VectorStoreId;
|
|
bool m_VectorStoreIdIsSet;
|
|
|
|
std::vector<utility::string_t> m_VectorStores;
|
|
bool m_VectorStoresIsSet;
|
|
|
|
utility::string_t m_Welcome;
|
|
bool m_WelcomeIsSet;
|
|
|
|
utility::string_t m_WelcomeText;
|
|
bool m_WelcomeTextIsSet;
|
|
|
|
utility::string_t m_WelcomeTitle;
|
|
bool m_WelcomeTitleIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_Store_H_ */
|