pub struct AgentInputBuilder { /* private fields */ }Expand description
AgentInput 构建器。
Implementations§
Source§impl AgentInputBuilder
impl AgentInputBuilder
Sourcepub fn with_context(
self,
key: impl Into<String>,
value: impl Into<Value>,
) -> Self
pub fn with_context( self, key: impl Into<String>, value: impl Into<Value>, ) -> Self
添加上下文键值对。
Sourcepub fn build(self) -> AgentInput
pub fn build(self) -> AgentInput
构建输入。
Auto Trait Implementations§
impl Freeze for AgentInputBuilder
impl RefUnwindSafe for AgentInputBuilder
impl Send for AgentInputBuilder
impl Sync for AgentInputBuilder
impl Unpin for AgentInputBuilder
impl UnsafeUnpin for AgentInputBuilder
impl UnwindSafe for AgentInputBuilder
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