pub struct DirectRequest {
pub model: String,
pub model_variant: Option<String>,
pub messages: Vec<DirectMessage>,
pub attachments: Vec<LlmAttachment>,
pub output: DirectOutputSpec,
pub stream_events: Option<LlmEventSender>,
pub session_id: Option<String>,
pub originating_tool_call_id: Option<String>,
}Fields§
§model: String§model_variant: Option<String>§messages: Vec<DirectMessage>§attachments: Vec<LlmAttachment>§output: DirectOutputSpec§stream_events: Option<LlmEventSender>§session_id: Option<String>§originating_tool_call_id: Option<String>Set this when issuing a direct completion from inside a tool’s
execute. Carries the calling tool’s call id all the way to the
trace event so the renderer can group fan-outs (e.g.
tournament_rerank’s batch reranks) under their parent.
Implementations§
Trait Implementations§
Source§impl Clone for DirectRequest
impl Clone for DirectRequest
Source§fn clone(&self) -> DirectRequest
fn clone(&self) -> DirectRequest
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 moreAuto Trait Implementations§
impl Freeze for DirectRequest
impl !RefUnwindSafe for DirectRequest
impl Send for DirectRequest
impl Sync for DirectRequest
impl Unpin for DirectRequest
impl UnsafeUnpin for DirectRequest
impl !UnwindSafe for DirectRequest
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