Skip to main content
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

UsageFields and validation
In requestsView fields

In requests​

Section ID: DOC-API-MODEL-schema-ohqh497pal#request

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
Section ID: DOC-API-MODEL-schema-ohqh497pal#field-fragmentidSection ID: DOC-API-MODEL-schema-ohqh497pal#request-field-fragmentidfragmentIdstringOptionalIdentifier of the reusable prompt fragment.
Section ID: DOC-API-MODEL-schema-ohqh497pal#field-nameSection ID: DOC-API-MODEL-schema-ohqh497pal#request-field-namenamestringOptionalDisplay name for the imported reusable prompt fragment.
Section ID: DOC-API-MODEL-schema-ohqh497pal#field-sourcedslSection ID: DOC-API-MODEL-schema-ohqh497pal#request-field-sourcedslsourceDslstringOptionalRaw 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-pathpathstringOptionalInclude path, e.g. "_shared/safety-module.txt"

Where used​

Section ID: DOC-API-MODEL-schema-ohqh497pal#where-used

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

Download the public reference contract.

Document ID: DOC-API-MODEL-schema-ohqh497pal