Skip to main content

prompt

Send a prompt to the AI and get a response.

Raises:

ValueError: If temperature is not between 0.0 and 2.0.

Parameters

NameDescriptionTypeDefault
prompt (required)The prompt(s) to send to the AI model.Union[Prompt, List[Prompt]]None
instructionsAdditional instructions for the AI. Defaults to [].Union[str, List[str]][]
formatThe expected format for the AI response. Defaults to None.FormatNone
temperatureControls randomness in the AI response, from 0.0 to 2.0. Defaults to 1.0.float1.0

Return Value

Any