Introduce a telemetry event for when a tool finishes (#28380)
This should help us understand which tools fail the most. Release Notes: - N/A
This commit is contained in:
parent
afde25a5cb
commit
c0ad3e8183
1 changed files with 2 additions and 0 deletions
|
@ -334,6 +334,8 @@ impl ToolUseState {
|
||||||
output: Result<String>,
|
output: Result<String>,
|
||||||
cx: &App,
|
cx: &App,
|
||||||
) -> Option<PendingToolUse> {
|
) -> Option<PendingToolUse> {
|
||||||
|
telemetry::event!("Agent Tool Finished", tool_name, success = output.is_ok());
|
||||||
|
|
||||||
match output {
|
match output {
|
||||||
Ok(tool_result) => {
|
Ok(tool_result) => {
|
||||||
let model_registry = LanguageModelRegistry::read_global(cx);
|
let model_registry = LanguageModelRegistry::read_global(cx);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue