Skip to main content

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​

UsageFields and validation
In requestsView fields

In requests​

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
fragmentIdstringOptionalIdentifier of the reusable prompt fragment.
namestringOptionalDisplay name for the imported reusable prompt fragment.
sourceDslstringOptionalRaw source text (may itself contain @include / metadata comments).
pathstringOptionalInclude path, e.g. "_shared/safety-module.txt"

Where used​

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

Download the public reference contract.

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