Skip to main content

SourcePromptTemplate

Source persona template to convert into an agent profile during import. Its source_dsl contains the original template syntax from which the importer derives the profile template and variable specifications.

Usage profiles​

UsageFields and validation
In requestsView fields

In requests​

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
profileIdstringOptionalIdentifier of the agent profile associated with the operation or generation.
namestringOptionalDisplay name for the imported agent profile.
whenToUsestringOptionalInstructions describing when the imported agent profile should be selected.
keywordsArray of stringOptionalKeywords associated with selection of the imported agent profile.
sourceDslstringOptionalRaw source-DSL system prompt.
generationConfigGenerationConfigOptionalGeneration settings other than the prompt, such as temperature. Must not set model or models: import refuses a template that does, and the model is set afterwards with UpdateAgentProfile.

Where used​

ReferenceRelationship
Import a prompt libraryPOST /api/v1/agent-profiles/import

Download the public reference contract.

Document: DOC-API-MODEL-source-prompt-template.