Overview
APromptType
consists of the following main components:
Provider and runtime configuration.Constraints: Required configuration object.
Array of conversation messages.Constraints: Required, at least one message.
Available tools for the LLM.Constraints: Required array (can be empty)
Dynamic content variables.Constraints: Optional, unique names required.
Field Details
config
For complete configuration details, see the Config Referencemessages
For complete message structure details, see the MessageType Referencetools
For complete tool structure details, see the ToolType Referencevariables
Optional array of dynamic variables that can be substituted into prompt content.Variable identifier.Constraints: 1-200 characters, must be unique within prompt.
The variable’s content.Constraints: Any valid content type (text, image, etc.)
Optional variable description.Constraints: Optional, 1-200 characters.
Name Constraints
- Length: 1-200 characters
- Uniqueness: Must be unique within the same prompt
- Usage: Can be referenced in message content for dynamic substitution