pub enum ToolPhase {
Queued,
Started,
Finished,
}Expand description
工具执行生命周期阶段。
与 LangGraph (on_tool_start/on_tool_end)、
OpenAI Agents SDK (tool_call_started/tool_call_finished)、
Claude Desktop (tool_use/tool_result) 一致。
Variants§
Trait Implementations§
impl Copy for ToolPhase
impl Eq for ToolPhase
impl StructuralPartialEq for ToolPhase
Auto Trait Implementations§
impl Freeze for ToolPhase
impl RefUnwindSafe for ToolPhase
impl Send for ToolPhase
impl Sync for ToolPhase
impl Unpin for ToolPhase
impl UnsafeUnpin for ToolPhase
impl UnwindSafe for ToolPhase
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.