Skip to main content

prompt

Send a prompt to the AI and get a response.

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. The AI response formatted according to the specified format if provided. ValueError: If temperature is not between 0.0 and 2.0.float1.0