pub struct AgentCapabilitiesBuilder { /* private fields */ }Expand description
Agent 能力构建器
Implementations§
Source§impl AgentCapabilitiesBuilder
impl AgentCapabilitiesBuilder
添加多个标签
Sourcepub fn input_type(self, input_type: InputType) -> Self
pub fn input_type(self, input_type: InputType) -> Self
添加输入类型
Sourcepub fn with_input_type(self, input_type: InputType) -> Self
pub fn with_input_type(self, input_type: InputType) -> Self
添加输入类型 (别名)
Sourcepub fn output_type(self, output_type: OutputType) -> Self
pub fn output_type(self, output_type: OutputType) -> Self
添加输出类型
Sourcepub fn with_output_type(self, output_type: OutputType) -> Self
pub fn with_output_type(self, output_type: OutputType) -> Self
添加输出类型 (别名)
Sourcepub fn max_context_length(self, length: usize) -> Self
pub fn max_context_length(self, length: usize) -> Self
设置最大上下文长度
Sourcepub fn reasoning_strategy(self, strategy: ReasoningStrategy) -> Self
pub fn reasoning_strategy(self, strategy: ReasoningStrategy) -> Self
添加推理策略
Sourcepub fn with_reasoning_strategy(self, strategy: ReasoningStrategy) -> Self
pub fn with_reasoning_strategy(self, strategy: ReasoningStrategy) -> Self
添加推理策略 (别名)
Sourcepub fn supports_streaming(self, supports: bool) -> Self
pub fn supports_streaming(self, supports: bool) -> Self
设置流式输出支持
Sourcepub fn supports_conversation(self, supports: bool) -> Self
pub fn supports_conversation(self, supports: bool) -> Self
设置多轮对话支持
Sourcepub fn supports_tools(self, supports: bool) -> Self
pub fn supports_tools(self, supports: bool) -> Self
设置工具调用支持
Sourcepub fn supports_coordination(self, supports: bool) -> Self
pub fn supports_coordination(self, supports: bool) -> Self
设置多 Agent 协调支持
Sourcepub fn build(self) -> AgentCapabilities
pub fn build(self) -> AgentCapabilities
构建能力描述
Trait Implementations§
Source§impl Debug for AgentCapabilitiesBuilder
impl Debug for AgentCapabilitiesBuilder
Source§impl Default for AgentCapabilitiesBuilder
impl Default for AgentCapabilitiesBuilder
Source§fn default() -> AgentCapabilitiesBuilder
fn default() -> AgentCapabilitiesBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AgentCapabilitiesBuilder
impl RefUnwindSafe for AgentCapabilitiesBuilder
impl Send for AgentCapabilitiesBuilder
impl Sync for AgentCapabilitiesBuilder
impl Unpin for AgentCapabilitiesBuilder
impl UnsafeUnpin for AgentCapabilitiesBuilder
impl UnwindSafe for AgentCapabilitiesBuilder
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