Display and jump to tool locations (#34304)

Release Notes:

- N/A
This commit is contained in:
Agus Zubiaga 2025-07-11 14:52:21 -03:00 committed by GitHub
parent 0bd65829f7
commit 6f6c2915b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 115 additions and 13 deletions

View file

@ -176,6 +176,14 @@ impl AgentThreadEntry {
None
}
}
pub fn locations(&self) -> Option<&[acp::ToolCallLocation]> {
if let AgentThreadEntry::ToolCall(ToolCall { locations, .. }) = self {
Some(locations)
} else {
None
}
}
}
#[derive(Debug)]