OptionalgrokxaiLlmTask grokxai.
OptionalgroqLlmTask groq.
OptionalopenaiLlmTask openai.
OptionalproviderLlmTask providerConfig.
Converts this LlmTask to JSON.
JSON object
StaticcreateStaticdecodeStaticdecodeStaticencodeEncodes the specified LlmTask message. Does not implicitly {@apilink oracle_job.OracleJob.LlmTask.verify|verify} messages.
LlmTask message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticencodeEncodes the specified LlmTask message, length delimited. Does not implicitly {@apilink oracle_job.OracleJob.LlmTask.verify|verify} messages.
LlmTask message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticfromStaticgetGets 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.