pub struct AgentDraft {
pub input_transforms: Option<HashMap<String, Value>>,
pub tools: Option<Vec<HashMap<String, Value>>>,
}Expand description
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.
Fields§
§input_transforms: Option<HashMap<String, Value>>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.
tools: Option<Vec<HashMap<String, Value>>>Implementations§
Source§impl AgentDraft
impl AgentDraft
Sourcepub fn new() -> AgentDraft
pub fn new() -> 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.
Trait Implementations§
Source§impl Clone for AgentDraft
impl Clone for AgentDraft
Source§fn clone(&self) -> AgentDraft
fn clone(&self) -> AgentDraft
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more