Files
zeekay 83d7ffa4d7 Regenerate against the current cloud document
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.
2026-09-01 02:22:09 -07:00

186 lines
6.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.
*/
/*
* CreateAgentIn.h
*
*
*/
#ifndef HANZO_MODEL_CreateAgentIn_H_
#define HANZO_MODEL_CreateAgentIn_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
#include <vector>
namespace hanzo {
namespace model {
class CreateAgentIn
: public ModelBase
{
public:
CreateAgentIn();
virtual ~CreateAgentIn();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// CreateAgentIn members
/// <summary>
/// Avatar and Emoji are how the agent APPEARS. An image wins when both are given — it is the thing somebody made — and both empty leaves the agent drawn as its initial. Validated by iam/pkg/schema, the same rule a person&#39;s avatar passes, so the 96 KiB bound and the accepted URL forms are stated once for every subject that has a face.
/// </summary>
utility::string_t getAvatar() const;
bool avatarIsSet() const;
void unsetAvatar();
void setAvatar(const utility::string_t& value);
/// <summary>
/// ComputeRef optionally binds this bot to a visor machine. Opaque here, bounded at 256 characters, and not resolved — this package stores the reference and the binding&#39;s lifecycle belongs elsewhere.
/// </summary>
utility::string_t getComputeRef() const;
bool computeRefIsSet() const;
void unsetComputeRef();
void setComputeRef(const utility::string_t& value);
/// <summary>
/// Description is the one line published as the description of the &#x60;agent_&lt;name&gt;&#x60; tool, which is how another agent decides whether to call this one. Optional, and worth writing for exactly that reason.
/// </summary>
utility::string_t getDescription() const;
bool descriptionIsSet() const;
void unsetDescription();
void setDescription(const utility::string_t& value);
/// <summary>
/// Emoji is the single glyph shown when there is no image. An image WINS when both are given — it is the thing somebody made — and both empty leaves the agent drawn as its initial.
/// </summary>
utility::string_t getEmoji() const;
bool emojiIsSet() const;
void unsetEmoji();
void setEmoji(const utility::string_t& value);
/// <summary>
/// ExecutionMode is one-shot or long-running. Empty takes one-shot, which runs only when something POSTs to it. long-running additionally requires Schedule, and counts against a per-org cap that answers 409 when it is full.
/// </summary>
utility::string_t getExecutionMode() const;
bool executionModeIsSet() const;
void unsetExecutionMode();
void setExecutionMode(const utility::string_t& value);
/// <summary>
/// Instructions is the system prompt, up to 32 KiB, stored verbatim. This is what the model reads; Description is what other CALLERS read.
/// </summary>
utility::string_t getInstructions() const;
bool instructionsIsSet() const;
void unsetInstructions();
void setInstructions(const utility::string_t& value);
/// <summary>
/// Model names the model to run on. Omit it to take the deployment&#39;s configured default; name one and it is checked against the gateway&#39;s served catalogue here, so a model this deployment cannot serve is refused now rather than at the first run. Stored under our own name for it, whatever spelling arrives.
/// </summary>
utility::string_t getModel() const;
bool modelIsSet() const;
void unsetModel();
void setModel(const utility::string_t& value);
/// <summary>
/// Name is the agent&#39;s org-unique handle and the only required field. It must match ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$, and a name already taken in this org is a 409 rather than an overwrite. It is permanent: no update route moves it.
/// </summary>
utility::string_t getName() const;
bool nameIsSet() const;
void unsetName();
void setName(const utility::string_t& value);
/// <summary>
/// Schedule is the 5-field cron a long-running agent fires on, parsed here so a bad expression is a 400 and not an agent that silently never runs. Required with long-running; DISCARDED for one-shot rather than stored unused.
/// </summary>
utility::string_t getSchedule() const;
bool scheduleIsSet() const;
void unsetSchedule();
void setSchedule(const utility::string_t& value);
/// <summary>
/// ServiceAccountID optionally names the IAM agent service account (&lt;org&gt;-&lt;agent&gt;) a scheduled run should be billed AS, so an autonomous run is attributable to a principal rather than only to the org. Same 256-character bound, also unresolved here.
/// </summary>
utility::string_t getServiceAccountId() const;
bool serviceAccountIdIsSet() const;
void unsetServiceAccountId();
void setServiceAccountId(const utility::string_t& value);
/// <summary>
/// Tools are the tool names this agent may call. Omitted or empty grants NONE — that default is the agent&#39;s authority and is not widened anywhere. The single entry \&quot;*\&quot; means whatever the fleet&#39;s MCP server serves at the time of each run.
/// </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_Name;
bool m_NameIsSet;
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_CreateAgentIn_H_ */