OptionalagentOptional agent identifier in case the request was sent by an agent
OptionalcancellationCancellation support
OptionalclientOptionaldeferredIds of tools whose definitions should be deferred and discovered on-demand via the provider's built-in tool search mechanism. Providers that do not support deferred loading should ignore this field.
OptionalisIndicates whether the prompt variant was customized
OptionalpromptOptional prompt variant ID used for this request
OptionalreasoningProvider-agnostic reasoning configuration; providers translate it to their native API.
Identifier of the request or overall exchange. Corresponds to request id in Chat sessions
Optionalresponse_OptionalserverIds of the provider's server tools (see ServerToolDescriptor) that are enabled for this request. Each provider translates the enabled ids into its native server tool configuration.
Identifier of the Ai/ChatSession
OptionalsettingsOptionalsubId of a request in case a single exchange consists of multiple requests. In this case the requestId corresponds to the overall exchange.
Optionaltools
The UserRequest extends the "pure" LanguageModelRequest for cancelling support as well as logging metadata. The additional metadata might also be used for other use cases, for example to query default request settings based on the agent id, merging with the request settings handed over.