pub struct LlmRequest {
pub prompt: String,
pub system: Option<String>,
pub max_output_bytes: Option<usize>,
pub intent: Option<Intent>,
}Expand description
What the guest sends to circlet.llm_open.
Fields§
§prompt: StringThe user-turn prompt.
system: Option<String>Optional system prompt.
max_output_bytes: Option<usize>Advisory output ceiling the embedder maps to its provider’s parameter.
intent: Option<Intent>The mind to ask for — passed to the host verbatim; the host resolves
it. None leaves the choice entirely to the host.
Trait Implementations§
Source§impl Clone for LlmRequest
impl Clone for LlmRequest
Source§impl Debug for LlmRequest
impl Debug for LlmRequest
Source§impl<'de> Deserialize<'de> for LlmRequest
impl<'de> Deserialize<'de> for LlmRequest
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 LlmRequest
impl PartialEq for LlmRequest
Source§impl Serialize for LlmRequest
impl Serialize for LlmRequest
impl StructuralPartialEq for LlmRequest
Auto Trait Implementations§
impl Freeze for LlmRequest
impl RefUnwindSafe for LlmRequest
impl Send for LlmRequest
impl Sync for LlmRequest
impl Unpin for LlmRequest
impl UnsafeUnpin for LlmRequest
impl UnwindSafe for LlmRequest
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