Skip to content

Prompt Input Parameters

The majority of the parameters used in the PromptTK SDK’s generatePrompt function are defined in the Prompt Input documentation. Below is a summary of the key parameters you can use when creating a prompt.

Most of these parameters are optional, but providing more context can help the AI generate better responses, something to keep in mind is that these should be describing how our system should craft your prompt, so ensure that the descriptions you provide are descibing how you would like the output of the prompt you receive to be structured.

ParameterTypeRequiredDescription
mainPromptstringYesThe main prompt or instruction for the AI. This is the core message or question you want the AI to respond to.
endUserDescriptionstringNoA description of the end user or audience for the output of the prompt. Helps the AI tailor its response to the intended recipient.
promptSenderDescriptionstringNoA description of the sender or author of the prompt. Useful for context about who is asking or providing the prompt.
relationshipstringNoDescribes the relationship between the sender and the end user (e.g., teacher-student, manager-employee). Guides the AI’s tone and approach.
mustHavesstringNoSpecific elements or requirements that must be included in the AI’s response.
contextRequirementsstringNoAdditional context or background information the AI should consider when generating the response.
lengthRequirementsstringNoInstructions about the desired length of the response (e.g., “one paragraph”, “under 100 words”).
avoidElementsstringNoElements, topics, or styles the AI should avoid in its response.
styleAndTonestring[]NoAn array of styles or tones to apply (e.g., [“formal”, “friendly”]).
examplePromptsstringNoExample prompts to help guide the AI in understanding the desired format or intent.
outputTypestringNoThe type of output expected (e.g., “summary”, “list”, “code”).
responseFormatstringNoThe format for the response (e.g., “markdown”, “JSON”).
promptGoalstringNoThe goal or objective of the prompt, to help the AI focus its response.
hallucinationControlstringNoInstructions to minimize or control AI hallucinations (e.g., “only use provided facts”).
projectIdstringNoThe project ID to associate the prompt with a specific project in PromptTK.