CountTokensRequestGenerateContentRequest Property
Optional. The overall input given to the
Model. This includes the prompt as well as other model
steering information like
system instructions,
and/or function declarations for
function calling.
Model/
Contents and
generateContentRequests are mutually exclusive. You can either send
Model +
Contents or a
generateContentRequest, but never both.