Skip to content

docs(llm-analytics): Add $ai_stop_reason property documentation#55239

Merged
carlos-marchal-ph merged 1 commit into
masterfrom
docs-writer-ai-update-2026-04-20T09-48-07-628Z-tzgxk3
Apr 20, 2026
Merged

docs(llm-analytics): Add $ai_stop_reason property documentation#55239
carlos-marchal-ph merged 1 commit into
masterfrom
docs-writer-ai-update-2026-04-20T09-48-07-628Z-tzgxk3

Conversation

@inkeep
Copy link
Copy Markdown
Contributor

@inkeep inkeep Bot commented Apr 20, 2026

Changes

Documents the new $ai_stop_reason property added in #54037 for LLM analytics.

Updated files

  • docs/onboarding/llm-analytics/_snippets/generation-event.tsx – Added $ai_stop_reason to the Core properties table

Property details

Property Description
$ai_stop_reason (Optional) The reason the model stopped generating tokens. Examples: end_turn, stop, max_tokens, tool_use

This property captures why LLM model responses ended, mapped from various OTel attributes:

  • llm.response.finish_reason
  • llm.response.stop_reason
  • ai.response.finishReason
  • gen_ai.response.finish_reasons

This PR was created by the Inkeep Content Writer agent, which is maintained by the Docs and Wizard team. Please reach out on Slack for help if needed.

Reflects PR #54037 which adds $ai_stop_reason to LLM analytics,
capturing why model responses ended (e.g. stop, end_turn, max_tokens,
tool_use).
@inkeep inkeep Bot requested a review from carlos-marchal-ph April 20, 2026 09:49
@github-actions
Copy link
Copy Markdown
Contributor

Docs from this PR will be published at posthog.com

Project Deployment Preview Updated (UTC)
posthog.com 🤷 Unknown Preview Apr 20, 2026, 9:49 AM

Preview will be ready in ~10 minutes. Click Preview link above to access docs at /handbook/engineering/

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented Apr 20, 2026

Reviews (1): Last reviewed commit: "Add $ai_stop_reason property to generati..." | Re-trigger Greptile

@carlos-marchal-ph carlos-marchal-ph merged commit c6a4e96 into master Apr 20, 2026
141 checks passed
@carlos-marchal-ph carlos-marchal-ph deleted the docs-writer-ai-update-2026-04-20T09-48-07-628Z-tzgxk3 branch April 20, 2026 14:13
@deployment-status-posthog
Copy link
Copy Markdown

deployment-status-posthog Bot commented Apr 20, 2026

Deploy status

Environment Status Deployed At Workflow
dev ✅ Deployed 2026-04-20 14:47 UTC Run
prod-us ✅ Deployed 2026-04-21 04:41 UTC Run
prod-eu ✅ Deployed 2026-04-20 15:43 UTC Run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant