Python SDK
The TapPass Python SDK provides a typed client for governed AI agent interactions.
pip install tappassQuick example
Section titled “Quick example”from tappass import Agent
agent = Agent("http://localhost:9620", "tp_...")response = agent.chat("Analyze Q3 revenue trends")
print(response.content) # "Revenue grew 12%..."print(response.pipeline.classification) # "INTERNAL"Sections
Section titled “Sections”| Page | Description |
|---|---|
| Agent | Agent class: chat, stream, govern tools, sandbox |
| Governance Flags | Control agent behavior with flags |
| Streaming | Sync and async streaming |
| Tool Governance | Wrap tools for audited execution |
| Sandbox | Kernel-level isolation and trust tiers |
| Admin Client | TapPass admin class: pipelines, agents, audit |
| Response Types | ChatResponse, Usage, PipelineResult, etc. |
| Error Handling | PolicyBlockError and retry behavior |
| Frameworks | OpenAI, LangChain, CrewAI, Anthropic integrations |
License
Section titled “License”Apache 2.0: free to use, modify, and distribute.