pub struct LLMRequest {
pub system_prompt: String,
pub history: Vec<Arc<Message>>,
pub tools: Vec<ToolDefinition>,
pub tool_prompt: String,
pub formatted_prompt: String,
pub tool_tags: (String, String),
pub images: Vec<String>,
}Expand description
The standard payload compiled by the Agent and sent to the LLM engine.
Fields§
§system_prompt: StringThe aggregated system preamble.
history: Vec<Arc<Message>>The filtered list of conversational history.
tools: Vec<ToolDefinition>The list of available tool definitions provided to the LLM.
tool_prompt: StringThe raw tool calling instructions injected into the prompt.
formatted_prompt: StringThe fully rendered, raw prompt string (used primarily by local engines).
The tags used to identify tool calls (start_tag, end_tag).
images: Vec<String>A collection of base64 extracted images for multimodal inference.
Trait Implementations§
Source§impl Clone for LLMRequest
impl Clone for LLMRequest
Source§fn clone(&self) -> LLMRequest
fn clone(&self) -> LLMRequest
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 LLMRequest
impl Debug 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