smarta2a 0.4.0__py3-none-any.whl → 0.4.2__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.
- smarta2a/server/state_manager.py +2 -5
- {smarta2a-0.4.0.dist-info → smarta2a-0.4.2.dist-info}/METADATA +1 -1
- {smarta2a-0.4.0.dist-info → smarta2a-0.4.2.dist-info}/RECORD +5 -6
- smarta2a/nats-server.conf +0 -12
- {smarta2a-0.4.0.dist-info → smarta2a-0.4.2.dist-info}/WHEEL +0 -0
- {smarta2a-0.4.0.dist-info → smarta2a-0.4.2.dist-info}/licenses/LICENSE +0 -0
smarta2a/server/state_manager.py
CHANGED
@@ -1,8 +1,5 @@
|
|
1
1
|
# Library imports
|
2
2
|
from typing import Optional, Dict, Any, List
|
3
|
-
from uuid import uuid4
|
4
|
-
from nats.aio.client import Client as NATS
|
5
|
-
import asyncio
|
6
3
|
|
7
4
|
# Local imports
|
8
5
|
from smarta2a.state_stores.base_state_store import BaseStateStore
|
@@ -11,10 +8,10 @@ from smarta2a.utils.types import Message, StateData, Task, TaskStatus, TaskState
|
|
11
8
|
from smarta2a.server.nats_client import NATSClient
|
12
9
|
|
13
10
|
class StateManager:
|
14
|
-
def __init__(self, state_store: BaseStateStore, history_strategy: HistoryUpdateStrategy):
|
11
|
+
def __init__(self, state_store: BaseStateStore, history_strategy: HistoryUpdateStrategy, nats_server_url: Optional[str] = "nats://localhost:4222"):
|
15
12
|
self.state_store = state_store
|
16
13
|
self.strategy = history_strategy
|
17
|
-
self.nats_client = NATSClient(server_url=
|
14
|
+
self.nats_client = NATSClient(server_url=nats_server_url)
|
18
15
|
|
19
16
|
async def load(self):
|
20
17
|
await self.nats_client.connect()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: smarta2a
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.2
|
4
4
|
Summary: a Python framework that helps you build servers and AI agents that communicate using the A2A protocol
|
5
5
|
Project-URL: Homepage, https://github.com/siddharthsma/smarta2a
|
6
6
|
Project-URL: Bug Tracker, https://github.com/siddharthsma/smarta2a/issues
|
@@ -1,5 +1,4 @@
|
|
1
1
|
smarta2a/__init__.py,sha256=T_EECYqWrxshix0FbgUv22zlKRX22HFU-HKXcYTOb3w,175
|
2
|
-
smarta2a/nats-server.conf,sha256=4Nm2NdijEXxRU0c7jlFE0g8KGMsBDMB4gDC0kdUDt_o,295
|
3
2
|
smarta2a/agent/a2a_agent.py,sha256=EurcxpV14e3OPWCMutYL0EXMHb5ZKQqAHEGZZF6pNgg,1892
|
4
3
|
smarta2a/agent/a2a_human.py,sha256=tXrEtl0OqZEXZfmPTLnbbAiREMTmlqA42XIf7KocqMU,1850
|
5
4
|
smarta2a/agent/a2a_mcp_server.py,sha256=X_mxkgYgCA_dSNtCvs0rSlOoWYc-8d3Qyxv0e-a7NKY,1015
|
@@ -23,7 +22,7 @@ smarta2a/server/nats_client.py,sha256=akyNg1hLd9XYoLSH_qQVs8uoiTQerztgvqu_3TifSg
|
|
23
22
|
smarta2a/server/request_handler.py,sha256=5KMtfpHQX6bOgk1DJbhs1fUCQ5tSvMYXWzheT3IW2Bo,26374
|
24
23
|
smarta2a/server/send_task_handler.py,sha256=fiBeCCHCu9c2H4EJOUc0t3EZgpHVFJy4B_6qZOC140s,6336
|
25
24
|
smarta2a/server/server.py,sha256=grE2n-MAyaBR5rUro2ZJ0kI6sBFplHvRFL5MMe1DsPs,7094
|
26
|
-
smarta2a/server/state_manager.py,sha256
|
25
|
+
smarta2a/server/state_manager.py,sha256=yeE9o99L_evOOIvdswqHZqmgF7xRfzW_6WpYemkWiD0,6637
|
27
26
|
smarta2a/server/webhook_request_processor.py,sha256=_0XoUDmueSl9CvFQE-1zgKRSts-EW8QxbmolPTfFER8,5306
|
28
27
|
smarta2a/state_stores/__init__.py,sha256=vafxAqpwvag_cYFH2XKGk3DPmJIWJr4Ioey30yLFkVQ,220
|
29
28
|
smarta2a/state_stores/base_state_store.py,sha256=_3LInM-qepKwwdypJTDNs9-DozBNrKVycwPwUm7bYdU,512
|
@@ -35,7 +34,7 @@ smarta2a/utils/task_builder.py,sha256=wqSyfVHNTaXuGESu09dhlaDi7D007gcN3-8tH-nPQ4
|
|
35
34
|
smarta2a/utils/task_request_builder.py,sha256=6cOGOqj2Rg43xWM03GRJQzlIZHBptsMCJRp7oD-TDAQ,3362
|
36
35
|
smarta2a/utils/tools_manager.py,sha256=yOiJ6tyxfKDJDM2C0FoVuqh3nNNee75iRw_M7LmZdzA,4319
|
37
36
|
smarta2a/utils/types.py,sha256=kzA6Vv5xXfu1sJuxhEXrglI9e9S6eZVIljMnsrQVyN0,13650
|
38
|
-
smarta2a-0.4.
|
39
|
-
smarta2a-0.4.
|
40
|
-
smarta2a-0.4.
|
41
|
-
smarta2a-0.4.
|
37
|
+
smarta2a-0.4.2.dist-info/METADATA,sha256=4xDTfZ7vFvpXoJslbmwkAYZAVjWwbXxGkkkSrN5NNjQ,12987
|
38
|
+
smarta2a-0.4.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
39
|
+
smarta2a-0.4.2.dist-info/licenses/LICENSE,sha256=lDbqrxVnzDMY5KJ8JS1WhvkWE8TJaw-O-CHDy-ecsJA,2095
|
40
|
+
smarta2a-0.4.2.dist-info/RECORD,,
|
smarta2a/nats-server.conf
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
# NATS client (TCP) listener
|
2
|
-
port: 4222
|
3
|
-
|
4
|
-
# WebSocket listener (for browser clients)
|
5
|
-
websocket {
|
6
|
-
listen: "0.0.0.0:9222"
|
7
|
-
no_tls: true # Set to false and add TLS config for production
|
8
|
-
# Optional: restrict allowed origins (CORS)
|
9
|
-
# allowed_origins: ["http://localhost:3000"]
|
10
|
-
}
|
11
|
-
|
12
|
-
|
File without changes
|
File without changes
|