smarta2a 0.4.20__py3-none-any.whl → 0.4.21__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/webhook_request_processor.py +3 -7
- {smarta2a-0.4.20.dist-info → smarta2a-0.4.21.dist-info}/METADATA +1 -1
- {smarta2a-0.4.20.dist-info → smarta2a-0.4.21.dist-info}/RECORD +5 -5
- {smarta2a-0.4.20.dist-info → smarta2a-0.4.21.dist-info}/WHEEL +0 -0
- {smarta2a-0.4.20.dist-info → smarta2a-0.4.21.dist-info}/licenses/LICENSE +0 -0
@@ -15,9 +15,9 @@ class WebhookRequestProcessor:
|
|
15
15
|
async def process_request(self, request: WebhookRequest) -> WebhookResponse:
|
16
16
|
if self.state_manager:
|
17
17
|
state_data = self.state_manager.get_and_update_state_from_webhook(request.id, request.result)
|
18
|
-
return await self.
|
18
|
+
return await self._webhook_handler(request, state_data)
|
19
19
|
else:
|
20
|
-
return await self.
|
20
|
+
return await self._webhook_handler(request)
|
21
21
|
|
22
22
|
|
23
23
|
async def _webhook_handler(self, request: WebhookRequest, state_data: Optional[StateData] = None) -> WebhookResponse:
|
@@ -67,11 +67,7 @@ class WebhookRequestProcessor:
|
|
67
67
|
|
68
68
|
if push_url:
|
69
69
|
try:
|
70
|
-
self.a2a_aclient.send_to_webhook(
|
71
|
-
webhook_url=push_url,
|
72
|
-
id=state_data.task_id,
|
73
|
-
task=state_data.task
|
74
|
-
)
|
70
|
+
self.a2a_aclient.send_to_webhook(webhook_url=push_url, id=state_data.task_id, task=state_data.task)
|
75
71
|
except Exception as e:
|
76
72
|
return WebhookResponse(
|
77
73
|
id=request.id,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: smarta2a
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.21
|
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
|
@@ -25,7 +25,7 @@ smarta2a/server/request_handler.py,sha256=tUAoxkrJtOnLPJxdUDMThGPFAxYnNFFofS3QD8
|
|
25
25
|
smarta2a/server/send_task_handler.py,sha256=fiBeCCHCu9c2H4EJOUc0t3EZgpHVFJy4B_6qZOC140s,6336
|
26
26
|
smarta2a/server/server.py,sha256=E58tvOjAvHf_gYjST76sPEC5piaNyrHePa9k-fSadZA,6797
|
27
27
|
smarta2a/server/state_manager.py,sha256=jFxf9cDxLqjIo87tv_Ynh2dH1vCTFLrVSLPuVg6YWnA,8063
|
28
|
-
smarta2a/server/webhook_request_processor.py,sha256=
|
28
|
+
smarta2a/server/webhook_request_processor.py,sha256=PErCC5HbeYsZ7JDf7Cbx_eIf1ZtLGiGe1LsmAD6Oxj0,3985
|
29
29
|
smarta2a/state_stores/__init__.py,sha256=vafxAqpwvag_cYFH2XKGk3DPmJIWJr4Ioey30yLFkVQ,220
|
30
30
|
smarta2a/state_stores/base_state_store.py,sha256=_3LInM-qepKwwdypJTDNs9-DozBNrKVycwPwUm7bYdU,512
|
31
31
|
smarta2a/state_stores/inmemory_state_store.py,sha256=nEBBUiiqhEluP2MYJjFUImcjIwLJEvL8BWwMbLCb8Fw,1268
|
@@ -36,7 +36,7 @@ smarta2a/utils/task_builder.py,sha256=wqSyfVHNTaXuGESu09dhlaDi7D007gcN3-8tH-nPQ4
|
|
36
36
|
smarta2a/utils/task_request_builder.py,sha256=6cOGOqj2Rg43xWM03GRJQzlIZHBptsMCJRp7oD-TDAQ,3362
|
37
37
|
smarta2a/utils/tools_manager.py,sha256=oR5cbwzPZ36hQAsWAgb-c6wFv5BthmCPraD7DSv-Bv8,4332
|
38
38
|
smarta2a/utils/types.py,sha256=kzA6Vv5xXfu1sJuxhEXrglI9e9S6eZVIljMnsrQVyN0,13650
|
39
|
-
smarta2a-0.4.
|
40
|
-
smarta2a-0.4.
|
41
|
-
smarta2a-0.4.
|
42
|
-
smarta2a-0.4.
|
39
|
+
smarta2a-0.4.21.dist-info/METADATA,sha256=q9zzIWTWwn2rIWg2tKHAzmb3CAq204N_XaFQ-NaYBN0,13051
|
40
|
+
smarta2a-0.4.21.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
41
|
+
smarta2a-0.4.21.dist-info/licenses/LICENSE,sha256=lDbqrxVnzDMY5KJ8JS1WhvkWE8TJaw-O-CHDy-ecsJA,2095
|
42
|
+
smarta2a-0.4.21.dist-info/RECORD,,
|
File without changes
|
File without changes
|