pub struct AgentEventBuilder { /* private fields */ }Implementations§
Source§impl AgentEventBuilder
impl AgentEventBuilder
pub fn new(message_id: &str) -> Self
pub fn text(self, chunks: &[&str]) -> Self
pub fn tool_call<T: Serialize, U: Serialize>( self, tool_call_id: &str, name: &str, request: &T, result: &U, ) -> Self
pub fn tool_call_with_error<T: Serialize>( self, tool_call_id: &str, name: &str, request: &T, error_message: &str, ) -> Self
pub fn build(self) -> Vec<AgentEvent>
Auto Trait Implementations§
impl Freeze for AgentEventBuilder
impl RefUnwindSafe for AgentEventBuilder
impl Send for AgentEventBuilder
impl Sync for AgentEventBuilder
impl Unpin for AgentEventBuilder
impl UnsafeUnpin for AgentEventBuilder
impl UnwindSafe for AgentEventBuilder
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