agentfield 0.1.22rc2__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 (42) hide show
  1. agentfield/__init__.py +66 -0
  2. agentfield/agent.py +3569 -0
  3. agentfield/agent_ai.py +1125 -0
  4. agentfield/agent_cli.py +386 -0
  5. agentfield/agent_field_handler.py +494 -0
  6. agentfield/agent_mcp.py +534 -0
  7. agentfield/agent_registry.py +29 -0
  8. agentfield/agent_server.py +1185 -0
  9. agentfield/agent_utils.py +269 -0
  10. agentfield/agent_workflow.py +323 -0
  11. agentfield/async_config.py +278 -0
  12. agentfield/async_execution_manager.py +1227 -0
  13. agentfield/client.py +1447 -0
  14. agentfield/connection_manager.py +280 -0
  15. agentfield/decorators.py +527 -0
  16. agentfield/did_manager.py +337 -0
  17. agentfield/dynamic_skills.py +304 -0
  18. agentfield/execution_context.py +255 -0
  19. agentfield/execution_state.py +453 -0
  20. agentfield/http_connection_manager.py +429 -0
  21. agentfield/litellm_adapters.py +140 -0
  22. agentfield/logger.py +249 -0
  23. agentfield/mcp_client.py +204 -0
  24. agentfield/mcp_manager.py +340 -0
  25. agentfield/mcp_stdio_bridge.py +550 -0
  26. agentfield/memory.py +723 -0
  27. agentfield/memory_events.py +489 -0
  28. agentfield/multimodal.py +173 -0
  29. agentfield/multimodal_response.py +403 -0
  30. agentfield/pydantic_utils.py +227 -0
  31. agentfield/rate_limiter.py +280 -0
  32. agentfield/result_cache.py +441 -0
  33. agentfield/router.py +190 -0
  34. agentfield/status.py +70 -0
  35. agentfield/types.py +710 -0
  36. agentfield/utils.py +26 -0
  37. agentfield/vc_generator.py +464 -0
  38. agentfield/vision.py +198 -0
  39. agentfield-0.1.22rc2.dist-info/METADATA +102 -0
  40. agentfield-0.1.22rc2.dist-info/RECORD +42 -0
  41. agentfield-0.1.22rc2.dist-info/WHEEL +5 -0
  42. agentfield-0.1.22rc2.dist-info/top_level.txt +1 -0
