pub struct QueryConfig {
pub messages: Vec<Value>,
pub system_prompt: Option<String>,
pub user_context: HashMap<String, String>,
pub system_context: HashMap<String, String>,
pub query_source: Option<String>,
pub max_output_tokens_override: Option<u32>,
pub max_turns: Option<u32>,
pub skip_cache_write: Option<bool>,
pub task_budget: Option<TaskBudget>,
}Expand description
Query configuration
Fields§
§messages: Vec<Value>Messages to send to the model
system_prompt: Option<String>System prompt
user_context: HashMap<String, String>User context
system_context: HashMap<String, String>System context
query_source: Option<String>Query source
max_output_tokens_override: Option<u32>Maximum output tokens override
max_turns: Option<u32>Maximum turns
skip_cache_write: Option<bool>Skip cache write
task_budget: Option<TaskBudget>Task budget
Trait Implementations§
Source§impl Clone for QueryConfig
impl Clone for QueryConfig
Source§fn clone(&self) -> QueryConfig
fn clone(&self) -> QueryConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 QueryConfig
impl Debug for QueryConfig
Source§impl Default for QueryConfig
impl Default for QueryConfig
Source§impl<'de> Deserialize<'de> for QueryConfig
impl<'de> Deserialize<'de> for QueryConfig
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
Auto Trait Implementations§
impl Freeze for QueryConfig
impl RefUnwindSafe for QueryConfig
impl Send for QueryConfig
impl Sync for QueryConfig
impl Unpin for QueryConfig
impl UnsafeUnpin for QueryConfig
impl UnwindSafe for QueryConfig
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