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.
Files changed (136) hide show
  1. agentmesh/__init__.py +158 -0
  2. agentmesh/cli/__init__.py +12 -0
  3. agentmesh/cli/main.py +670 -0
  4. agentmesh/cli/marketplace_commands.py +153 -0
  5. agentmesh/cli/proxy.py +485 -0
  6. agentmesh/cli/trust_cli.py +637 -0
  7. agentmesh/client.py +181 -0
  8. agentmesh/constants.py +48 -0
  9. agentmesh/core/__init__.py +9 -0
  10. agentmesh/core/identity/__init__.py +21 -0
  11. agentmesh/core/identity/ca.py +492 -0
  12. agentmesh/dashboard/__init__.py +23 -0
  13. agentmesh/dashboard/api.py +297 -0
  14. agentmesh/dashboard/models.py +89 -0
  15. agentmesh/events/__init__.py +44 -0
  16. agentmesh/events/analytics.py +117 -0
  17. agentmesh/events/bus.py +166 -0
  18. agentmesh/exceptions.py +73 -0
  19. agentmesh/gateway/__init__.py +0 -0
  20. agentmesh/gateway/policy_provider.py +123 -0
  21. agentmesh/governance/__init__.py +147 -0
  22. agentmesh/governance/_conflict_resolution_impl.py +202 -0
  23. agentmesh/governance/_shadow_impl.py +550 -0
  24. agentmesh/governance/annex_iv.py +514 -0
  25. agentmesh/governance/async_policy_evaluator.py +272 -0
  26. agentmesh/governance/audit.py +512 -0
  27. agentmesh/governance/audit_backends.py +401 -0
  28. agentmesh/governance/authority.py +184 -0
  29. agentmesh/governance/budget.py +161 -0
  30. agentmesh/governance/cedar.py +378 -0
  31. agentmesh/governance/compliance.py +561 -0
  32. agentmesh/governance/conflict_resolution.py +42 -0
  33. agentmesh/governance/eu_ai_act.py +253 -0
  34. agentmesh/governance/eu_ai_act_defaults.yaml +75 -0
  35. agentmesh/governance/federation.py +1072 -0
  36. agentmesh/governance/opa.py +392 -0
  37. agentmesh/governance/policy.py +953 -0
  38. agentmesh/governance/policy_evaluator.py +143 -0
  39. agentmesh/governance/shadow.py +20 -0
  40. agentmesh/governance/trust_policy.py +197 -0
  41. agentmesh/identity/__init__.py +72 -0
  42. agentmesh/identity/agent_id.py +594 -0
  43. agentmesh/identity/credentials.py +449 -0
  44. agentmesh/identity/delegation.py +372 -0
  45. agentmesh/identity/entra.py +300 -0
  46. agentmesh/identity/entra_agent_id.py +205 -0
  47. agentmesh/identity/jwk.py +177 -0
  48. agentmesh/identity/keystore.py +387 -0
  49. agentmesh/identity/managed_identity.py +326 -0
  50. agentmesh/identity/mtls.py +251 -0
  51. agentmesh/identity/namespace.py +62 -0
  52. agentmesh/identity/namespace_manager.py +202 -0
  53. agentmesh/identity/revocation.py +164 -0
  54. agentmesh/identity/risk.py +361 -0
  55. agentmesh/identity/rotation.py +197 -0
  56. agentmesh/identity/spiffe.py +315 -0
  57. agentmesh/identity/sponsor.py +260 -0
  58. agentmesh/integrations/__init__.py +65 -0
  59. agentmesh/integrations/a2a/__init__.py +322 -0
  60. agentmesh/integrations/ai_card/__init__.py +51 -0
  61. agentmesh/integrations/ai_card/discovery.py +140 -0
  62. agentmesh/integrations/ai_card/schema.py +424 -0
  63. agentmesh/integrations/crewai/__init__.py +25 -0
  64. agentmesh/integrations/crewai/agent.py +240 -0
  65. agentmesh/integrations/crewai/crew.py +128 -0
  66. agentmesh/integrations/django_middleware/__init__.py +26 -0
  67. agentmesh/integrations/django_middleware/decorators.py +68 -0
  68. agentmesh/integrations/django_middleware/middleware.py +207 -0
  69. agentmesh/integrations/flowise/__init__.py +384 -0
  70. agentmesh/integrations/haystack/__init__.py +384 -0
  71. agentmesh/integrations/http_middleware.py +175 -0
  72. agentmesh/integrations/langchain/__init__.py +40 -0
  73. agentmesh/integrations/langchain/callback.py +232 -0
  74. agentmesh/integrations/langchain/tools.py +179 -0
  75. agentmesh/integrations/langflow/__init__.py +302 -0
  76. agentmesh/integrations/langgraph/__init__.py +360 -0
  77. agentmesh/integrations/mcp/__init__.py +487 -0
  78. agentmesh/integrations/swarm/__init__.py +279 -0
  79. agentmesh/lifecycle/__init__.py +35 -0
  80. agentmesh/lifecycle/credentials.py +102 -0
  81. agentmesh/lifecycle/manager.py +362 -0
  82. agentmesh/lifecycle/models.py +170 -0
  83. agentmesh/lifecycle/orphan_detector.py +127 -0
  84. agentmesh/marketplace/__init__.py +60 -0
  85. agentmesh/marketplace/_marketplace_impl.py +328 -0
  86. agentmesh/marketplace/installer.py +234 -0
  87. agentmesh/marketplace/manifest.py +145 -0
  88. agentmesh/marketplace/registry.py +181 -0
  89. agentmesh/marketplace/sandbox.py +250 -0
  90. agentmesh/marketplace/signing.py +84 -0
  91. agentmesh/observability/__init__.py +40 -0
  92. agentmesh/observability/dashboards/grafana_governance.json +254 -0
  93. agentmesh/observability/metrics.py +357 -0
  94. agentmesh/observability/otel_governance.py +201 -0
  95. agentmesh/observability/otel_sdk.py +110 -0
  96. agentmesh/observability/prometheus_exporter.py +163 -0
  97. agentmesh/observability/prometheus_governance.py +225 -0
  98. agentmesh/observability/tracing.py +489 -0
  99. agentmesh/providers.py +152 -0
  100. agentmesh/py.typed +0 -0
  101. agentmesh/reward/__init__.py +43 -0
  102. agentmesh/reward/distribution.py +208 -0
  103. agentmesh/reward/distributor.py +83 -0
  104. agentmesh/reward/engine.py +461 -0
  105. agentmesh/reward/scoring.py +227 -0
  106. agentmesh/reward/trust_decay.py +343 -0
  107. agentmesh/services/__init__.py +25 -0
  108. agentmesh/services/audit/__init__.py +144 -0
  109. agentmesh/services/behavior_monitor.py +180 -0
  110. agentmesh/services/rate_limit_middleware.py +126 -0
  111. agentmesh/services/rate_limiter.py +209 -0
  112. agentmesh/services/registry/__init__.py +14 -0
  113. agentmesh/services/registry/agent_registry.py +253 -0
  114. agentmesh/services/reward_engine/__init__.py +115 -0
  115. agentmesh/storage/__init__.py +24 -0
  116. agentmesh/storage/file_trust_store.py +157 -0
  117. agentmesh/storage/memory_provider.py +233 -0
  118. agentmesh/storage/postgres_provider.py +467 -0
  119. agentmesh/storage/provider.py +233 -0
  120. agentmesh/storage/redis_backend.py +197 -0
  121. agentmesh/storage/redis_provider.py +227 -0
  122. agentmesh/transport/__init__.py +43 -0
  123. agentmesh/transport/base.py +154 -0
  124. agentmesh/transport/grpc_transport.py +356 -0
  125. agentmesh/transport/websocket.py +250 -0
  126. agentmesh/trust/__init__.py +25 -0
  127. agentmesh/trust/bridge.py +418 -0
  128. agentmesh/trust/capability.py +399 -0
  129. agentmesh/trust/cards.py +308 -0
  130. agentmesh/trust/handshake.py +511 -0
  131. agentmesh/trust_types.py +115 -0
  132. agentmesh_platform-3.1.0.dist-info/METADATA +778 -0
  133. agentmesh_platform-3.1.0.dist-info/RECORD +136 -0
  134. agentmesh_platform-3.1.0.dist-info/WHEEL +4 -0
  135. agentmesh_platform-3.1.0.dist-info/entry_points.txt +2 -0
  136. 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"]