agentflight-mcp 1.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- agentflight/__init__.py +104 -0
- agentflight/cli.py +827 -0
- agentflight/diff.py +404 -0
- agentflight/eval.py +259 -0
- agentflight/guard.py +323 -0
- agentflight/http_server.py +135 -0
- agentflight/linter.py +733 -0
- agentflight/mcp_server.py +730 -0
- agentflight/otel_export.py +217 -0
- agentflight/post_mortem.py +321 -0
- agentflight/providers/__init__.py +52 -0
- agentflight/providers/openany.py +965 -0
- agentflight/recorder.py +607 -0
- agentflight/schema_optimizer.py +168 -0
- agentflight/testing.py +270 -0
- agentflight_mcp-1.2.0.dist-info/METADATA +552 -0
- agentflight_mcp-1.2.0.dist-info/RECORD +21 -0
- agentflight_mcp-1.2.0.dist-info/WHEEL +5 -0
- agentflight_mcp-1.2.0.dist-info/entry_points.txt +2 -0
- agentflight_mcp-1.2.0.dist-info/licenses/LICENSE +21 -0
- agentflight_mcp-1.2.0.dist-info/top_level.txt +1 -0
agentflight/__init__.py
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"""
|
|
2
|
+
agentflight
|
|
3
|
+
===========
|
|
4
|
+
AI Agent Black-Box Flight Recorder, Deterministic Trajectory Replay,
|
|
5
|
+
Loop/Cost Circuit Breaker & MCP Tool-Smell Linter.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from .diff import (
|
|
9
|
+
TrajectoryDifferentialAnalyzer,
|
|
10
|
+
TrajectoryDiffReport,
|
|
11
|
+
compare_cassettes,
|
|
12
|
+
compute_lcs_length,
|
|
13
|
+
compute_levenshtein_distance,
|
|
14
|
+
)
|
|
15
|
+
from .eval import StepDiffItem, TrajectoryEvaluator, diff_trajectories
|
|
16
|
+
from .guard import CircuitBreakerStats, CircuitBreakerTripped, TrajectoryCircuitBreaker
|
|
17
|
+
from .linter import (
|
|
18
|
+
RULE_CATALOG,
|
|
19
|
+
SHOWCASE_FLAWED_MCP_TOOLS,
|
|
20
|
+
SHOWCASE_HARDENED_MCP_TOOLS,
|
|
21
|
+
ToolLintReport,
|
|
22
|
+
ToolSmellFinding,
|
|
23
|
+
ToolSmellLinter,
|
|
24
|
+
estimate_schema_tokens,
|
|
25
|
+
)
|
|
26
|
+
from .mcp_server import AgentFlightMCPServer, MCP_TOOLS
|
|
27
|
+
from .otel_export import OTelSpanPayload, export_cassette_to_otel
|
|
28
|
+
from .post_mortem import FlightPostMortemAnalyzer, IncidentReport
|
|
29
|
+
from .providers import get_provider, list_providers, register_provider
|
|
30
|
+
from .providers.openany import (
|
|
31
|
+
OpenAnyAuthError,
|
|
32
|
+
OpenAnyBudgetExceededError,
|
|
33
|
+
OpenAnyConfig,
|
|
34
|
+
OpenAnyError,
|
|
35
|
+
OpenAnyInsufficientBalanceError,
|
|
36
|
+
OpenAnyProvider,
|
|
37
|
+
OpenAnyRateLimitError,
|
|
38
|
+
)
|
|
39
|
+
from .recorder import (
|
|
40
|
+
GENESIS_HASH,
|
|
41
|
+
CassetteReplayer,
|
|
42
|
+
CassetteTamperError,
|
|
43
|
+
FlightRecorder,
|
|
44
|
+
TrajectoryDivergenceError,
|
|
45
|
+
TrajectorySpan,
|
|
46
|
+
canonical_hash,
|
|
47
|
+
canonical_json,
|
|
48
|
+
verify_cassette,
|
|
49
|
+
)
|
|
50
|
+
from .schema_optimizer import SchemaOptimizationResult, ToolSchemaOptimizer
|
|
51
|
+
from .testing import FlightSession, flight_test
|
|
52
|
+
|
|
53
|
+
__version__ = "1.2.0"
|
|
54
|
+
|
|
55
|
+
__all__ = [
|
|
56
|
+
"__version__",
|
|
57
|
+
"GENESIS_HASH",
|
|
58
|
+
"FlightRecorder",
|
|
59
|
+
"CassetteReplayer",
|
|
60
|
+
"TrajectorySpan",
|
|
61
|
+
"CassetteTamperError",
|
|
62
|
+
"TrajectoryDivergenceError",
|
|
63
|
+
"verify_cassette",
|
|
64
|
+
"canonical_json",
|
|
65
|
+
"canonical_hash",
|
|
66
|
+
"ToolSmellLinter",
|
|
67
|
+
"ToolLintReport",
|
|
68
|
+
"ToolSmellFinding",
|
|
69
|
+
"RULE_CATALOG",
|
|
70
|
+
"SHOWCASE_FLAWED_MCP_TOOLS",
|
|
71
|
+
"SHOWCASE_HARDENED_MCP_TOOLS",
|
|
72
|
+
"estimate_schema_tokens",
|
|
73
|
+
"TrajectoryCircuitBreaker",
|
|
74
|
+
"CircuitBreakerTripped",
|
|
75
|
+
"CircuitBreakerStats",
|
|
76
|
+
"TrajectoryEvaluator",
|
|
77
|
+
"TrajectoryDifferentialAnalyzer",
|
|
78
|
+
"TrajectoryDiffReport",
|
|
79
|
+
"compare_cassettes",
|
|
80
|
+
"compute_levenshtein_distance",
|
|
81
|
+
"compute_lcs_length",
|
|
82
|
+
"StepDiffItem",
|
|
83
|
+
"diff_trajectories",
|
|
84
|
+
"OTelSpanPayload",
|
|
85
|
+
"export_cassette_to_otel",
|
|
86
|
+
"AgentFlightMCPServer",
|
|
87
|
+
"MCP_TOOLS",
|
|
88
|
+
"OpenAnyProvider",
|
|
89
|
+
"OpenAnyConfig",
|
|
90
|
+
"OpenAnyError",
|
|
91
|
+
"OpenAnyAuthError",
|
|
92
|
+
"OpenAnyBudgetExceededError",
|
|
93
|
+
"OpenAnyInsufficientBalanceError",
|
|
94
|
+
"OpenAnyRateLimitError",
|
|
95
|
+
"get_provider",
|
|
96
|
+
"list_providers",
|
|
97
|
+
"register_provider",
|
|
98
|
+
"FlightSession",
|
|
99
|
+
"flight_test",
|
|
100
|
+
"FlightPostMortemAnalyzer",
|
|
101
|
+
"IncidentReport",
|
|
102
|
+
"ToolSchemaOptimizer",
|
|
103
|
+
"SchemaOptimizationResult",
|
|
104
|
+
]
|