pub struct CreateMessageRequest {
pub method: MustBeStr<(s, a, (m, p), (l, i, n, g, char<'/'>, c), (r, e, a, t, e, M), (e, s, s, a, g, e))>,
pub params: CreateMessageRequestParams,
pub extra: Map<String, Value>,
}
Expand description
A request from the server to sample an LLM via the client. The client has full discretion over which model to select. The client should also inform the user before beginning sampling, to allow them to inspect the request (human in the loop) and decide whether to approve it.
Fields§
§method: MustBeStr<(s, a, (m, p), (l, i, n, g, char<'/'>, c), (r, e, a, t, e, M), (e, s, s, a, g, e))>
§params: CreateMessageRequestParams
§extra: Map<String, Value>
Additional parameters that are not part of the schema.
Trait Implementations§
Source§impl Clone for CreateMessageRequest
impl Clone for CreateMessageRequest
Source§fn clone(&self) -> CreateMessageRequest
fn clone(&self) -> CreateMessageRequest
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 CreateMessageRequest
impl Debug for CreateMessageRequest
Source§impl<'de> Deserialize<'de> for CreateMessageRequest
impl<'de> Deserialize<'de> for CreateMessageRequest
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 CreateMessageRequest
impl PartialEq for CreateMessageRequest
Source§impl Serialize for CreateMessageRequest
impl Serialize for CreateMessageRequest
impl StructuralPartialEq for CreateMessageRequest
Auto Trait Implementations§
impl Freeze for CreateMessageRequest
impl RefUnwindSafe for CreateMessageRequest
impl Send for CreateMessageRequest
impl Sync for CreateMessageRequest
impl Unpin for CreateMessageRequest
impl UnwindSafe for CreateMessageRequest
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