Skip to main content

agent_blocks_by_uid

Function agent_blocks_by_uid 

Source
pub(crate) fn agent_blocks_by_uid(
    mstore: &Store,
    agent_uid: &str,
) -> Result<Vec<AgentBlock>, String>
Expand description

Every block of the agent with this UID that is in a tab or parked, the one that keeps the agent first. One that was refused for a conversation open in another pane comes last (another block holds it), then the one with a live controller wins, then one in a tab over a parked one, one in a tab a window shows over one in a closed workspace, then the one the agent last launched (its newest), then the lowest id (so the answer is stable).