pub struct RemoteLlmRequest {
pub protocol_version: u32,
pub request_id: String,
pub model_intent: RemoteModelIntent,
pub messages: Vec<RemoteLlmMessage>,
pub attachments: Vec<RemoteLlmAttachment>,
pub tools: Vec<RemoteLlmToolSpec>,
pub tool_choice: RemoteLlmToolChoice,
pub output_spec: Option<RemoteLlmOutputSpec>,
pub generation: RemoteGenerationOptions,
pub request_metadata: RemoteLlmRequestMetadata,
pub metadata: HashMap<String, Value>,
}Fields§
§protocol_version: u32§request_id: String§model_intent: RemoteModelIntent§messages: Vec<RemoteLlmMessage>§attachments: Vec<RemoteLlmAttachment>§tools: Vec<RemoteLlmToolSpec>§tool_choice: RemoteLlmToolChoice§output_spec: Option<RemoteLlmOutputSpec>§generation: RemoteGenerationOptions§request_metadata: RemoteLlmRequestMetadata§metadata: HashMap<String, Value>Implementations§
Source§impl RemoteLlmRequest
impl RemoteLlmRequest
pub fn validate(&self) -> Result<(), RemoteProtocolError>
Trait Implementations§
Source§impl Clone for RemoteLlmRequest
impl Clone for RemoteLlmRequest
Source§fn clone(&self) -> RemoteLlmRequest
fn clone(&self) -> RemoteLlmRequest
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 RemoteLlmRequest
impl Debug for RemoteLlmRequest
Source§impl<'de> Deserialize<'de> for RemoteLlmRequest
impl<'de> Deserialize<'de> for RemoteLlmRequest
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 JsonSchema for RemoteLlmRequest
impl JsonSchema for RemoteLlmRequest
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for RemoteLlmRequest
impl PartialEq for RemoteLlmRequest
Source§fn eq(&self, other: &RemoteLlmRequest) -> bool
fn eq(&self, other: &RemoteLlmRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RemoteLlmRequest
impl Serialize for RemoteLlmRequest
impl StructuralPartialEq for RemoteLlmRequest
Auto Trait Implementations§
impl Freeze for RemoteLlmRequest
impl RefUnwindSafe for RemoteLlmRequest
impl Send for RemoteLlmRequest
impl Sync for RemoteLlmRequest
impl Unpin for RemoteLlmRequest
impl UnsafeUnpin for RemoteLlmRequest
impl UnwindSafe for RemoteLlmRequest
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