: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
"""Shared helpers for the PostHog AI sandbox-runtime services."""
from posthog.models import Team, User
class BaseSandboxService:
"""Shared base for the sandbox-runtime services that act on behalf of a user.
Holds the team/user the services operate against; extension point for any future
shared behavior.
"""
def __init__(self, team: Team, user: User) -> None:
self.team = team
self.user = user