Skip to content

Commit c11dd37

Browse files
committed
RequestMetadata: Make ToolDetails a recursive structure
This adds a `wrapped_tool_details` field to the `ToolDetails` message, which allows all tools involved in the sending and receipt of a request to record their information in the request metadata. For example, it allows tracking information about both the user-facing client tool and a potential client-side proxy tool to be attached to the request in a structured fashion.
1 parent 0d21f29 commit c11dd37

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build/bazel/remote/execution/v2/remote_execution.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2088,6 +2088,13 @@ message ToolDetails {
20882088

20892089
// Version of the tool used for the request, e.g. 5.0.3.
20902090
string tool_version = 2;
2091+
2092+
// Details of other tools involved in the request
2093+
// This recursive structure allows each tool involved in a request to
2094+
// have its name and version included in the request metadata.
2095+
// For example, a client-side proxy might include the client tool's
2096+
// initial ToolDetails here along with its own name and version.
2097+
ToolDetails wrapped_tool_details = 3;
20912098
}
20922099

20932100
// An optional Metadata to attach to any RPC request to tell the server about an

0 commit comments

Comments
 (0)