pub struct PromptConfig {Show 14 fields
pub template: Option<Template>,
pub system_prompt: Option<String>,
pub tools: Option<Vec<Tool>>,
pub response_format: Option<SchemaSpec>,
pub response_format_raw: Option<String>,
pub pending_name: Option<String>,
pub pending_strict: Option<bool>,
pub mcp_servers: Option<Vec<McpServerType>>,
pub stop_prompt: Option<String>,
pub stopword: Option<String>,
pub strip_thinking: Option<bool>,
pub max_iterations: Option<usize>,
pub clear_histroy_on_invoke: Option<bool>,
pub stream: bool,
}
Fields§
§template: Option<Template>
Optional prompt template used to compile user inputs.
system_prompt: Option<String>
System prompt that seeds the conversation.
tools: Option<Vec<Tool>>
Set of local tools the agent can invoke.
response_format: Option<SchemaSpec>
§response_format_raw: Option<String>
§pending_name: Option<String>
§pending_strict: Option<bool>
§mcp_servers: Option<Vec<McpServerType>>
External MCP servers providing additional tools.
stop_prompt: Option<String>
Prompt injected at the start of tool-call branches.
stopword: Option<String>
Stopword used to detect end of model output.
strip_thinking: Option<bool>
Whether to strip <think>
blocks from model responses.
max_iterations: Option<usize>
Safety cap on maximum number of conversation iterations.
clear_histroy_on_invoke: Option<bool>
Whether to clear conversation history before each invocation.
stream: bool
Enable streaming responses (token-by-token).
Trait Implementations§
Source§impl Clone for PromptConfig
impl Clone for PromptConfig
Source§fn clone(&self) -> PromptConfig
fn clone(&self) -> PromptConfig
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 PromptConfig
impl Debug for PromptConfig
Source§impl Default for PromptConfig
impl Default for PromptConfig
Source§fn default() -> PromptConfig
fn default() -> PromptConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PromptConfig
impl !RefUnwindSafe for PromptConfig
impl Send for PromptConfig
impl Sync for PromptConfig
impl Unpin for PromptConfig
impl !UnwindSafe for PromptConfig
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