Section ID:
DOC-API-MODEL-schema-ohqh497pal#overview
SourcePromptFragment
Shared template block supplied for import. Its path resolves source include directives; fragment_id supplies the stable output identity when shared fragments are emitted, or is derived from the path when omitted.
Meaning and usage
Section ID: DOC-API-MODEL-schema-ohqh497pal#meaning
See the definition above.
Usage profiles
Section ID: DOC-API-MODEL-schema-ohqh497pal#fields
| Usage | Fields and validation |
|---|---|
| In requests | View fields |
In requests
Section ID: DOC-API-MODEL-schema-ohqh497pal#request
API JSON uses JSON field names (camelCase).
| Field | Type | Presence | Meaning |
|---|---|---|---|
Section ID: DOC-API-MODEL-schema-ohqh497pal#field-fragmentidSection ID: DOC-API-MODEL-schema-ohqh497pal#request-field-fragmentidfragmentId | string | Optional | Identifier of the reusable prompt fragment. |
Section ID: DOC-API-MODEL-schema-ohqh497pal#field-nameSection ID: DOC-API-MODEL-schema-ohqh497pal#request-field-namename | string | Optional | Display name for the imported reusable prompt fragment. |
Section ID: DOC-API-MODEL-schema-ohqh497pal#field-sourcedslSection ID: DOC-API-MODEL-schema-ohqh497pal#request-field-sourcedslsourceDsl | string | Optional | Raw source text (may itself contain @include / metadata comments). |
Section ID: DOC-API-MODEL-schema-ohqh497pal#field-pathSection ID: DOC-API-MODEL-schema-ohqh497pal#request-field-pathpath | string | Optional | Include path, e.g. "_shared/safety-module.txt" |
Where used
Section ID: DOC-API-MODEL-schema-ohqh497pal#where-used
| Reference | Relationship |
|---|---|
| Import a prompt library | POST /api/v1/agent-profiles/import |
Download the public reference contract.
Document ID: DOC-API-MODEL-schema-ohqh497pal