pub struct AgentRequirementsBuilder { /* private fields */ }Expand description
Agent 需求构建器
Implementations§
Source§impl AgentRequirementsBuilder
impl AgentRequirementsBuilder
Sourcepub fn new() -> AgentRequirementsBuilder
pub fn new() -> AgentRequirementsBuilder
创建新的构建器
Sourcepub fn require_tag(self, tag: impl Into<String>) -> AgentRequirementsBuilder
pub fn require_tag(self, tag: impl Into<String>) -> AgentRequirementsBuilder
添加必需标签
Sourcepub fn prefer_tag(self, tag: impl Into<String>) -> AgentRequirementsBuilder
pub fn prefer_tag(self, tag: impl Into<String>) -> AgentRequirementsBuilder
添加优选标签
Sourcepub fn require_input(self, input_type: InputType) -> AgentRequirementsBuilder
pub fn require_input(self, input_type: InputType) -> AgentRequirementsBuilder
添加输入类型需求
Sourcepub fn require_output(self, output_type: OutputType) -> AgentRequirementsBuilder
pub fn require_output(self, output_type: OutputType) -> AgentRequirementsBuilder
添加输出类型需求
Sourcepub fn require_streaming(self) -> AgentRequirementsBuilder
pub fn require_streaming(self) -> AgentRequirementsBuilder
要求流式输出
Sourcepub fn require_tools(self) -> AgentRequirementsBuilder
pub fn require_tools(self) -> AgentRequirementsBuilder
要求工具支持
Sourcepub fn require_conversation(self) -> AgentRequirementsBuilder
pub fn require_conversation(self) -> AgentRequirementsBuilder
要求多轮对话
Sourcepub fn require_coordination(self) -> AgentRequirementsBuilder
pub fn require_coordination(self) -> AgentRequirementsBuilder
要求多 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage