1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
* 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
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateAgentIn {
/// ComputeRef re-binds (or, with \"\", unbinds) the visor machine. Opaque here.
#[serde(rename = "computeRef", skip_serializing_if = "Option::is_none")]
pub compute_ref: Option<String>,
/// Description replaces the line other agents read in the tool catalogue.
#[serde(rename = "description", skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
/// 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.
#[serde(rename = "executionMode", skip_serializing_if = "Option::is_none")]
pub execution_mode: Option<String>,
/// Instructions replaces the system prompt whole, up to 32 KiB. There is no append: a prompt is one text, and sending \"\" clears it.
#[serde(rename = "instructions", skip_serializing_if = "Option::is_none")]
pub instructions: Option<String>,
/// 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.
#[serde(rename = "model", skip_serializing_if = "Option::is_none")]
pub model: Option<String>,
/// Ref is the agent to update — its public id or org-unique name, from the path.
#[serde(rename = "ref", skip_serializing_if = "Option::is_none")]
pub r#ref: Option<String>,
/// Schedule replaces the cron. It is validated against the mode this update leaves behind, and dropped if that mode is one-shot.
#[serde(rename = "schedule", skip_serializing_if = "Option::is_none")]
pub schedule: Option<String>,
/// 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.
#[serde(rename = "serviceAccountId", skip_serializing_if = "Option::is_none")]
pub service_account_id: Option<String>,
/// 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.
#[serde(rename = "tools", skip_serializing_if = "Option::is_none")]
pub tools: Option<Vec<String>>,
}
impl UpdateAgentIn {
pub fn new() -> UpdateAgentIn {
UpdateAgentIn {
compute_ref: None,
description: None,
execution_mode: None,
instructions: None,
model: None,
r#ref: None,
schedule: None,
service_account_id: None,
tools: None,
}
}
}