get_prompt_unresolved
Fetch raw prompt content with dependency tags preserved for analyzing prompt composition and debugging dependency chains in Langfuse.
Instructions
Fetch a specific prompt by name WITHOUT resolving dependencies.
Returns raw prompt content with dependency tags intact (e.g., @@@langfusePrompt:name=xxx@@@) when
the SDK supports resolve=false. Otherwise returns the resolved prompt and marks metadata.resolved=True.
Useful for analyzing prompt composition and debugging dependency chains.
Args:
ctx: Context object containing lifespan context with Langfuse client
name: The name of the prompt to fetch
label: Optional label to fetch. Cannot be used with version.
version: Optional specific version number. Cannot be used with label.
Returns:
A dictionary containing the raw prompt details with dependency tags preserved.
Raises:
ValueError: If both label and version are specified
LookupError: If prompt not found
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the prompt to fetch | |
| label | No | Label to fetch (e.g., 'production', 'staging'). Mutually exclusive with version. | |
| version | No | Specific version number to fetch. Mutually exclusive with label. |