OptionalgrokxaiLlmTask grokxai.
OptionalgroqLlmTask groq.
OptionalopenaiLlmTask openai.
OptionalproviderLlmTask providerConfig.
Converts this LlmTask to JSON.
JSON object
StaticcreateStaticdecodeStaticdecodeStaticencodeStaticencodeStaticfromStaticgetGets the default type url for LlmTask
OptionaltypeUrlPrefix: stringyour custom typeUrlPrefix(default "type.googleapis.com")
The default type url
StatictoStaticverifyVerifies a LlmTask message.
Plain object to verify
null if valid, otherwise the reason why it is not
Interacts with a Large Language Model (LLM) to generate a text response based on a user-provided prompt.
Input: None
Returns: Text generated by the LLM based on the provided prompt and configuration.
Example: Using OpenAI's GPT-4 model to generate a joke.