|
| 1 | +--- |
| 2 | +title: Claude Agent SDK LLM analytics installation |
| 3 | +platformIconName: IconAnthropic |
| 4 | +showStepsToc: true |
| 5 | +tableOfContents: |
| 6 | + [ |
| 7 | + { url: "install-the-posthog-sdk", value: "Install the PostHog SDK", depth: 1 }, |
| 8 | + { url: "install-the-claude-agent-sdk", value: "Install the Claude Agent SDK", depth: 1 }, |
| 9 | + { |
| 10 | + url: "initialize-posthog-and-run-a-query", |
| 11 | + value: "Initialize PostHog and run a query", |
| 12 | + depth: 1, |
| 13 | + }, |
| 14 | + { |
| 15 | + url: "reusable-configuration-with-instrument", |
| 16 | + value: "Reusable configuration with instrument()", |
| 17 | + depth: 1, |
| 18 | + }, |
| 19 | + { |
| 20 | + url: "tool-usage-and-multi-turn-conversations", |
| 21 | + value: "Tool usage and multi-turn conversations", |
| 22 | + depth: 1, |
| 23 | + }, |
| 24 | + { |
| 25 | + url: "multi-turn-conversations-with-history", |
| 26 | + value: "Multi-turn conversations with history", |
| 27 | + depth: 1, |
| 28 | + }, |
| 29 | + { url: "verify-traces-and-generations", value: "Verify traces and generations", depth: 1 }, |
| 30 | + ] |
| 31 | +--- |
| 32 | + |
| 33 | +<!-- |
| 34 | +This page imports shared onboarding content from the main PostHog repo. |
| 35 | +Source: https://github.com/PostHog/posthog/blob/master/docs/onboarding/llm-analytics/claude-agent-sdk.tsx |
| 36 | +See the docs runbook for more info: https://posthog.com/handbook/docs-and-wizard/onboarding-docs |
| 37 | +--> |
| 38 | + |
| 39 | +import { ClaudeAgentSDKInstallation } from "onboarding/llm-analytics/claude-agent-sdk.tsx"; |
| 40 | +import { OnboardingContentWrapper } from "components/Docs/OnboardingContentWrapper"; |
| 41 | +import NotableGenerationProperties from "../_snippets/notable-generation-properties.mdx"; |
| 42 | +import { addNextStepsStep } from "./_snippets/shared-helpers.tsx"; |
| 43 | + |
| 44 | +<OnboardingContentWrapper snippets={{ NotableGenerationProperties }}> |
| 45 | + <ClaudeAgentSDKInstallation modifySteps={addNextStepsStep} /> |
| 46 | +</OnboardingContentWrapper> |
0 commit comments