pub struct ModelContext {
pub input: String,
pub provider: String,
pub model: String,
pub reasoning_effort: String,
pub base_instructions: Option<String>,
pub developer_instructions: Option<String>,
pub tools: Vec<DynamicTool>,
}Expand description
Exact caller-controlled material submitted to one model inference.
Provider transport metadata is intentionally excluded. A provider may add hidden instructions that are not observable to this client.
Fields§
§input: StringExact UTF-8 text supplied as the model input.
provider: StringStable provider label selected by the routing boundary.
model: StringExact provider model identifier.
reasoning_effort: StringProvider-native reasoning-effort label.
base_instructions: Option<String>Exact caller-controlled base instructions, when applicable.
developer_instructions: Option<String>Exact caller-controlled developer instructions, when applicable.
tools: Vec<DynamicTool>Exact dynamic tool contracts supplied for this inference.
Trait Implementations§
Source§impl Clone for ModelContext
impl Clone for ModelContext
Source§fn clone(&self) -> ModelContext
fn clone(&self) -> ModelContext
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 ModelContext
impl Debug for ModelContext
Source§impl<'de> Deserialize<'de> for ModelContext
impl<'de> Deserialize<'de> for ModelContext
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 ModelContext
impl PartialEq for ModelContext
Source§impl Serialize for ModelContext
impl Serialize for ModelContext
impl StructuralPartialEq for ModelContext
Auto Trait Implementations§
impl Freeze for ModelContext
impl RefUnwindSafe for ModelContext
impl Send for ModelContext
impl Sync for ModelContext
impl Unpin for ModelContext
impl UnsafeUnpin for ModelContext
impl UnwindSafe for ModelContext
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