Skip to content

recipe(voice-agents): add governed voice agent with PII redaction and cost caps - #77

Open
nagasatish007 wants to merge 4 commits into
smallest-inc:mainfrom
nagasatish007:main
Open

recipe(voice-agents): add governed voice agent with PII redaction and cost caps#77
nagasatish007 wants to merge 4 commits into
smallest-inc:mainfrom
nagasatish007:main

Conversation

@nagasatish007

Copy link
Copy Markdown

What

Adds a voice-agents/governance/ example showing how to add deterministic governance to a Smallest AI voice agent using TealTiger (Apache-2.0).

Why

Voice agents in production (healthcare, fintech, support) handle spoken sensitive data — SSNs, credit card numbers, account numbers. Without governance, this PII flows through the STT → LLM → TTS pipeline unscanned. This example demonstrates:

  • PII scanning on transcribed speech before it reaches the LLM
  • Per-call cost budget enforcement ($2 hard cap)
  • Tool authorization for voice-triggered actions
  • Audit trail for HIPAA/PCI-DSS compliance

Files added

  • voice-agents/governance/app.py — Main example
  • voice-agents/governance/README.md — Documentation
  • voice-agents/governance/.env.sample — API key template
  • voice-agents/governance/requirements.txt — Dependencies
  • README.md — Updated root README with example listing

Governance properties

  • No LLM in governance path (regex + policy rules only)
  • Under 5ms per evaluation — imperceptible in voice latency
  • Runs in-process — no external service calls for governance
  • ENFORCE / MONITOR / REPORT_ONLY modes

Testing

  • Verified app.py imports and syntax
  • TealTiger governance logic runs without API keys (in-process)
  • Voice agent requires SMALLEST_API_KEY and OPENAI_API_KEY for live calls

This script implements a governed voice agent that includes PII redaction, cost caps, tool authorization, and rate limiting for enhanced compliance and security.
This README provides an overview of the Governed Voice Agent, detailing its functionality, setup instructions, governance mechanisms, compliance use cases, and related resources.
@vercel

vercel Bot commented Aug 9, 2026

Copy link
Copy Markdown

@nagasatish007 is attempting to deploy a commit to the developer-2074's projects Team on Vercel.

A member of the Team first needs to authorize it.

@nagasatish007

Copy link
Copy Markdown
Author

@abhishekmishragithub Please review this PR and suggest changes or feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant