_call(
prompt: string,
options: Omit<BaseLLMCallOptions, "callbacks" | "tags" | "metadata" | "configurable" || Name | Type | Description |
|---|---|---|
prompt* | string | |
options* | Omit<BaseLLMCallOptions, "callbacks" | "tags" | "metadata" | "configurable" | "recursionLimit" | "runName" | "runId"> | |
runManager | CallbackManagerForLLMRun |
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.");