mirror of
https://github.com/hanzo-cpp/sdk.git
synced 2026-11-20 19:55:32 +00:00
The lock sat at 574d1f1d while the product moved on. The team surface stopped at rooms — no messages path, no way to open one — so anything built on this client had to reach past it with its own HTTP calls, which is the duplication a generated client exists to prevent.
186 lines
6.0 KiB
C++
186 lines
6.0 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.
|
|
*/
|
|
|
|
/*
|
|
* UpdateAgentIn.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_UpdateAgentIn_H_
|
|
#define HANZO_MODEL_UpdateAgentIn_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class UpdateAgentIn
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
UpdateAgentIn();
|
|
virtual ~UpdateAgentIn();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// UpdateAgentIn members
|
|
|
|
|
|
/// <summary>
|
|
/// Avatar and Emoji re-draw the agent. Sending either replaces the pair, so setting an image clears a glyph and \"\" for both goes back to the initial — there is no state where a row holds two answers.
|
|
/// </summary>
|
|
utility::string_t getAvatar() const;
|
|
bool avatarIsSet() const;
|
|
void unsetAvatar();
|
|
void setAvatar(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// ComputeRef re-binds (or, with \"\", unbinds) the visor machine. Opaque here.
|
|
/// </summary>
|
|
utility::string_t getComputeRef() const;
|
|
bool computeRefIsSet() const;
|
|
void unsetComputeRef();
|
|
void setComputeRef(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Description replaces the line other agents read in the tool catalogue.
|
|
/// </summary>
|
|
utility::string_t getDescription() const;
|
|
bool descriptionIsSet() const;
|
|
void unsetDescription();
|
|
void setDescription(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Emoji re-draws the agent as a glyph. Sending either of the pair replaces BOTH, so setting a glyph clears an image and \"\" for both goes back to the initial — there is no state where a row holds two answers.
|
|
/// </summary>
|
|
utility::string_t getEmoji() const;
|
|
bool emojiIsSet() const;
|
|
void unsetEmoji();
|
|
void setEmoji(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// ExecutionMode switches between one-shot and long-running. The RESULTING mode+schedule are validated together, so switching to long-running without a stored or supplied cron is refused rather than accepted into an agent the scheduler would skip forever. A switch INTO long-running counts against the per-org cap and can be a 409.
|
|
/// </summary>
|
|
utility::string_t getExecutionMode() const;
|
|
bool executionModeIsSet() const;
|
|
void unsetExecutionMode();
|
|
void setExecutionMode(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Instructions replaces the system prompt whole, up to 32 KiB. There is no append: a prompt is one text, and sending \"\" clears it.
|
|
/// </summary>
|
|
utility::string_t getInstructions() const;
|
|
bool instructionsIsSet() const;
|
|
void unsetInstructions();
|
|
void setInstructions(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Model re-points the agent at another model, checked against the gateway's served catalogue exactly as create checks it. Empty STRING is refused — say nothing to keep the current one. Past runs keep the model that served them.
|
|
/// </summary>
|
|
utility::string_t getModel() const;
|
|
bool modelIsSet() const;
|
|
void unsetModel();
|
|
void setModel(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Ref is the agent to update — its public id or org-unique name, from the path.
|
|
/// </summary>
|
|
utility::string_t getRef() const;
|
|
bool refIsSet() const;
|
|
void unsetRef();
|
|
void setRef(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Schedule replaces the cron. It is validated against the mode this update leaves behind, and dropped if that mode is one-shot.
|
|
/// </summary>
|
|
utility::string_t getSchedule() const;
|
|
bool scheduleIsSet() const;
|
|
void unsetSchedule();
|
|
void setSchedule(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// ServiceAccountID re-points (or, with \"\", clears) the IAM service account a scheduled run is billed as. Clearing it puts that spend back on the org.
|
|
/// </summary>
|
|
utility::string_t getServiceAccountId() const;
|
|
bool serviceAccountIdIsSet() const;
|
|
void unsetServiceAccountId();
|
|
void setServiceAccountId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Tools replaces the whole allow-list, it does not add to it. Sending [] takes every tool away, which is the only way to say that.
|
|
/// </summary>
|
|
std::vector<utility::string_t> getTools() const;
|
|
bool toolsIsSet() const;
|
|
void unsetTools();
|
|
void setTools(const std::vector<utility::string_t>& value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_Avatar;
|
|
bool m_AvatarIsSet;
|
|
|
|
utility::string_t m_ComputeRef;
|
|
bool m_ComputeRefIsSet;
|
|
|
|
utility::string_t m_Description;
|
|
bool m_DescriptionIsSet;
|
|
|
|
utility::string_t m_Emoji;
|
|
bool m_EmojiIsSet;
|
|
|
|
utility::string_t m_ExecutionMode;
|
|
bool m_ExecutionModeIsSet;
|
|
|
|
utility::string_t m_Instructions;
|
|
bool m_InstructionsIsSet;
|
|
|
|
utility::string_t m_Model;
|
|
bool m_ModelIsSet;
|
|
|
|
utility::string_t m_Ref;
|
|
bool m_RefIsSet;
|
|
|
|
utility::string_t m_Schedule;
|
|
bool m_ScheduleIsSet;
|
|
|
|
utility::string_t m_ServiceAccountId;
|
|
bool m_ServiceAccountIdIsSet;
|
|
|
|
std::vector<utility::string_t> m_Tools;
|
|
bool m_ToolsIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_UpdateAgentIn_H_ */
|