MCPcopy Index your code
hub / github.com/AI45Lab/Code / track_tool_result

Method track_tool_result

core/src/agent/telemetry_runtime.rs:5–12  ·  view source on GitHub ↗

Track a tool call result in the current telemetry span.

(
        &self,
        tool_name: &str,
        args: &serde_json::Value,
        exit_code: i32,
    )

Source from the content-addressed store, hash-verified

3impl AgentLoop {
4 /// Track a tool call result in the current telemetry span.
5 pub(super) fn track_tool_result(
6 &self,
7 tool_name: &str,
8 args: &serde_json::Value,
9 exit_code: i32,
10 ) {
11 record_tool_result_metadata(tool_name, args, exit_code);
12 }
13}
14
15fn record_tool_result_metadata(tool_name: &str, args: &serde_json::Value, exit_code: i32) {

Callers 2

Calls 1

Tested by

no test coverage detected