Instrument
Firms add the Clarent SDK to their agent code with a handful of decorators. Every decision, tool call, and sub-agent delegation becomes a structured span before any data leaves the firm's environment.
Under the hood
A pip install clarent-sdk, then @clarent.trace_agent on each root agent function and clarent.trace_action() context managers on internal steps. Spans are built in OpenTelemetry's OTLP format and transported over HTTPS, so Clarent slots into any existing observability pipeline.
A PII scrubber runs in-process, inside your application, before any span leaves the firm. UK regex patterns cover National Insurance numbers, account numbers, sort codes, postcodes, and IBANs, plus configurable custom patterns for firm-specific identifiers.
# Configure once, at process start import clarent clarent.configure( api_key="clr_live_xxxx", firm_id="firm_acme_bank", environment="production", ) # Decorate the root agent function @clarent.trace_agent( agent_id="complaint-handler-v2", smf_owner="SMF24", policy_scope=["OUTCOME_SUPPORT", "OUTCOME_UNDERSTANDING"], model_ref="complaint-handler-v2.1-validated", ) def handle_complaint(complaint_text: str, customer_id: str) -> dict: ...
No PII leaves your environment. Clarent infrastructure never sees raw customer data.