Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Enable analytics collection with Posthog’s LLM observability for prompts, tool calls, and AI output.
func ConfigureAnalytics(did, tid string) ai.Option
POSTHOG_KEY=phc_... POSTHOG_ENDPOINT=https://app.posthog.com
kai := ai.NewKarmaAI( ai.GPT4o, // pick a model ai.OpenAI, // pick a provider ai.ConfigureAnalytics("user-123", "trace-abc"), )
With analytics on, Karma AI will capture user prompts, tool calls (if MCP/tools enabled), and AI responses under your identifiers.