Prompt
Overview
A PromptType
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 Reference
messages
For complete message structure details, see the MessageType Reference
tools
For complete tool structure details, see the ToolType Reference
variables
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.
For complete ContentType details, see the ContentType Reference
Name Constraints
- Length: 1-200 characters
- Uniqueness: Must be unique within the same prompt
- Usage: Can be referenced in message content for dynamic substitution