pub struct AgentRequirementsBuilder { /* private fields */ }Expand description
Agent 需求构建器
Implementations§
Source§impl AgentRequirementsBuilder
impl AgentRequirementsBuilder
Sourcepub fn require_tag(self, tag: impl Into<String>) -> Self
pub fn require_tag(self, tag: impl Into<String>) -> Self
添加必需标签
Sourcepub fn prefer_tag(self, tag: impl Into<String>) -> Self
pub fn prefer_tag(self, tag: impl Into<String>) -> Self
添加优选标签
Sourcepub fn require_input(self, input_type: InputType) -> Self
pub fn require_input(self, input_type: InputType) -> Self
添加输入类型需求
Sourcepub fn require_output(self, output_type: OutputType) -> Self
pub fn require_output(self, output_type: OutputType) -> Self
添加输出类型需求
Sourcepub fn require_streaming(self) -> Self
pub fn require_streaming(self) -> Self
要求流式输出
Sourcepub fn require_tools(self) -> Self
pub fn require_tools(self) -> Self
要求工具支持
Sourcepub fn require_conversation(self) -> Self
pub fn require_conversation(self) -> Self
要求多轮对话
Sourcepub fn require_coordination(self) -> Self
pub fn require_coordination(self) -> Self
要求多 Agent 协调
Sourcepub fn build(self) -> AgentRequirements
pub fn build(self) -> AgentRequirements
构建需求描述
Trait Implementations§
Source§impl Debug for AgentRequirementsBuilder
impl Debug for AgentRequirementsBuilder
Source§impl Default for AgentRequirementsBuilder
impl Default for AgentRequirementsBuilder
Source§fn default() -> AgentRequirementsBuilder
fn default() -> AgentRequirementsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AgentRequirementsBuilder
impl RefUnwindSafe for AgentRequirementsBuilder
impl Send for AgentRequirementsBuilder
impl Sync for AgentRequirementsBuilder
impl Unpin for AgentRequirementsBuilder
impl UnsafeUnpin for AgentRequirementsBuilder
impl UnwindSafe for AgentRequirementsBuilder
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