pub struct AiExecutorConfig {
pub system_prompt: Option<String>,
pub max_tokens: u32,
pub enable_thinking: bool,
pub enable_streaming: bool,
}Expand description
AI 执行器配置
Fields§
§system_prompt: Option<String>系统提示模板
max_tokens: u32最大输出 token 数
enable_thinking: bool是否启用思考模式
enable_streaming: bool是否启用流式输出
Trait Implementations§
Source§impl Clone for AiExecutorConfig
impl Clone for AiExecutorConfig
Source§fn clone(&self) -> AiExecutorConfig
fn clone(&self) -> AiExecutorConfig
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 AiExecutorConfig
impl Debug for AiExecutorConfig
Auto Trait Implementations§
impl Freeze for AiExecutorConfig
impl RefUnwindSafe for AiExecutorConfig
impl Send for AiExecutorConfig
impl Sync for AiExecutorConfig
impl Unpin for AiExecutorConfig
impl UnsafeUnpin for AiExecutorConfig
impl UnwindSafe for AiExecutorConfig
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