Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions contents/docs/llm-analytics/installation/claude-agent-sdk.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
title: Claude Agent SDK LLM analytics installation
platformIconName: IconAnthropic
showStepsToc: true
tableOfContents:
[
{ url: "install-the-posthog-sdk", value: "Install the PostHog SDK", depth: 1 },
{ url: "install-the-claude-agent-sdk", value: "Install the Claude Agent SDK", depth: 1 },
{
url: "initialize-posthog-and-run-a-query",
value: "Initialize PostHog and run a query",
depth: 1,
},
{
url: "reusable-configuration-with-instrument",
value: "Reusable configuration with instrument()",
depth: 1,
},
{
url: "tool-usage-and-multi-turn-conversations",
value: "Tool usage and multi-turn conversations",
depth: 1,
},
{
url: "multi-turn-conversations-with-history",
value: "Multi-turn conversations with history",
depth: 1,
},
{ url: "verify-traces-and-generations", value: "Verify traces and generations", depth: 1 },
]
---

<!--
This page imports shared onboarding content from the main PostHog repo.
Source: https://github.com/PostHog/posthog/blob/master/docs/onboarding/llm-analytics/claude-agent-sdk.tsx
See the docs runbook for more info: https://posthog.com/handbook/docs-and-wizard/onboarding-docs
-->

import { ClaudeAgentSDKInstallation } from "onboarding/llm-analytics/claude-agent-sdk.tsx";
import { OnboardingContentWrapper } from "components/Docs/OnboardingContentWrapper";
import NotableGenerationProperties from "../_snippets/notable-generation-properties.mdx";
import { addNextStepsStep } from "./_snippets/shared-helpers.tsx";

<OnboardingContentWrapper snippets={{ NotableGenerationProperties }}>
<ClaudeAgentSDKInstallation modifySteps={addNextStepsStep} />
</OnboardingContentWrapper>
Loading