This method takes an input and options, and returns a string. It converts the input to a prompt value and generates a result based on the prompt.
invoke(input: BaseLanguageModelInput, options: Partial<CohereCallOptions>): Promise<string>| Name | Type | Description |
|---|---|---|
input* | BaseLanguageModelInput | Input for the LLM. |
options | Partial<CohereCallOptions> | Options for the LLM call. |