agentmesh_platform 3.1.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.
- agentmesh/__init__.py +158 -0
- agentmesh/cli/__init__.py +12 -0
- agentmesh/cli/main.py +670 -0
- agentmesh/cli/marketplace_commands.py +153 -0
- agentmesh/cli/proxy.py +485 -0
- agentmesh/cli/trust_cli.py +637 -0
- agentmesh/client.py +181 -0
- agentmesh/constants.py +48 -0
- agentmesh/core/__init__.py +9 -0
- agentmesh/core/identity/__init__.py +21 -0
- agentmesh/core/identity/ca.py +492 -0
- agentmesh/dashboard/__init__.py +23 -0
- agentmesh/dashboard/api.py +297 -0
- agentmesh/dashboard/models.py +89 -0
- agentmesh/events/__init__.py +44 -0
- agentmesh/events/analytics.py +117 -0
- agentmesh/events/bus.py +166 -0
- agentmesh/exceptions.py +73 -0
- agentmesh/gateway/__init__.py +0 -0
- agentmesh/gateway/policy_provider.py +123 -0
- agentmesh/governance/__init__.py +147 -0
- agentmesh/governance/_conflict_resolution_impl.py +202 -0
- agentmesh/governance/_shadow_impl.py +550 -0
- agentmesh/governance/annex_iv.py +514 -0
- agentmesh/governance/async_policy_evaluator.py +272 -0
- agentmesh/governance/audit.py +512 -0
- agentmesh/governance/audit_backends.py +401 -0
- agentmesh/governance/authority.py +184 -0
- agentmesh/governance/budget.py +161 -0
- agentmesh/governance/cedar.py +378 -0
- agentmesh/governance/compliance.py +561 -0
- agentmesh/governance/conflict_resolution.py +42 -0
- agentmesh/governance/eu_ai_act.py +253 -0
- agentmesh/governance/eu_ai_act_defaults.yaml +75 -0
- agentmesh/governance/federation.py +1072 -0
- agentmesh/governance/opa.py +392 -0
- agentmesh/governance/policy.py +953 -0
- agentmesh/governance/policy_evaluator.py +143 -0
- agentmesh/governance/shadow.py +20 -0
- agentmesh/governance/trust_policy.py +197 -0
- agentmesh/identity/__init__.py +72 -0
- agentmesh/identity/agent_id.py +594 -0
- agentmesh/identity/credentials.py +449 -0
- agentmesh/identity/delegation.py +372 -0
- agentmesh/identity/entra.py +300 -0
- agentmesh/identity/entra_agent_id.py +205 -0
- agentmesh/identity/jwk.py +177 -0
- agentmesh/identity/keystore.py +387 -0
- agentmesh/identity/managed_identity.py +326 -0
- agentmesh/identity/mtls.py +251 -0
- agentmesh/identity/namespace.py +62 -0
- agentmesh/identity/namespace_manager.py +202 -0
- agentmesh/identity/revocation.py +164 -0
- agentmesh/identity/risk.py +361 -0
- agentmesh/identity/rotation.py +197 -0
- agentmesh/identity/spiffe.py +315 -0
- agentmesh/identity/sponsor.py +260 -0
- agentmesh/integrations/__init__.py +65 -0
- agentmesh/integrations/a2a/__init__.py +322 -0
- agentmesh/integrations/ai_card/__init__.py +51 -0
- agentmesh/integrations/ai_card/discovery.py +140 -0
- agentmesh/integrations/ai_card/schema.py +424 -0
- agentmesh/integrations/crewai/__init__.py +25 -0
- agentmesh/integrations/crewai/agent.py +240 -0
- agentmesh/integrations/crewai/crew.py +128 -0
- agentmesh/integrations/django_middleware/__init__.py +26 -0
- agentmesh/integrations/django_middleware/decorators.py +68 -0
- agentmesh/integrations/django_middleware/middleware.py +207 -0
- agentmesh/integrations/flowise/__init__.py +384 -0
- agentmesh/integrations/haystack/__init__.py +384 -0
- agentmesh/integrations/http_middleware.py +175 -0
- agentmesh/integrations/langchain/__init__.py +40 -0
- agentmesh/integrations/langchain/callback.py +232 -0
- agentmesh/integrations/langchain/tools.py +179 -0
- agentmesh/integrations/langflow/__init__.py +302 -0
- agentmesh/integrations/langgraph/__init__.py +360 -0
- agentmesh/integrations/mcp/__init__.py +487 -0
- agentmesh/integrations/swarm/__init__.py +279 -0
- agentmesh/lifecycle/__init__.py +35 -0
- agentmesh/lifecycle/credentials.py +102 -0
- agentmesh/lifecycle/manager.py +362 -0
- agentmesh/lifecycle/models.py +170 -0
- agentmesh/lifecycle/orphan_detector.py +127 -0
- agentmesh/marketplace/__init__.py +60 -0
- agentmesh/marketplace/_marketplace_impl.py +328 -0
- agentmesh/marketplace/installer.py +234 -0
- agentmesh/marketplace/manifest.py +145 -0
- agentmesh/marketplace/registry.py +181 -0
- agentmesh/marketplace/sandbox.py +250 -0
- agentmesh/marketplace/signing.py +84 -0
- agentmesh/observability/__init__.py +40 -0
- agentmesh/observability/dashboards/grafana_governance.json +254 -0
- agentmesh/observability/metrics.py +357 -0
- agentmesh/observability/otel_governance.py +201 -0
- agentmesh/observability/otel_sdk.py +110 -0
- agentmesh/observability/prometheus_exporter.py +163 -0
- agentmesh/observability/prometheus_governance.py +225 -0
- agentmesh/observability/tracing.py +489 -0
- agentmesh/providers.py +152 -0
- agentmesh/py.typed +0 -0
- agentmesh/reward/__init__.py +43 -0
- agentmesh/reward/distribution.py +208 -0
- agentmesh/reward/distributor.py +83 -0
- agentmesh/reward/engine.py +461 -0
- agentmesh/reward/scoring.py +227 -0
- agentmesh/reward/trust_decay.py +343 -0
- agentmesh/services/__init__.py +25 -0
- agentmesh/services/audit/__init__.py +144 -0
- agentmesh/services/behavior_monitor.py +180 -0
- agentmesh/services/rate_limit_middleware.py +126 -0
- agentmesh/services/rate_limiter.py +209 -0
- agentmesh/services/registry/__init__.py +14 -0
- agentmesh/services/registry/agent_registry.py +253 -0
- agentmesh/services/reward_engine/__init__.py +115 -0
- agentmesh/storage/__init__.py +24 -0
- agentmesh/storage/file_trust_store.py +157 -0
- agentmesh/storage/memory_provider.py +233 -0
- agentmesh/storage/postgres_provider.py +467 -0
- agentmesh/storage/provider.py +233 -0
- agentmesh/storage/redis_backend.py +197 -0
- agentmesh/storage/redis_provider.py +227 -0
- agentmesh/transport/__init__.py +43 -0
- agentmesh/transport/base.py +154 -0
- agentmesh/transport/grpc_transport.py +356 -0
- agentmesh/transport/websocket.py +250 -0
- agentmesh/trust/__init__.py +25 -0
- agentmesh/trust/bridge.py +418 -0
- agentmesh/trust/capability.py +399 -0
- agentmesh/trust/cards.py +308 -0
- agentmesh/trust/handshake.py +511 -0
- agentmesh/trust_types.py +115 -0
- agentmesh_platform-3.1.0.dist-info/METADATA +778 -0
- agentmesh_platform-3.1.0.dist-info/RECORD +136 -0
- agentmesh_platform-3.1.0.dist-info/WHEEL +4 -0
- agentmesh_platform-3.1.0.dist-info/entry_points.txt +2 -0
- agentmesh_platform-3.1.0.dist-info/licenses/LICENSE +21 -0
agentmesh/__init__.py
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
"""
|
|
4
|
+
AgentMesh - The Secure Nervous System for Cloud-Native Agent Ecosystems
|
|
5
|
+
|
|
6
|
+
Identity · Trust · Reward · Governance
|
|
7
|
+
|
|
8
|
+
AgentMesh is the platform built for the Governed Agent Mesh - the cloud-native,
|
|
9
|
+
multi-vendor network of AI agents that will define enterprise operations.
|
|
10
|
+
|
|
11
|
+
Version: 1.0.0-alpha
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
__version__ = "3.1.0"
|
|
15
|
+
|
|
16
|
+
# Layer 1: Identity & Zero-Trust Core
|
|
17
|
+
from .identity import (
|
|
18
|
+
AgentIdentity,
|
|
19
|
+
AgentDID,
|
|
20
|
+
Credential,
|
|
21
|
+
CredentialManager,
|
|
22
|
+
ScopeChain,
|
|
23
|
+
DelegationLink,
|
|
24
|
+
HumanSponsor,
|
|
25
|
+
RiskScorer,
|
|
26
|
+
RiskScore,
|
|
27
|
+
SPIFFEIdentity,
|
|
28
|
+
SVID,
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
# Layer 2: Trust & Protocol Bridge
|
|
32
|
+
from .trust import (
|
|
33
|
+
TrustBridge,
|
|
34
|
+
ProtocolBridge,
|
|
35
|
+
TrustHandshake,
|
|
36
|
+
HandshakeResult,
|
|
37
|
+
CapabilityScope,
|
|
38
|
+
CapabilityGrant,
|
|
39
|
+
CapabilityRegistry,
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
# Layer 3: Governance & Compliance Plane
|
|
43
|
+
from .governance import (
|
|
44
|
+
PolicyEngine,
|
|
45
|
+
Policy,
|
|
46
|
+
PolicyRule,
|
|
47
|
+
PolicyDecision,
|
|
48
|
+
ComplianceEngine,
|
|
49
|
+
ComplianceFramework,
|
|
50
|
+
ComplianceReport,
|
|
51
|
+
AuditLog,
|
|
52
|
+
AuditEntry,
|
|
53
|
+
AuditChain,
|
|
54
|
+
ShadowMode,
|
|
55
|
+
ShadowResult,
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
# Exceptions
|
|
59
|
+
from .exceptions import (
|
|
60
|
+
AgentMeshError,
|
|
61
|
+
IdentityError,
|
|
62
|
+
TrustError,
|
|
63
|
+
TrustVerificationError,
|
|
64
|
+
TrustViolationError,
|
|
65
|
+
DelegationError,
|
|
66
|
+
DelegationDepthError,
|
|
67
|
+
GovernanceError,
|
|
68
|
+
HandshakeError,
|
|
69
|
+
HandshakeTimeoutError,
|
|
70
|
+
StorageError,
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
# Layer 4: Reward & Learning Engine
|
|
74
|
+
from .reward import (
|
|
75
|
+
RewardEngine,
|
|
76
|
+
TrustScore,
|
|
77
|
+
RewardDimension,
|
|
78
|
+
RewardSignal,
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
# Unified Client
|
|
82
|
+
from .client import AgentMeshClient, GovernanceResult
|
|
83
|
+
|
|
84
|
+
__all__ = [
|
|
85
|
+
# Version
|
|
86
|
+
"__version__",
|
|
87
|
+
|
|
88
|
+
# Layer 1: Identity
|
|
89
|
+
"AgentIdentity",
|
|
90
|
+
"AgentDID",
|
|
91
|
+
"Credential",
|
|
92
|
+
"CredentialManager",
|
|
93
|
+
"ScopeChain",
|
|
94
|
+
"DelegationLink",
|
|
95
|
+
"HumanSponsor",
|
|
96
|
+
"RiskScorer",
|
|
97
|
+
"RiskScore",
|
|
98
|
+
"SPIFFEIdentity",
|
|
99
|
+
"SVID",
|
|
100
|
+
|
|
101
|
+
# Layer 2: Trust
|
|
102
|
+
"TrustBridge",
|
|
103
|
+
"ProtocolBridge",
|
|
104
|
+
"TrustHandshake",
|
|
105
|
+
"HandshakeResult",
|
|
106
|
+
"CapabilityScope",
|
|
107
|
+
"CapabilityGrant",
|
|
108
|
+
"CapabilityRegistry",
|
|
109
|
+
|
|
110
|
+
# Layer 3: Governance
|
|
111
|
+
"PolicyEngine",
|
|
112
|
+
"Policy",
|
|
113
|
+
"PolicyRule",
|
|
114
|
+
"PolicyDecision",
|
|
115
|
+
"ComplianceEngine",
|
|
116
|
+
"ComplianceFramework",
|
|
117
|
+
"ComplianceReport",
|
|
118
|
+
"AuditLog",
|
|
119
|
+
"AuditEntry",
|
|
120
|
+
"AuditChain",
|
|
121
|
+
"ShadowMode",
|
|
122
|
+
"ShadowResult",
|
|
123
|
+
|
|
124
|
+
# Exceptions
|
|
125
|
+
"AgentMeshError",
|
|
126
|
+
"IdentityError",
|
|
127
|
+
"TrustError",
|
|
128
|
+
"TrustVerificationError",
|
|
129
|
+
"TrustViolationError",
|
|
130
|
+
"DelegationError",
|
|
131
|
+
"DelegationDepthError",
|
|
132
|
+
"GovernanceError",
|
|
133
|
+
"HandshakeError",
|
|
134
|
+
"HandshakeTimeoutError",
|
|
135
|
+
"StorageError",
|
|
136
|
+
|
|
137
|
+
# Layer 4: Reward
|
|
138
|
+
"RewardEngine",
|
|
139
|
+
"TrustScore",
|
|
140
|
+
"RewardDimension",
|
|
141
|
+
"RewardSignal",
|
|
142
|
+
|
|
143
|
+
# Unified Client
|
|
144
|
+
"AgentMeshClient",
|
|
145
|
+
"GovernanceResult",
|
|
146
|
+
|
|
147
|
+
# Trust Types (shared across integrations)
|
|
148
|
+
"AgentProfile",
|
|
149
|
+
"TrustRecord",
|
|
150
|
+
"TrustTracker",
|
|
151
|
+
]
|
|
152
|
+
|
|
153
|
+
# Trust types (shared across integrations)
|
|
154
|
+
from agentmesh.trust_types import (
|
|
155
|
+
AgentProfile,
|
|
156
|
+
TrustRecord,
|
|
157
|
+
TrustTracker,
|
|
158
|
+
)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
"""
|
|
4
|
+
AgentMesh CLI
|
|
5
|
+
|
|
6
|
+
Command-line interface for AgentMesh.
|
|
7
|
+
Single CLI command: agentmesh init — scaffolds a governed agent in 30 seconds.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
from .main import app, main
|
|
11
|
+
|
|
12
|
+
__all__ = ["app", "main"]
|