pub struct CreateAgentRequest {
pub auth: UiAutomationAuth,
pub name: String,
pub template: String,
pub account: Option<String>,
pub container: ContainerAsk,
pub model: Option<String>,
pub route: RouteAsk,
pub user_instruction: String,
}Expand description
POST /api/v1/agent/create: a named agent made from a template, not a worker (Agents create).
Fields§
§auth: UiAutomationAuth§name: StringThe new agent’s name.
template: StringThe seeded template to make it from, by id or name.
account: Option<String>The account to link, by id or name/email; absent, the caller’s, or another signed-in one.
container: ContainerAsk§model: Option<String>The model, on the route (route); absent, the route’s default.
route: RouteAsk§user_instruction: StringThe user’s own words in this turn asking for it, verbatim; empty when the user didn’t ask.
Trait Implementations§
Source§impl Clone for CreateAgentRequest
impl Clone for CreateAgentRequest
Source§fn clone(&self) -> CreateAgentRequest
fn clone(&self) -> CreateAgentRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateAgentRequest
impl Debug for CreateAgentRequest
Source§impl<'de> Deserialize<'de> for CreateAgentRequest
impl<'de> Deserialize<'de> for CreateAgentRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CreateAgentRequest
impl RefUnwindSafe for CreateAgentRequest
impl Send for CreateAgentRequest
impl Sync for CreateAgentRequest
impl Unpin for CreateAgentRequest
impl UnsafeUnpin for CreateAgentRequest
impl UnwindSafe for CreateAgentRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more