#[non_exhaustive]pub struct RunBeginInput {Show 16 fields
pub org: Option<String>,
pub namespace: Option<String>,
pub agent: Option<String>,
pub user_id: Option<String>,
pub session_id: Option<String>,
pub run_id: Option<String>,
pub goal: String,
pub user_request: Option<String>,
pub expected_outcome: Option<String>,
pub environment: Option<String>,
pub model: Option<String>,
pub consumer: Option<String>,
pub role: Option<String>,
pub metadata: Option<HashMap<String, Value>>,
pub budget_usd: Option<f64>,
pub budget_seconds: Option<Integer>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.org: Option<String>§namespace: Option<String>§agent: Option<String>§user_id: Option<String>§session_id: Option<String>§run_id: Option<String>§goal: String§user_request: Option<String>§expected_outcome: Option<String>§environment: Option<String>§model: Option<String>§consumer: Option<String>§role: Option<String>§metadata: Option<HashMap<String, Value>>§budget_usd: Option<f64>§budget_seconds: Option<Integer>Implementations§
Source§impl RunBeginInput
impl RunBeginInput
pub fn new(goal: impl Into<String>) -> Self
pub fn org(self, org: impl Into<String>) -> Self
pub fn namespace(self, namespace: impl Into<String>) -> Self
pub fn agent(self, agent: impl Into<String>) -> Self
pub fn user_id(self, user_id: impl Into<String>) -> Self
pub fn session_id(self, session_id: impl Into<String>) -> Self
pub fn run_id(self, run_id: impl Into<String>) -> Self
pub fn user_request(self, user_request: impl Into<String>) -> Self
pub fn expected_outcome(self, expected_outcome: impl Into<String>) -> Self
pub fn environment(self, environment: impl Into<String>) -> Self
pub fn model(self, model: impl Into<String>) -> Self
pub fn consumer(self, consumer: impl Into<String>) -> Self
pub fn role(self, role: impl Into<String>) -> Self
pub fn metadata(self, metadata: HashMap<String, Value>) -> Self
pub fn budget_usd(self, budget_usd: f64) -> Self
pub fn budget_seconds(self, budget_seconds: impl Into<Integer>) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<RunBeginOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for RunBeginInput
impl Clone for RunBeginInput
Source§impl Debug for RunBeginInput
impl Debug for RunBeginInput
Source§impl<'de> Deserialize<'de> for RunBeginInput
impl<'de> Deserialize<'de> for RunBeginInput
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 PartialEq for RunBeginInput
impl PartialEq for RunBeginInput
Source§impl Serialize for RunBeginInput
impl Serialize for RunBeginInput
impl StructuralPartialEq for RunBeginInput
Auto Trait Implementations§
impl Forget for RunBeginInput
impl Freeze for RunBeginInput
impl Move for RunBeginInput
impl RefUnwindSafe for RunBeginInput
impl Send for RunBeginInput
impl Sync for RunBeginInput
impl Unpin for RunBeginInput
impl UnsafeUnpin for RunBeginInput
impl UnwindSafe for RunBeginInput
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