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
| Usage | Fields and validation |
|---|---|
| In requests | View fields |
In requests
API JSON uses JSON field names (camelCase).
| Field | Type | Presence | Meaning |
|---|---|---|---|
profileId | string | Optional | Identifier of the agent profile associated with the operation or generation. |
name | string | Optional | Display name for the imported agent profile. |
whenToUse | string | Optional | Instructions describing when the imported agent profile should be selected. |
keywords | Array of string | Optional | Keywords associated with selection of the imported agent profile. |
sourceDsl | string | Optional | Raw source-DSL system prompt. |
generationConfig | GenerationConfig | Optional | Generation 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
| Reference | Relationship |
|---|---|
| Import a prompt library | POST /api/v1/agent-profiles/import |
Download the public reference contract.
Document: DOC-API-MODEL-source-prompt-template.