Replace the request with a new request with the given overrides.
Returns a new MCPToolCallRequest instance with the specified
attributes replaced. This follows an immutable pattern, leaving the
original request unchanged.
override(
self,
**overrides: Unpack[_MCPToolCallRequestOverrides] = {}
) -> MCPToolCallRequestNote:
Context fields (server_name, runtime) cannot be overridden as they are read-only.
| Name | Type | Description |
|---|---|---|
**overrides | Unpack[_MCPToolCallRequestOverrides] | Default: {}Keyword arguments for attributes to override. Supported keys:
|