Optionaldata: { Optionalmodel?: stringOptionalcontents?: Content[]Optionalconfig?: GenerateContentConfigOptionalliveOptionaltoolsOptionalcacheOptionalcacheOptionalcacheableOptionalmodelThe model name.
The contents to send to the model.
OptionalconfigAdditional config for the generate content request. Tools in generate_content_config should not be set.
OptionalcacheContext cache config for the request.
OptionalcacheCache metadata from previous requests, used for cache management.
OptionalcacheableToken count from previous request's prompt, used for cache size validation.
Live connect config for the request.
The tools dictionary.
Appends tools to the request.
The tools to append.
Staticextract
LLM request class that allows passing in tools, output schema and system instructions to the model.
Attributes: model: The model name. contents: The contents to send to the model. config: Additional config for the generate content request. toolsDict: The tools dictionary.