prompt
Send a prompt to the AI and get a response.
Parameters
Name | Description | Type | Default |
---|---|---|---|
prompt (required) | The prompt(s) to send to the AI model. | Union[Prompt, List[Prompt]] | None |
instructions | Additional instructions for the AI. Defaults to []. | Union[str, List[str]] | [] |
format | The expected format for the AI response. Defaults to None. | Format | None |
temperature | Controls randomness in the AI response, from 0.0 to 2.0. Defaults to 1.0. The AI response formatted according to the specified format if provided. ValueError: If temperature is not between 0.0 and 2.0. | float | 1.0 |