pub enum AgentPhase {
Idle,
Waiting,
Preparing,
Connecting,
Thinking,
Responding,
ToolExec,
Compacting,
RateLimited,
}Expand description
Current phase of the agent loop, broadcast to subscribers for UI display.
The TUI also derives phase implicitly from certain stream events
(see App::update_phase_from_event in tau-agent-tui).
Variants§
Idle
No agent turn running.
Waiting
Blocked waiting for session lock (another turn in progress).
Preparing
Loading session, spawning plugins, running hooks.
Connecting
HTTP request sent, waiting for first SSE byte from provider.
Thinking
Receiving thinking tokens from the LLM.
Responding
Streaming text/tool-call tokens from the LLM.
ToolExec
Executing tool calls.
Compacting
Running context compaction.
RateLimited
Waiting for rate limit / retry backoff.
Implementations§
Trait Implementations§
Source§impl Clone for AgentPhase
impl Clone for AgentPhase
Source§fn clone(&self) -> AgentPhase
fn clone(&self) -> AgentPhase
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentPhase
impl Debug for AgentPhase
Source§impl Default for AgentPhase
impl Default for AgentPhase
Source§fn default() -> AgentPhase
fn default() -> AgentPhase
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgentPhase
impl<'de> Deserialize<'de> for AgentPhase
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AgentPhase
impl PartialEq for AgentPhase
Source§impl Serialize for AgentPhase
impl Serialize for AgentPhase
impl Copy for AgentPhase
impl Eq for AgentPhase
impl StructuralPartialEq for AgentPhase
Auto Trait Implementations§
impl Freeze for AgentPhase
impl RefUnwindSafe for AgentPhase
impl Send for AgentPhase
impl Sync for AgentPhase
impl Unpin for AgentPhase
impl UnsafeUnpin for AgentPhase
impl UnwindSafe for AgentPhase
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