forked from cardosofelipe/fast-next-template
- Add MCPSafetyWrapper for safe MCP tool execution - Add MCPToolCall/MCPToolResult models for MCP interactions - Add SafeToolExecutor context manager - Add SafetyMetrics collector with Prometheus export support - Track validations, approvals, rate limits, budgets, and more - Support for counters, gauges, and histograms Issue #63 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
20 lines
339 B
Python
20 lines
339 B
Python
"""Safety metrics collection and export."""
|
|
|
|
from .collector import (
|
|
MetricType,
|
|
MetricValue,
|
|
SafetyMetrics,
|
|
get_safety_metrics,
|
|
record_mcp_call,
|
|
record_validation,
|
|
)
|
|
|
|
__all__ = [
|
|
"MetricType",
|
|
"MetricValue",
|
|
"SafetyMetrics",
|
|
"get_safety_metrics",
|
|
"record_mcp_call",
|
|
"record_validation",
|
|
]
|