Optional
fields: anyOptional
cloudflareOptional
cloudflareGet the identifying parameters for this LLM.
Call out to CloudflareWorkersAI's complete endpoint. Args: prompt: The prompt to pass into the model. Returns: The string generated by the model. Example: let response = CloudflareWorkersAI.call("Tell me a joke.");
Optional
runManager: anyGet the type of LLM.
Optional
stream: booleanGet the parameters used to invoke the model
Method to validate the environment.
Static
lc_
Deprecated
Install and import from "@langchain/cloudflare" instead.
Class representing the CloudflareWorkersAI language model. It extends the LLM (Large Language Model) class, providing a standard interface for interacting with the CloudflareWorkersAI language model.