/*
* Windmill API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.798.1
* Contact: contact@windmill.dev
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// AgentDraft : The brain and tools of an agent, as the flow editor holds them. Carried by the request and present exactly when the subject kind is `agent_draft` — the edits exist only in the editor — where it is the whole definition of what ran: the run goes through the same unlinked branch of the agent executor the editor's own test uses.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AgentDraft {
/// The agent's input transforms: provider, system prompt, output type and the rest. The message and attachments come from the case and override anything named here.
#[serde(rename = "input_transforms", skip_serializing_if = "Option::is_none")]
pub input_transforms: Option<std::collections::HashMap<String, serde_json::Value>>,
#[serde(rename = "tools", skip_serializing_if = "Option::is_none")]
pub tools: Option<Vec<std::collections::HashMap<String, serde_json::Value>>>,
}
impl AgentDraft {
/// The brain and tools of an agent, as the flow editor holds them. Carried by the request and present exactly when the subject kind is `agent_draft` — the edits exist only in the editor — where it is the whole definition of what ran: the run goes through the same unlinked branch of the agent executor the editor's own test uses.
pub fn new() -> AgentDraft {
AgentDraft {
input_transforms: None,
tools: None,
}
}
}