@@ -0,0 +1,102 @@
1
+ Metadata-Version: 2.4
2
+ Name: agentfield
3
+ Version: 0.1.22rc2
4
+ Summary: Python SDK for the AgentField control plane
5
+ Author: AgentField Maintainers
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/Agent-Field/agentfield
8
+ Project-URL: Documentation, https://github.com/Agent-Field/agentfield/tree/main/docs
9
+ Project-URL: Issues, https://github.com/Agent-Field/agentfield/issues
10
+ Keywords: agentfield,sdk,agents
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: Apache Software License
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3 :: Only
16
+ Classifier: Programming Language :: Python :: 3.8
17
+ Classifier: Programming Language :: Python :: 3.9
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
+ Requires-Python: <3.14,>=3.8
24
+ Description-Content-Type: text/markdown
25
+ Requires-Dist: fastapi
26
+ Requires-Dist: uvicorn
27
+ Requires-Dist: requests>=2.28
28
+ Requires-Dist: pydantic>=2.0
29
+ Requires-Dist: litellm
30
+ Requires-Dist: psutil
31
+ Requires-Dist: PyYAML>=6.0
32
+ Requires-Dist: aiohttp>=3.8
33
+ Requires-Dist: websockets
34
+ Provides-Extra: dev
35
+ Requires-Dist: pytest<9,>=7.4; extra == "dev"
36
+ Requires-Dist: pytest-asyncio<0.24,>=0.21; extra == "dev"
37
+ Requires-Dist: pytest-cov<5,>=4.1; extra == "dev"
38
+ Requires-Dist: responses<0.26,>=0.23; extra == "dev"
39
+ Requires-Dist: respx<0.22,>=0.20; extra == "dev"
40
+ Requires-Dist: freezegun<2,>=1.2; extra == "dev"
41
+ Requires-Dist: syrupy<5,>=4; extra == "dev"
42
+ Requires-Dist: hypothesis<7,>=6.88; extra == "dev"
43
+ Requires-Dist: pytest-socket<0.8,>=0.6; extra == "dev"
44
+
45
+ # AgentField Python SDK
46
+
47
+ The AgentField SDK provides a production-ready Python interface for registering agents, executing workflows, and integrating with the AgentField control plane.
48
+
49
+ ## Installation
50
+
51
+ ```bash
52
+ pip install agentfield
53
+ ```
54
+
55
+ To work on the SDK locally:
56
+
57
+ ```bash
58
+ git clone https://github.com/Agent-Field/agentfield.git
59
+ cd agentfield/sdk/python
60
+ python -m pip install -e .[dev]
61
+ ```
62
+
63
+ ## Quick Start
64
+
65
+ ```python
66
+ from agentfield import Agent
67
+
68
+ agent = Agent(
69
+ node_id="example-agent",
70
+ agentfield_server="http://localhost:8080",
71
+ dev_mode=True,
72
+ )
73
+
74
+ @agent.reasoner()
75
+ async def summarize(text: str) -> dict:
76
+ result = await agent.ai(
77
+ prompt=f"Summarize: {text}",
78
+ response_model={"summary": "string", "tone": "string"},
79
+ )
80
+ return result
81
+
82
+ if __name__ == "__main__":
83
+ agent.serve(port=8001)
84
+ ```
85
+
86
+ See `docs/DEVELOPMENT.md` for instructions on wiring agents to the control plane.
87
+
88
+ ## Testing
89
+
90
+ ```bash
91
+ pytest
92
+ ```
93
+
94
+ To run coverage locally:
95
+
96
+ ```bash
97
+ pytest --cov=agentfield --cov-report=term-missing
98
+ ```
99
+
100
+ ## License
101
+
102
+ Distributed under the Apache 2.0 License. See the project root `LICENSE` for details.
@@ -0,0 +1,42 @@
1
+ agentfield/__init__.py,sha256=uetr5RFBo5lCNjdoQULoyb1fpXzBRGHx0lIQMmwN1c8,1276
2
+ agentfield/agent.py,sha256=FbH24JQ09pIpAgQTJLZTdx2GpcnCPuZvimemf1N3Z0s,145743
3
+ agentfield/agent_ai.py,sha256=mgoq__0nBu9Oioc-HVMRoPbA_lE_S-3cmUk8AMr6Fc0,45966
4
+ agentfield/agent_cli.py,sha256=FYuCnHxvbY8c1ESQj4jNCNYJCaGBYy48e3eYncZlq-8,13327
5
+ agentfield/agent_field_handler.py,sha256=Z2JINkI1CDyJ3GqE07W3uY59jEBnQSm06t2qU5Z73TY,19552
6
+ agentfield/agent_mcp.py,sha256=1y9QfBp2euUhAPXeITpV0peEJB3mJd2L20mlfuwy25U,20950
7
+ agentfield/agent_registry.py,sha256=Cm7nH4Ga6opn-dkLsksTa0c7LxT8D6CoYlg3mprgDbI,864
8
+ agentfield/agent_server.py,sha256=jpMceQRgsjnlx8OSYU-uU3h5oAzxsFgnHkWhOpPjhRQ,47471
9
+ agentfield/agent_utils.py,sha256=5x4L6FQxnK48mE74AtGCqcMCJZSzDlU9ctjuji_LRoA,9559
10
+ agentfield/agent_workflow.py,sha256=VmVm_PcPFHtxxw0pKAMEHhL-7mcb2CdWZBwKg7cwCHY,11759
11
+ agentfield/async_config.py,sha256=p25FRfOXtbbGmvF-kirzpKNrX7ZgPSb9gWGdTf_MvGQ,10970
12
+ agentfield/async_execution_manager.py,sha256=6YH7v_wBOinGFfGO05fHcH3J4v5FlrQbsCvVcwlxhug,45388
13
+ agentfield/client.py,sha256=T8U9NaDMl6MijLt9F6-ghi9MjdIiAO5DXkbPuoWGPFg,52185
14
+ agentfield/connection_manager.py,sha256=9l70eQ_xOXsjL4-Y34BpOdB79r2WCxhpYnYYg2yHW2Y,10243
15
+ agentfield/decorators.py,sha256=mecpb7oPQe5_o9YQwzAHULEjRd_IhWboNhU38rrfp1U,18626
16
+ agentfield/did_manager.py,sha256=qt2P-w3-f6AjfHDrBnoSNpmdAzUcComOCgrLjiVjAY4,11284
17
+ agentfield/dynamic_skills.py,sha256=o1Bt4XdHgUuZIn9oBIXCkpPnLlvSTILuOBZasWfxJJQ,11000
18
+ agentfield/execution_context.py,sha256=iOvJUOA27x10IN7qfRcjHdcPhAbFwn904qSyWXFXf-8,8727
19
+ agentfield/execution_state.py,sha256=rWqldoEtTSb4AGD3u1I51af4ig54p0YlVIwTJxfNT08,14877
20
+ agentfield/http_connection_manager.py,sha256=3byK0Rhl2Br0N246k37XjT-AI2WbO5jsHykfxaKtBLM,14000
21
+ agentfield/litellm_adapters.py,sha256=ytTsYDD8I0_WEfV5IqBwyBp8m0_UGk1euoUzsjVkq7M,4452
22
+ agentfield/logger.py,sha256=KXEEx5pj49Gfy2VPdjnWMJHgAa15VwIqpCJBWKlO-tc,8378
23
+ agentfield/mcp_client.py,sha256=8jFjYchTAXXRYquto42ssfBxsj5cKqcJZAH-lr1_CUg,7858
24
+ agentfield/mcp_manager.py,sha256=Vege7uD1eL_L2kB04GyKscPG0JN70ZwX5ANuAisLreo,11947
25
+ agentfield/mcp_stdio_bridge.py,sha256=kH56CVGjJx9t76tr_t83ZPoQhpW8asig3bp91NDdRMI,19337
26
+ agentfield/memory.py,sha256=4GxBY1NXS-YzSFQifIWeY-RaJv0JI1EUSuv9I7xUQnc,22257
27
+ agentfield/memory_events.py,sha256=gXYv7UVV2dYjyMvO16TMrPYXGkgSzkNVfIxnt4Urb80,16565
28
+ agentfield/multimodal.py,sha256=Uw2hOm5PZZYKT8M6663A1jgMxt7zEmam0YYgDTv8DT4,5816
29
+ agentfield/multimodal_response.py,sha256=Py9bpgzM1Fd88ne9AUnxmAbmkNrsVkpksSQWDH8oFIM,13345
30
+ agentfield/pydantic_utils.py,sha256=FyHcur0GiJ5bLHL-4uCijgfXpo7F01qB7Ohrh0SQMC0,7153
31
+ agentfield/rate_limiter.py,sha256=N9ou30-nhXiXuA9HEDUspETLmmXx_3PQIAwvWFQ2KRU,9589
32
+ agentfield/result_cache.py,sha256=wHiuhgfSWFTxa0j5suyk2GyLPEvIeohJBXr_e-BEmwU,14063
33
+ agentfield/router.py,sha256=svkcX4pSy4nWb0R4uI_pO5pQC3LUJvgtAVjVieeEGC8,6256
34
+ agentfield/status.py,sha256=U-UUNeSgWmgZy27sNJOA_RIGlSctleS60NqX9RWQXAU,1601
35
+ agentfield/types.py,sha256=r2Wi5G1NyZDPRVNczJCeAanNBEMJ-KA116hx__JsK4g,22867
36
+ agentfield/utils.py,sha256=1-Mzydc2KUdUk13dY601l8gH3bJ2C4U6jD1pzgUkBfU,680
37
+ agentfield/vc_generator.py,sha256=buWKl2UNJ1GLzjedzKq5En-qmxVHi1oaIV8onWY-yGA,14981
38
+ agentfield/vision.py,sha256=CJxNHV9Wqe_eFxVm664PLsWgcpZ8HkfyiStUP0sk2xc,6481
39
+ agentfield-0.1.22rc2.dist-info/METADATA,sha256=NhkieAL8AOc8XI6T4SR5Wj3Lu1hLNcK6AFGUJBcaUvU,2957
40
+ agentfield-0.1.22rc2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
41
+ agentfield-0.1.22rc2.dist-info/top_level.txt,sha256=UQ-lu8QXkCD5RUrwm4Ie9kDpXLZHW4C5tmKdo9GHRc4,11
42
+ agentfield-0.1.22rc2.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ agentfield