TealTiger
⚡ Guida rapida in 60 secondi
Installa: npm install tealtiger o pip install tealtiger, poi avvolgi una chiamata OpenAI esistente:```typescript
import { TealOpenAI } from 'tealtiger';
const client = new TealOpenAI({ apiKey: process.env.OPENAI_API_KEY, guardrails: { promptInjection: true } });
const res = await client.chat.completions.create({ model: 'gpt-4o-mini', messages: [{ role: 'user', content: 'Hello!' }] });
console.log(res.security?.decision ?? 'ALLOW');
Da utilizzare per incorporare componenti open source e di terze parti nei tuoi progetti, oppure come base per
un nuovo progetto open source con l'obiettivo di spostare l'economia dello sviluppo di dApp verso
la sua comunità di manutentori e lontano da intermediari che cercano rendite.
#### Componenti personalizzati
Sono disponibili i seguenti componenti personalizzati per integrare funzionalità di marketplace nei tuoi
Workflows:
- [Log Snag](https://github.com/PipedreamHQ/pipedream/components/blob/master/pipedream/logsnag/README.md):
Tieni traccia facilmente degli eventi del tuo workflow e ricevi notifiche su desktop, dispositivo mobile o smartwatch.
- [OneSignal](https://github.com/PipedreamHQ/pipedream/blob/master/components/onesignal/README.md) /
[Twilio SendGrid](https://github.com/PipedreamHQ/pipedream/blob/master/components/sendgrid/README.md):
Invia email e notifiche push ai tuoi utenti.```python
import os
from tealtiger import TealOpenAI
client = TealOpenAI(api_key=os.environ["OPENAI_API_KEY"], guardrails={"prompt_injection": True})
print(client.chat.completions.create(model="gpt-4o-mini", messages=[{"role": "user", "content": "Hello!"}]).security.decision)
```text
ALLOW
Governance receipt emitted; cost and guardrails tracked.
Prossimo: [full Quick Start](#-quick-start) e [esempi](https://github.com/agentguard-ai/tealtiger/blob/main/examples).
---
## 🔭 observe() — Strumentazione Zero-Config (v1.4)
Una riga aggiunge il monitoraggio dei costi, la registrazione di audit, il rilevamento di PII e le baseline comportamentali a qualsiasi client LLM. Nessun file di configurazione, nessuna definizione di policy.```typescript
import { observe, freeze } from 'tealtiger';
const client = observe(new OpenAI()); // done — all calls are now instrumented
console.log(client.getCost()); // { totalCost: 0.0023, requestCount: 1, ... }
| Port | Transport | Protocol |
|---|
111 | TCP, UDP | Portmapper (NFS) |
135 | TCP, UDP | EPMAP (Microsoft RPC) |
137 | TCP, UDP | NetBIOS-NS |
139 | TCP | SMB |
445 | TCP | SMB over TCP |
| Port | Transport | Protocol |
|---|
53 | TCP, UDP | DNS |
| Port | Transport | Protocol |
|---|
21 | TCP | FTP |
| Port | Transport | Protocol |
|---|
80 | TCP | HTTP |
8000 | TCP | HTTP |
8080 | TCP | HTTP |
| Port | Transport | Protocol |
|---|
443 | TCP | HTTPS |
8443 | TCP | HTTPS |
| Port | Transport | Protocol |
|---|
389 | TCP, UDP | LDAP |
636 | TCP | LDAPS |
| Port | Transport | Protocol |
|---|
1433 | TCP | MSSQL |
| Port | Transport | Protocol |
|---|
1521 | TCP | Oracle TNS Listener |
| Port | Transport | Protocol |
|---|
3306 | TCP | MySQL |
| Port | Transport | Protocol |
|---|
3389 | TCP | RDP |
443 | TCP | RDP Gateway |
| Port | Transport | Protocol |
|---|
22 | TCP | SSH |
| Port | Transport | Protocol |
|---|
23 | TCP | Telnet |
| Port | Transport | Protocol |
|---|
5900 | TCP | VNC |
5901 | TCP | VNC |
| from tealtiger.observe import observe, freeze | | |
| client = observe(OpenAI()) # done — all calls are now instrumented | | |
| print(client.get_cost()) # ObserveCostSummary(total_cost=0.0023, ...) | | |
**Cosa ottieni automaticamente:** monitoraggio dei costi per richiesta su 12 provider, log di audit strutturato con ID di correlazione, baseline comportamentale (P50/P95/P99), rilevamento PII in modalità REPORT_ONLY e un interruttore di arresto immediato tramite `freeze()`. Overhead inferiore a 5ms per chiamata.
Vedi [examples/observe-quickstart.ts](https://github.com/agentguard-ai/tealtiger/blob/main/examples/observe-quickstart.ts) e [examples/observe_quickstart.py](https://github.com/agentguard-ai/tealtiger/blob/main/examples/observe_quickstart.py).
---
---
## 📊 Dashboard di Governance (v1.4)
Visibilità in tempo reale sulla tua flotta di agenti AI — postura di sicurezza, governance dei costi e avvisi comportamentali in un'unica vista.
<div align="center">
<img src="https://assets.kitploit.com/production/public/readmes/12842/41f95973c706522c5b907a5d7d96565247adff159a2de9a15c45087ae8dd1351.png" alt="Dashboard di Governance TealTiger" width="900">
</div>