Optional
grokxaiLlmTask grokxai.
Optional
groqLlmTask groq.
Optional
openaiLlmTask openai.
Optional
providerLlmTask providerConfig.
Converts this LlmTask to JSON.
JSON object
Static
createStatic
decodeStatic
decodeStatic
encodeEncodes the specified LlmTask message. Does not implicitly {@apilink oracle_job.OracleJob.LlmTask.verify|verify} messages.
LlmTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
encodeEncodes the specified LlmTask message, length delimited. Does not implicitly {@apilink oracle_job.OracleJob.LlmTask.verify|verify} messages.
LlmTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
fromStatic
getGets the default type url for LlmTask
Optional
typeUrlPrefix: stringyour custom typeUrlPrefix(default "type.googleapis.com")
The default type url
Static
toStatic
verifyVerifies 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.