aamarva 2.0.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.
- aamarva/__init__.py +136 -0
- aamarva/client.py +2819 -0
- aamarva/crypto.py +1666 -0
- aamarva/errors.py +40 -0
- aamarva/http.py +280 -0
- aamarva/integrations/__init__.py +96 -0
- aamarva/integrations/agno.py +147 -0
- aamarva/integrations/autogen.py +151 -0
- aamarva/integrations/crewai.py +265 -0
- aamarva/integrations/google_adk.py +169 -0
- aamarva/integrations/langchain.py +91 -0
- aamarva/integrations/langgraph.py +54 -0
- aamarva/integrations/llamaindex.py +76 -0
- aamarva/integrations/mcp.py +19 -0
- aamarva/integrations/mcp_server.py +343 -0
- aamarva/integrations/openai.py +307 -0
- aamarva/mcp_executor.py +298 -0
- aamarva/normalize.py +227 -0
- aamarva/types.py +170 -0
- aamarva-2.0.0.dist-info/METADATA +187 -0
- aamarva-2.0.0.dist-info/RECORD +22 -0
- aamarva-2.0.0.dist-info/WHEEL +4 -0
aamarva/__init__.py
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"""
|
|
2
|
+
AAMARVA Fleet-Only Agent Development Kit (ADK)
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from .client import Aamarva, AamarvaConnection
|
|
6
|
+
from .types import (
|
|
7
|
+
Agent,
|
|
8
|
+
Connection,
|
|
9
|
+
Message,
|
|
10
|
+
ClusterMember,
|
|
11
|
+
Cluster,
|
|
12
|
+
ClusterMessage,
|
|
13
|
+
WatchtowerActivity,
|
|
14
|
+
WatchtowerStreamTicket,
|
|
15
|
+
FloorTool,
|
|
16
|
+
FloorToolInvokeResult,
|
|
17
|
+
FloorAccessRequestStatus,
|
|
18
|
+
GatewayTokenEnvelope,
|
|
19
|
+
GatewayTokenEnvelopePlaintext,
|
|
20
|
+
)
|
|
21
|
+
from .normalize import normalize_watchtower_activity
|
|
22
|
+
from .errors import AamarvaError, AamarvaAPIError, AamarvaAuthenticationError
|
|
23
|
+
from .crypto import (
|
|
24
|
+
WORKFLOW_HKDF_SALT,
|
|
25
|
+
KeyStore,
|
|
26
|
+
InMemoryKeyStore,
|
|
27
|
+
FileSystemKeyStore,
|
|
28
|
+
set_key_store,
|
|
29
|
+
get_key_store,
|
|
30
|
+
reset_local_identity_key,
|
|
31
|
+
export_public_key_jwk,
|
|
32
|
+
import_public_key,
|
|
33
|
+
normalize_agent_id,
|
|
34
|
+
canonical_member_set,
|
|
35
|
+
compute_key_fingerprint,
|
|
36
|
+
compute_group_key_fingerprint,
|
|
37
|
+
compute_roster_hash,
|
|
38
|
+
compute_audience_hash,
|
|
39
|
+
create_identity_binding_string,
|
|
40
|
+
sign_identity_binding,
|
|
41
|
+
verify_identity_binding,
|
|
42
|
+
verify_peer_key,
|
|
43
|
+
derive_connection_aes_key,
|
|
44
|
+
create_direct_message_aad_v1,
|
|
45
|
+
encrypt_message_with_keys,
|
|
46
|
+
decrypt_message_with_keys,
|
|
47
|
+
generate_cluster_key,
|
|
48
|
+
create_cluster_wrap_aad_v2,
|
|
49
|
+
create_cluster_message_aad_v2,
|
|
50
|
+
create_cluster_signing_payload_v2,
|
|
51
|
+
sign_cluster_message_v2,
|
|
52
|
+
verify_cluster_message_signature_v2,
|
|
53
|
+
wrap_cluster_key_for_recipient,
|
|
54
|
+
unwrap_cluster_key,
|
|
55
|
+
encrypt_cluster_message,
|
|
56
|
+
decrypt_cluster_message,
|
|
57
|
+
GATEWAY_ENVELOPE_VERSION,
|
|
58
|
+
GATEWAY_ENVELOPE_PLAINTEXT_VERSION,
|
|
59
|
+
GATEWAY_ENVELOPE_ALGORITHM,
|
|
60
|
+
GATEWAY_HKDF_INFO_PREFIX,
|
|
61
|
+
load_local_private_key_pem,
|
|
62
|
+
build_gateway_token_envelope_hkdf_info,
|
|
63
|
+
create_gateway_token_envelope_aad,
|
|
64
|
+
derive_gateway_envelope_key,
|
|
65
|
+
decrypt_gateway_token_envelope,
|
|
66
|
+
)
|
|
67
|
+
from .mcp_executor import execute_gateway_mcp_tool, normalize_gateway_mcp_url
|
|
68
|
+
|
|
69
|
+
__all__ = [
|
|
70
|
+
"Aamarva",
|
|
71
|
+
"AamarvaConnection",
|
|
72
|
+
"Agent",
|
|
73
|
+
"Connection",
|
|
74
|
+
"Message",
|
|
75
|
+
"ClusterMember",
|
|
76
|
+
"Cluster",
|
|
77
|
+
"ClusterMessage",
|
|
78
|
+
"WatchtowerActivity",
|
|
79
|
+
"WatchtowerStreamTicket",
|
|
80
|
+
"normalize_watchtower_activity",
|
|
81
|
+
"FloorTool",
|
|
82
|
+
"FloorToolInvokeResult",
|
|
83
|
+
"FloorAccessRequestStatus",
|
|
84
|
+
"GatewayTokenEnvelope",
|
|
85
|
+
"GatewayTokenEnvelopePlaintext",
|
|
86
|
+
"AamarvaError",
|
|
87
|
+
"AamarvaAPIError",
|
|
88
|
+
"AamarvaAuthenticationError",
|
|
89
|
+
"WORKFLOW_HKDF_SALT",
|
|
90
|
+
"KeyStore",
|
|
91
|
+
"InMemoryKeyStore",
|
|
92
|
+
"FileSystemKeyStore",
|
|
93
|
+
"set_key_store",
|
|
94
|
+
"get_key_store",
|
|
95
|
+
"reset_local_identity_key",
|
|
96
|
+
"export_public_key_jwk",
|
|
97
|
+
"import_public_key",
|
|
98
|
+
"normalize_agent_id",
|
|
99
|
+
"canonical_member_set",
|
|
100
|
+
"compute_key_fingerprint",
|
|
101
|
+
"compute_group_key_fingerprint",
|
|
102
|
+
"compute_roster_hash",
|
|
103
|
+
"compute_audience_hash",
|
|
104
|
+
"create_identity_binding_string",
|
|
105
|
+
"sign_identity_binding",
|
|
106
|
+
"verify_identity_binding",
|
|
107
|
+
"verify_peer_key",
|
|
108
|
+
"derive_connection_aes_key",
|
|
109
|
+
"create_direct_message_aad_v1",
|
|
110
|
+
"encrypt_message_with_keys",
|
|
111
|
+
"decrypt_message_with_keys",
|
|
112
|
+
"generate_cluster_key",
|
|
113
|
+
"create_cluster_wrap_aad_v2",
|
|
114
|
+
"create_cluster_message_aad_v2",
|
|
115
|
+
"create_cluster_signing_payload_v2",
|
|
116
|
+
"sign_cluster_message_v2",
|
|
117
|
+
"verify_cluster_message_signature_v2",
|
|
118
|
+
"wrap_cluster_key_for_recipient",
|
|
119
|
+
"unwrap_cluster_key",
|
|
120
|
+
"encrypt_cluster_message",
|
|
121
|
+
"decrypt_cluster_message",
|
|
122
|
+
"GATEWAY_ENVELOPE_VERSION",
|
|
123
|
+
"GATEWAY_ENVELOPE_PLAINTEXT_VERSION",
|
|
124
|
+
"GATEWAY_ENVELOPE_ALGORITHM",
|
|
125
|
+
"GATEWAY_HKDF_INFO_PREFIX",
|
|
126
|
+
"load_local_private_key_pem",
|
|
127
|
+
"build_gateway_token_envelope_hkdf_info",
|
|
128
|
+
"create_gateway_token_envelope_aad",
|
|
129
|
+
"derive_gateway_envelope_key",
|
|
130
|
+
"decrypt_gateway_token_envelope",
|
|
131
|
+
"execute_gateway_mcp_tool",
|
|
132
|
+
"normalize_gateway_mcp_url",
|
|
133
|
+
]
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|