smarta2a 0.1.0__py3-none-any.whl → 0.2.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.
- {fasta2a → smarta2a}/__init__.py +3 -2
- {fasta2a → smarta2a}/server.py +2 -2
- {smarta2a-0.1.0.dist-info → smarta2a-0.2.0.dist-info}/METADATA +9 -9
- smarta2a-0.2.0.dist-info/RECORD +7 -0
- smarta2a-0.1.0.dist-info/RECORD +0 -7
- {fasta2a → smarta2a}/types.py +0 -0
- {smarta2a-0.1.0.dist-info → smarta2a-0.2.0.dist-info}/WHEEL +0 -0
- {smarta2a-0.1.0.dist-info → smarta2a-0.2.0.dist-info}/licenses/LICENSE +0 -0
{fasta2a → smarta2a}/__init__.py
RENAMED
{fasta2a → smarta2a}/server.py
RENAMED
@@ -50,7 +50,7 @@ from .types import (
|
|
50
50
|
TaskSendParams,
|
51
51
|
)
|
52
52
|
|
53
|
-
class
|
53
|
+
class SmartA2A:
|
54
54
|
def __init__(self, name: str, **fastapi_kwargs):
|
55
55
|
self.name = name
|
56
56
|
self.handlers: Dict[str, Callable] = {}
|
@@ -96,7 +96,7 @@ class FastA2A:
|
|
96
96
|
if method in self._registered_decorators:
|
97
97
|
raise RuntimeError(
|
98
98
|
f"@{handler_name} decorator for method '{method}' "
|
99
|
-
f"can only be used once per
|
99
|
+
f"can only be used once per SmartA2A instance"
|
100
100
|
)
|
101
101
|
|
102
102
|
if handler_type == "handler":
|
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: smarta2a
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.2.0
|
4
4
|
Summary: A Python package for creating servers and clients following Google's Agent2Agent protocol
|
5
|
-
Project-URL: Homepage, https://github.com/siddharthsma/
|
6
|
-
Project-URL: Bug Tracker, https://github.com/siddharthsma/
|
5
|
+
Project-URL: Homepage, https://github.com/siddharthsma/smarta2a
|
6
|
+
Project-URL: Bug Tracker, https://github.com/siddharthsma/smarta2a/issues
|
7
7
|
Author-email: Siddharth Ambegaonkar <siddharthsma@gmail.com>
|
8
8
|
License-File: LICENSE
|
9
9
|
Classifier: License :: OSI Approved :: MIT License
|
@@ -16,7 +16,7 @@ Requires-Dist: sse-starlette
|
|
16
16
|
Requires-Dist: uvicorn
|
17
17
|
Description-Content-Type: text/markdown
|
18
18
|
|
19
|
-
#
|
19
|
+
# SmartA2A
|
20
20
|
|
21
21
|
A Python package for creating a server following Google's Agent2Agent protocol
|
22
22
|
|
@@ -39,15 +39,15 @@ A Python package for creating a server following Google's Agent2Agent protocol
|
|
39
39
|
## Installation
|
40
40
|
|
41
41
|
```bash
|
42
|
-
pip install
|
42
|
+
pip install smarta2a
|
43
43
|
```
|
44
44
|
|
45
45
|
## Simple Echo Server Implementation
|
46
46
|
|
47
47
|
```python
|
48
|
-
from
|
48
|
+
from smarta2a import SmartA2A
|
49
49
|
|
50
|
-
app =
|
50
|
+
app = SmartA2A("EchoServer")
|
51
51
|
|
52
52
|
@app.on_send_task()
|
53
53
|
def handle_task(request):
|
@@ -81,8 +81,8 @@ To set up the development environment:
|
|
81
81
|
|
82
82
|
```bash
|
83
83
|
# Clone the repository
|
84
|
-
git clone https://github.com/siddharthsma/
|
85
|
-
cd
|
84
|
+
git clone https://github.com/siddharthsma/smarta2a.git
|
85
|
+
cd smarta2a
|
86
86
|
|
87
87
|
# Create and activate virtual environment
|
88
88
|
python -m venv venv
|
@@ -0,0 +1,7 @@
|
|
1
|
+
smarta2a/__init__.py,sha256=f_RqeaAHiBXO0O8n2kR8EBLGM3ezNwmR-CV-xHeOHLM,182
|
2
|
+
smarta2a/server.py,sha256=a5RTtROydJwxHK1nTYzv2nmRJvxhY-SsxuKDqE9_RwY,26117
|
3
|
+
smarta2a/types.py,sha256=_UuFtOsnHIIqfQ2m_FiIBBp141iYmhpPGgxE0jmHSHg,10807
|
4
|
+
smarta2a-0.2.0.dist-info/METADATA,sha256=4PZH8mK_4YNGnfAH4gbjPwZW0M9lG2yZYdJW8Dq6T3w,2478
|
5
|
+
smarta2a-0.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
6
|
+
smarta2a-0.2.0.dist-info/licenses/LICENSE,sha256=ECMEVHuFkvpEmH-_A9HSxs_UnnsUqpCkiAYNHPCf2z0,1078
|
7
|
+
smarta2a-0.2.0.dist-info/RECORD,,
|
smarta2a-0.1.0.dist-info/RECORD
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
fasta2a/__init__.py,sha256=lW8fJ0XHZJVZC4Oy18UxJjxtxuSco878tV6wAKiCzw0,150
|
2
|
-
fasta2a/server.py,sha256=Ge0eh6Go8P9LUmQwmFysTx2YSvRoWk3UIkVh7o-mAHU,26115
|
3
|
-
fasta2a/types.py,sha256=_UuFtOsnHIIqfQ2m_FiIBBp141iYmhpPGgxE0jmHSHg,10807
|
4
|
-
smarta2a-0.1.0.dist-info/METADATA,sha256=a8EA5KXN0YIwnkpoLSOJMh2gi8Vpn0XLes6lWvlYa0Y,2469
|
5
|
-
smarta2a-0.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
6
|
-
smarta2a-0.1.0.dist-info/licenses/LICENSE,sha256=ECMEVHuFkvpEmH-_A9HSxs_UnnsUqpCkiAYNHPCf2z0,1078
|
7
|
-
smarta2a-0.1.0.dist-info/RECORD,,
|
{fasta2a → smarta2a}/types.py
RENAMED
File without changes
|
File without changes
|
File without changes
|