Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(prompts): remove the prompt-partials feature flag (#111708)

Juraj Majerike438c38e6e74
diff --git a/posthog/api/llm_prompt.py b/posthog/api/llm_prompt.py
index f987a709166d..07c98a68e642 100644
--- a/posthog/api/llm_prompt.py
+++ b/posthog/api/llm_prompt.py
@@ -86,7 +86,6 @@ from products.ai_observability.backend.prompt_references import (
PromptReferenceResolutionError,
assemble_prompt_payload,
get_active_references_to,
- prompt_partials_enabled,
)
logger = structlog.get_logger(__name__)
@@ -281,15 +280,13 @@ class LLMPromptViewSet(
return isinstance(item.get("prompt"), str) and bool(PROMPT_REFERENCE_REGEX.search(item["prompt"]))
# A tag-free row is trivially resolved: its raw and assembled content are
- # identical, so it gets [] without consulting the flag. Null stays the
- # marker for tags that were left in place.
+ # identical, so it gets []. Null stays the marker for tags that were
+ # left in place.
for item in items:
if not has_tags(item):
item["resolved_references"] = []
if not any(has_tags(item) for item in items):
return items
- if not prompt_partials_enabled(self.team):
- return items
resolved_items: list[dict[str, Any]] = []
shared_memo: dict[tuple[str, str | None, str | None], tuple[str, int]] = {}
for item in items:
@@ -443,7 +440,7 @@ class LLMPromptViewSet(
)
return self._prompt_not_found_response(prompt_name)
- if resolve and content_mode == "full" and prompt_partials_enabled(self.team):
+ if resolve and content_mode == "full":
try:
prompt = assemble_prompt_payload(self.team, prompt)
except PromptReferenceResolutionError as err:
diff --git a/posthog/api/test/test_llm_prompt.py b/posthog/api/test/test_llm_prompt.py
index adc23f429f1f..0ccb78ec3944 100644
--- a/posthog/api/test/test_llm_prompt.py
+++ b/posthog/api/test/test_llm_prompt.py
@@ -2105,8 +2105,7 @@ class TestLLMPromptDependenciesAPI(APIBaseTest):
== status.HTTP_204_NO_CONTENT
)
- @patch("posthog.api.llm_prompt.prompt_partials_enabled", return_value=True)
- def test_fetch_resolves_references_into_assembled_content(self, _flag):
+ def test_fetch_resolves_references_into_assembled_content(self):
self._make_prompt("guardrails", prompt="Never lie.", label="production")
self._make_prompt("tone", prompt="Be kind.", version=3)
self.client.post(
@@ -2127,23 +2126,7 @@ class TestLLMPromptDependenciesAPI(APIBaseTest):
{"name": "tone", "version": 3, "label": None},
]
- @patch("posthog.api.llm_prompt.prompt_partials_enabled", return_value=False)
- def test_fetch_passes_tags_through_when_flag_is_off(self, _flag):
- self._make_prompt("guardrails", label="production")
- self.client.post(
- f"/api/environments/{self.team.id}/llm_prompts/",
- data={"name": "agent", "prompt": "@@@prompt:name=guardrails|label=production@@@"},
- format="json",
- )
-
- response = self.client.get(f"/api/environments/{self.team.id}/llm_prompts/name/agent/")
-
- assert response.status_code == status.HTTP_200_OK
- assert response.json()["prompt"] == "@@@prompt:name=guardrails|label=production@@@"
- assert "resolved_references" not in response.json()
-
- @patch("posthog.api.llm_prompt.prompt_partials_enabled", return_value=True)
- def test_fetch_with_resolve_false_returns_raw_tags(self, _flag):
+ def test_fetch_with_resolve_false_returns_raw_tags(self):
self._make_prompt("guardrails", label="production")
self.client.post(
f"/api/environments/{self.team.id}/llm_prompts/",
@@ -2156,8 +2139,7 @@ class TestLLMPromptDependenciesAPI(APIBaseTest):
assert response.status_code == status.HTTP_200_OK
assert response.json()["prompt"] == "@@@prompt:name=guardrails|label=production@@@"
- @patch("posthog.api.llm_prompt.prompt_partials_enabled", return_value=True)
- def test_label_move_changes_the_assembled_fetch(self, _flag):
+ def test_label_move_changes_the_assembled_fetch(self):
self._make_prompt("guardrails", prompt="Old rules.", label="prod")
self.client.post(
f"/api/environments/{self.team.id}/llm_prompts/",
@@ -2183,8 +2165,7 @@ class TestLLMPromptDependenciesAPI(APIBaseTest):
assert second.json()["prompt"] == "New rules."
assert second.json()["resolved_references"] == [{"name": "guardrails", "version": 2, "label": "prod"}]
- @patch("posthog.api.llm_prompt.prompt_partials_enabled", return_value=True)
- def test_fetch_404s_naming_a_missing_referenced_prompt(self, _flag):
+ def test_fetch_404s_naming_a_missing_referenced_prompt(self):
self._make_prompt("guardrails")
self.client.post(
f"/api/environments/{self.team.id}/llm_prompts/",
@@ -2199,8 +2180,7 @@ class TestLLMPromptDependenciesAPI(APIBaseTest):
assert response.json()["reference_name"] == "guardrails"
assert "guardrails" in response.json()["detail"]
- @patch("posthog.api.llm_prompt.prompt_partials_enabled", return_value=True)
- def test_fetch_409s_on_nested_references(self, _flag):
+ def test_fetch_409s_on_nested_references(self):
self._make_prompt("base")
self._make_prompt("mid", prompt="@@@prompt:name=base|version=1@@@")
# Bypasses publish validation the way a raced write would.
@@ -2211,8 +2191,7 @@ class TestLLMPromptDependenciesAPI(APIBaseTest):
assert response.status_code == status.HTTP_409_CONFLICT
assert response.json()["reference_name"] == "mid"
- @patch("posthog.api.llm_prompt.prompt_partials_enabled", return_value=True)
- def test_fetch_409s_when_assembly_exceeds_the_size_cap(self, _flag):
+ def test_fetch_409s_when_assembly_exceeds_the_size_cap(self):
self._make_prompt("big", prompt="x" * 600_000)
# Two tags to the same 600k partial: each version is under the cap,
# the assembly is not. Bypasses publish validation like a raced label move.
@@ -2223,8 +2202,7 @@ class TestLLMPromptDependenciesAPI(APIBaseTest):
assert response.status_code == status.HTTP_409_CONFLICT
assert response.json()["reference_name"] == "agent"
- @patch("posthog.api.llm_prompt.prompt_partials_enabled", return_value=True)
- def test_repeated_tags_cost_one_lookup_and_one_provenance_entry(self, _flag):
+ def test_repeated_tags_cost_one_lookup_and_one_provenance_entry(self):
self._make_prompt("guardrails", prompt="G.", label="production")
tag = "@@@prompt:name=guardrails|label=production@@@"
self.client.post(
@@ -2244,8 +2222,7 @@ class TestLLMPromptDependenciesAPI(APIBaseTest):
assert response.json()["resolved_references"] == [{"name": "guardrails", "version": 1, "label": "production"}]
assert cache_read.call_count == 1
- @patch("posthog.api.llm_prompt.prompt_partials_enabled", return_value=True)
- def test_assembly_exactly_at_the_cap_is_accepted(self, _flag):
+ def test_assembly_exactly_at_the_cap_is_accepted(self):
# Padding plus spliced content fits the cap only if the tag's own
# bytes are not double counted; the overcounting bug rejected this.
self._make_prompt("big", prompt="x" * 600_000)
@@ -2263,8 +2240,7 @@ class TestLLMPromptDependenciesAPI(APIBaseTest):
assert response.status_code == status.HTTP_200_OK
assert len(response.json()["prompt"]) == 1_000_000
- @patch("posthog.api.llm_prompt.prompt_partials_enabled", return_value=True)
- def test_transient_reference_lookup_failure_is_503_not_404(self, _flag):
+ def test_transient_reference_lookup_failure_is_503_not_404(self):
# A database outage degrades the cached lookup to None; that must not
# tell SDK callers the referenced prompt "no longer exists".
self._make_prompt("guardrails", label="production")
@@ -2302,8 +2278,7 @@ class TestLLMPromptDependenciesAPI(APIBaseTest):
response = self.client.get(f"/api/environments/{self.team.id}/llm_prompts/resolve/name/base/")
assert response.json()["referenced_by"] == []
- @patch("posthog.api.llm_prompt.prompt_partials_enabled", return_value=True)
- def test_labeled_list_resolves_references(self, _flag):
+ def test_labeled_list_resolves_references(self):
self._make_prompt("guardrails", prompt="G.", label="shared")
agent = self.client.post(
f"/api/environments/{self.team.id}/llm_prompts/",
@@ -2331,8 +2306,7 @@ class TestLLMPromptDependenciesAPI(APIBaseTest):
assert rows["plain"]["prompt"] == "No tags."
assert rows["plain"]["resolved_references"] == []
- @patch("posthog.api.llm_prompt.prompt_partials_enabled", return_value=True)
- def test_labeled_list_fails_naming_the_prompt_whose_reference_cannot_resolve(self, _flag):
+ def test_labeled_list_fails_naming_the_prompt_whose_reference_cannot_resolve(self):
self._make_prompt("healthy", prompt="Fine.", label="production")
# Simulates a raced write: a labeled prompt referencing a prompt that no longer exists.
self._make_prompt("broken", prompt="@@@prompt:name=missing|version=1@@@", label="production")
@@ -2344,23 +2318,18 @@ class TestLLMPromptDependenciesAPI(APIBaseTest):
assert response.json()["reference_name"] == "missing"
assert "broken" in response.json()["detail"]
- @patch("posthog.api.llm_prompt.prompt_partials_enabled", return_value=False)
- def test_labeled_list_passes_tags_through_when_flag_is_off(self, _flag):
+ def test_labeled_list_with_resolve_false_returns_raw_tags(self):
self._make_prompt("guardrails", prompt="G.", label="shared")
self._make_prompt("agent", prompt="@@@prompt:name=guardrails|label=shared@@@", label="production")
- response = self.client.get(f"/api/environments/{self.team.id}/llm_prompts/?label=production&content=full")
+ response = self.client.get(
+ f"/api/environments/{self.team.id}/llm_prompts/?label=production&content=full&resolve=false"
+ )
rows = {row["name"]: row for row in response.json()["results"]}
assert rows["agent"]["prompt"] == "@@@prompt:name=guardrails|label=shared@@@"
assert rows["agent"]["resolved_references"] is None
- with patch("posthog.api.llm_prompt.prompt_partials_enabled", return_value=True):
- raw = self.client.get(
- f"/api/environments/{self.team.id}/llm_prompts/?label=production&content=full&resolve=false"
- )
- assert raw.json()["results"][0]["prompt"] == "@@@prompt:name=guardrails|label=shared@@@"
-
def test_label_cannot_activate_a_version_whose_references_went_dead(self):
self._make_prompt("dep")
self.client.post(
diff --git a/products/ai_observability/backend/prompt_references.py b/products/ai_observability/backend/prompt_references.py
index 8fe43b779f54..cb03ffca8430 100644
--- a/products/ai_observability/backend/prompt_references.py
+++ b/products/ai_observability/backend/prompt_references.py
@@ -6,7 +6,6 @@ from django.db import InterfaceError, OperationalError
from django.db.models import Q
import structlog
-import posthoganalytics
from rest_framework import serializers
from posthog.dataclasses import frozen
@@ -441,41 +440,18 @@ def assemble_prompt_payload(
return {**payload, "prompt": assembled, "resolved_references": resolved}
-PROMPT_PARTIALS_FLAG = "prompt-partials"
-
-
-def prompt_partials_enabled(team: Team) -> bool:
- """Kill switch for reference resolution. Flag off = tags pass through as plain text."""
- try:
- return bool(
- posthoganalytics.feature_enabled(
- PROMPT_PARTIALS_FLAG,
- str(team.uuid),
- groups={"organization": str(team.organization_id), "project": str(team.id)},
- group_properties={"organization": {"id": str(team.organization_id)}},
- only_evaluate_locally=False,
- send_feature_flag_events=False,
- )
- )
- except Exception:
- # Flag service unavailable must not take down a prompt fetch.
- return False
-
-
def resolve_prompt_references(team: Team, content: str) -> str | None:
"""Splice referenced partials into a managed prompt's `content`.
Internal features that read a team's managed prompt by name must resolve
reference tags the same way the SDK fetch path does, so a raw tag never
- reaches an LLM. Returns `content` unchanged when the feature is off or there
- is nothing to resolve, the assembled text when every reference resolves, or
- None when a reference cannot be resolved so the caller falls back to its
- in-code default prompt instead of sending a raw tag.
+ reaches an LLM. Returns `content` unchanged when there is nothing to
+ resolve, the assembled text when every reference resolves, or None when a
+ reference cannot be resolved so the caller falls back to its in-code
+ default prompt instead of sending a raw tag.
"""
if not content or not PROMPT_REFERENCE_REGEX.search(content):
return content
- if not prompt_partials_enabled(team):
- return content
try:
return assemble_prompt_payload(team, {"name": "", "prompt": content})["prompt"]
except Exception:
diff --git a/products/ai_observability/backend/test/test_prompt_references.py b/products/ai_observability/backend/test/test_prompt_references.py
index 23a88e8a3c80..27fead12da64 100644
--- a/products/ai_observability/backend/test/test_prompt_references.py
+++ b/products/ai_observability/backend/test/test_prompt_references.py
@@ -74,24 +74,14 @@ class TestResolvePromptReferences(SimpleTestCase):
assert result == "plain prompt, no tags"
cache.assert_not_called()
- @patch(f"{RESOLVER}.prompt_partials_enabled", return_value=False)
- def test_passes_through_raw_tags_when_flag_off(self, _flag: MagicMock) -> None:
- content = "before @@@prompt:name=foo|label=live@@@ after"
- with patch(f"{RESOLVER}.get_prompt_by_name_from_cache") as cache:
- result = prompt_references.resolve_prompt_references(self.team, content)
- assert result == content
- cache.assert_not_called()
-
- @patch(f"{RESOLVER}.prompt_partials_enabled", return_value=True)
@patch(f"{RESOLVER}.get_prompt_by_name_from_cache")
- def test_splices_referenced_content_when_flag_on(self, cache: MagicMock, _flag: MagicMock) -> None:
+ def test_splices_referenced_content(self, cache: MagicMock) -> None:
cache.return_value = {"prompt": "CHILD", "version": 2}
result = prompt_references.resolve_prompt_references(self.team, "before @@@prompt:name=foo|label=live@@@ after")
assert result == "before CHILD after"
- @patch(f"{RESOLVER}.prompt_partials_enabled", return_value=True)
@patch(f"{RESOLVER}.get_prompt_by_name_from_cache")
- def test_returns_none_when_reference_unresolvable(self, cache: MagicMock, _flag: MagicMock) -> None:
+ def test_returns_none_when_reference_unresolvable(self, cache: MagicMock) -> None:
# A referenced prompt that holds a tag of its own can't be spliced in; the caller
# must fall back to its default rather than send a raw tag to the model.
cache.return_value = {"prompt": "nested @@@prompt:name=bar|label=live@@@", "version": 1}
diff --git a/products/ai_observability/mcp/tools.yaml b/products/ai_observability/mcp/tools.yaml
index 40c1d7017695..01c087a023ce 100644
--- a/products/ai_observability/mcp/tools.yaml
+++ b/products/ai_observability/mcp/tools.yaml
@@ -1072,8 +1072,6 @@ tools:
the assembled content with each reference replaced by the referenced prompt's content, and
`resolved_references` lists the exact versions spliced in. Pass `resolve=false` to get the raw text
with the tags intact — always do this before editing the prompt (see llma-prompt-update).
- References are rolling out gradually: when not enabled for the team, responses return the raw tags
- and no `resolved_references`, so treat content containing `@@@prompt:` as unresolved.
category: Experiments
param_overrides:
prompt_name:
@@ -1137,8 +1135,7 @@ tools:
prompt — use it as a lightweight table of contents, and pair with `content=none` to keep responses small.
With `label` and `content=full`, prompt content is returned with `@@@prompt:...@@@` references resolved and
`resolved_references` listing the spliced versions; unlabeled listings return raw content with any reference
- tags intact. Reference resolution is rolling out gradually and returns raw tags when not enabled for the
- team.
+ tags intact.
category: Experiments
llma-prompt-resolve:
operation: llm_prompts_resolve_name_retrieve
diff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.json
index d9071031e92f..4396f7b1d79f 100644
--- a/services/mcp/schema/generated-tool-definitions.json
+++ b/services/mcp/schema/generated-tool-definitions.json
@@ -7879,7 +7879,7 @@
}
},
"llma-prompt-get": {
- "description": "Get a specific LLM prompt by name. Requires `prompt_name`, which takes either the prompt's exact name or\nthe `id` UUID from any llma-prompt-list or llma-prompt-get response. Call llma-prompt-list to discover\nvalid names; a guessed name that matches nothing returns a 404.\nAn id identifies the prompt, not the version it came from, so passing a specific version's id still\nreturns the latest version. Pass `version` or `label` to pin one.\nUses the cached endpoint for fast retrieval.\nPass `label` (e.g. 'production') to fetch the version that label currently points to, or `version` for an\nexact version number — not both. With neither, the latest version is returned.\nThe response always includes `outline`, a flat list of markdown headings parsed from the prompt — useful\nas a lightweight table of contents. Pass `content=none` to get the outline without the prompt payload,\nor `content=preview` for a short `prompt_preview` snippet instead of the full prompt.\nWith full content the response also includes `config`, the JSON object of model parameters or agent\nconfiguration stored with the version (null when the version has none).\nPrompt content can contain `@@@prompt:...@@@` references to other prompts. By default the response is\nthe assembled content with each reference replaced by the referenced prompt's content, and\n`resolved_references` lists the exact versions spliced in. Pass `resolve=false` to get the raw text\nwith the tags intact — always do this before editing the prompt (see llma-prompt-update).\nReferences are rolling out gradually: when not enabled for the team, responses return the raw tags\nand no `resolved_references`, so treat content containing `@@@prompt:` as unresolved.",
+ "description": "Get a specific LLM prompt by name. Requires `prompt_name`, which takes either the prompt's exact name or\nthe `id` UUID from any llma-prompt-list or llma-prompt-get response. Call llma-prompt-list to discover\nvalid names; a guessed name that matches nothing returns a 404.\nAn id identifies the prompt, not the version it came from, so passing a specific version's id still\nreturns the latest version. Pass `version` or `label` to pin one.\nUses the cached endpoint for fast retrieval.\nPass `label` (e.g. 'production') to fetch the version that label currently points to, or `version` for an\nexact version number — not both. With neither, the latest version is returned.\nThe response always includes `outline`, a flat list of markdown headings parsed from the prompt — useful\nas a lightweight table of contents. Pass `content=none` to get the outline without the prompt payload,\nor `content=preview` for a short `prompt_preview` snippet instead of the full prompt.\nWith full content the response also includes `config`, the JSON object of model parameters or agent\nconfiguration stored with the version (null when the version has none).\nPrompt content can contain `@@@prompt:...@@@` references to other prompts. By default the response is\nthe assembled content with each reference replaced by the referenced prompt's content, and\n`resolved_references` lists the exact versions spliced in. Pass `resolve=false` to get the raw text\nwith the tags intact — always do this before editing the prompt (see llma-prompt-update).",
"category": "Experiments",
"feature": "llm_analytics",
"summary": "Get prompt",
@@ -7921,7 +7921,7 @@
}
},
"llma-prompt-list": {
- "description": "List all LLM prompts stored for the current team. Optionally filter by name. Pass `label` (e.g. 'production') to get each prompt at the version that label currently points to; prompts without that label are omitted. Returns paginated prompt summaries. By default, only prompt metadata is returned, not full prompt content. Every result also includes `outline`, a flat list of markdown headings parsed from the prompt — use it as a lightweight table of contents, and pair with `content=none` to keep responses small. With `label` and `content=full`, prompt content is returned with `@@@prompt:...@@@` references resolved and `resolved_references` listing the spliced versions; unlabeled listings return raw content with any reference tags intact. Reference resolution is rolling out gradually and returns raw tags when not enabled for the team.",
+ "description": "List all LLM prompts stored for the current team. Optionally filter by name. Pass `label` (e.g. 'production') to get each prompt at the version that label currently points to; prompts without that label are omitted. Returns paginated prompt summaries. By default, only prompt metadata is returned, not full prompt content. Every result also includes `outline`, a flat list of markdown headings parsed from the prompt — use it as a lightweight table of contents, and pair with `content=none` to keep responses small. With `label` and `content=full`, prompt content is returned with `@@@prompt:...@@@` references resolved and `resolved_references` listing the spliced versions; unlabeled listings return raw content with any reference tags intact.",
"category": "Experiments",
"feature": "llm_analytics",
"summary": "List prompts",
diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.json
index 4b4fe6fcf84b..870812e298f4 100644
--- a/services/mcp/schema/tool-definitions-all.json
+++ b/services/mcp/schema/tool-definitions-all.json
@@ -8118,7 +8118,7 @@
}
},
"llma-prompt-get": {
- "description": "Get a specific LLM prompt by name. Requires `prompt_name`, which takes either the prompt's exact name or\nthe `id` UUID from any llma-prompt-list or llma-prompt-get response. Call llma-prompt-list to discover\nvalid names; a guessed name that matches nothing returns a 404.\nAn id identifies the prompt, not the version it came from, so passing a specific version's id still\nreturns the latest version. Pass `version` or `label` to pin one.\nUses the cached endpoint for fast retrieval.\nPass `label` (e.g. 'production') to fetch the version that label currently points to, or `version` for an\nexact version number — not both. With neither, the latest version is returned.\nThe response always includes `outline`, a flat list of markdown headings parsed from the prompt — useful\nas a lightweight table of contents. Pass `content=none` to get the outline without the prompt payload,\nor `content=preview` for a short `prompt_preview` snippet instead of the full prompt.\nWith full content the response also includes `config`, the JSON object of model parameters or agent\nconfiguration stored with the version (null when the version has none).\nPrompt content can contain `@@@prompt:...@@@` references to other prompts. By default the response is\nthe assembled content with each reference replaced by the referenced prompt's content, and\n`resolved_references` lists the exact versions spliced in. Pass `resolve=false` to get the raw text\nwith the tags intact — always do this before editing the prompt (see llma-prompt-update).\nReferences are rolling out gradually: when not enabled for the team, responses return the raw tags\nand no `resolved_references`, so treat content containing `@@@prompt:` as unresolved.",
+ "description": "Get a specific LLM prompt by name. Requires `prompt_name`, which takes either the prompt's exact name or\nthe `id` UUID from any llma-prompt-list or llma-prompt-get response. Call llma-prompt-list to discover\nvalid names; a guessed name that matches nothing returns a 404.\nAn id identifies the prompt, not the version it came from, so passing a specific version's id still\nreturns the latest version. Pass `version` or `label` to pin one.\nUses the cached endpoint for fast retrieval.\nPass `label` (e.g. 'production') to fetch the version that label currently points to, or `version` for an\nexact version number — not both. With neither, the latest version is returned.\nThe response always includes `outline`, a flat list of markdown headings parsed from the prompt — useful\nas a lightweight table of contents. Pass `content=none` to get the outline without the prompt payload,\nor `content=preview` for a short `prompt_preview` snippet instead of the full prompt.\nWith full content the response also includes `config`, the JSON object of model parameters or agent\nconfiguration stored with the version (null when the version has none).\nPrompt content can contain `@@@prompt:...@@@` references to other prompts. By default the response is\nthe assembled content with each reference replaced by the referenced prompt's content, and\n`resolved_references` lists the exact versions spliced in. Pass `resolve=false` to get the raw text\nwith the tags intact — always do this before editing the prompt (see llma-prompt-update).",
"category": "Experiments",
"feature": "llm_analytics",
"summary": "Get prompt",
@@ -8160,7 +8160,7 @@
}
},
"llma-prompt-list": {
- "description": "List all LLM prompts stored for the current team. Optionally filter by name. Pass `label` (e.g. 'production') to get each prompt at the version that label currently points to; prompts without that label are omitted. Returns paginated prompt summaries. By default, only prompt metadata is returned, not full prompt content. Every result also includes `outline`, a flat list of markdown headings parsed from the prompt — use it as a lightweight table of contents, and pair with `content=none` to keep responses small. With `label` and `content=full`, prompt content is returned with `@@@prompt:...@@@` references resolved and `resolved_references` listing the spliced versions; unlabeled listings return raw content with any reference tags intact. Reference resolution is rolling out gradually and returns raw tags when not enabled for the team.",
+ "description": "List all LLM prompts stored for the current team. Optionally filter by name. Pass `label` (e.g. 'production') to get each prompt at the version that label currently points to; prompts without that label are omitted. Returns paginated prompt summaries. By default, only prompt metadata is returned, not full prompt content. Every result also includes `outline`, a flat list of markdown headings parsed from the prompt — use it as a lightweight table of contents, and pair with `content=none` to keep responses small. With `label` and `content=full`, prompt content is returned with `@@@prompt:...@@@` references resolved and `resolved_references` listing the spliced versions; unlabeled listings return raw content with any reference tags intact.",
"category": "Experiments",
"feature": "llm_analytics",
"summary": "List prompts",