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.
Usage profiles
| Usage | Fields and validation |
|---|---|
| In requests | View fields |
In requests
API JSON uses JSON field names (camelCase).
| Field | Type | Presence | Meaning |
|---|---|---|---|
fragmentId | string | Optional | Identifier of the reusable prompt fragment. |
name | string | Optional | Display name for the imported reusable prompt fragment. |
sourceDsl | string | Optional | Raw source text (may itself contain @include / metadata comments). |
path | string | Optional | Include path, e.g. "_shared/safety-module.txt" |
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-fragment.