override(
self,
**overrides: Unpack[_MCPToolCallRequestOverrides] = {}
) -> MCPToolCallRequest| Name | Type | Description |
|---|---|---|
**overrides | Unpack[_MCPToolCallRequestOverrides] | Default: {}Keyword arguments for attributes to override. Supported keys:
|
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.
Note:
Context fields (server_name, runtime) cannot be overridden as they are read-only.