pub struct CreateAgentBody {
pub adapter_type: String,
pub budget_monthly_cents: Option<i64>,
pub heartbeat_interval_secs: Option<i64>,
pub instructions_path: Option<String>,
pub model: String,
pub name: String,
pub role: String,
pub slug: String,
}Expand description
CreateAgentBody
JSON schema
{
"type": "object",
"required": [
"adapter_type",
"model",
"name",
"role",
"slug"
],
"properties": {
"adapter_type": {
"type": "string"
},
"budget_monthly_cents": {
"type": "integer",
"format": "int64"
},
"heartbeat_interval_secs": {
"type": "integer",
"format": "int64"
},
"instructions_path": {
"type": [
"string",
"null"
]
},
"model": {
"type": "string"
},
"name": {
"type": "string"
},
"role": {
"type": "string"
},
"slug": {
"type": "string"
}
}
}Fields§
§adapter_type: String§budget_monthly_cents: Option<i64>§heartbeat_interval_secs: Option<i64>§instructions_path: Option<String>§model: String§name: String§role: String§slug: StringImplementations§
Source§impl CreateAgentBody
impl CreateAgentBody
pub fn builder() -> CreateAgentBody
Trait Implementations§
Source§impl Clone for CreateAgentBody
impl Clone for CreateAgentBody
Source§fn clone(&self) -> CreateAgentBody
fn clone(&self) -> CreateAgentBody
Returns a duplicate of the value. Read more
1.0.0 · 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 CreateAgentBody
impl Debug for CreateAgentBody
Source§impl<'de> Deserialize<'de> for CreateAgentBody
impl<'de> Deserialize<'de> for CreateAgentBody
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
Source§impl From<&CreateAgentBody> for CreateAgentBody
impl From<&CreateAgentBody> for CreateAgentBody
Source§fn from(value: &CreateAgentBody) -> Self
fn from(value: &CreateAgentBody) -> Self
Converts to this type from the input type.
Source§impl From<CreateAgentBody> for CreateAgentBody
impl From<CreateAgentBody> for CreateAgentBody
Source§fn from(value: CreateAgentBody) -> Self
fn from(value: CreateAgentBody) -> Self
Converts to this type from the input type.
Source§impl Serialize for CreateAgentBody
impl Serialize for CreateAgentBody
Source§impl TryFrom<CreateAgentBody> for CreateAgentBody
impl TryFrom<CreateAgentBody> for CreateAgentBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CreateAgentBody) -> Result<Self, ConversionError>
fn try_from(value: CreateAgentBody) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CreateAgentBody
impl RefUnwindSafe for CreateAgentBody
impl Send for CreateAgentBody
impl Sync for CreateAgentBody
impl Unpin for CreateAgentBody
impl UnsafeUnpin for CreateAgentBody
impl UnwindSafe for CreateAgentBody
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