pub fn current_tool_call_id() -> Option<String>Expand description
Returns the provider-assigned id of the tool call currently executing, when
called from within a run_turn_with tool execution; None outside that
scope.
The harness’s payment-proxy tool reads this to correlate its mid-turn
PaidFetchRequest with the approved tool call (the control plane binds the
request to the matching signed approval_response before signing). Kept as
a task-local so ToolExecutor::execute’s signature stays unchanged.