agentfield 0.1.20rc2__tar.gz

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 (48) hide show
  1. agentfield-0.1.20rc2/MANIFEST.in +9 -0
  2. agentfield-0.1.20rc2/PKG-INFO +102 -0
  3. agentfield-0.1.20rc2/README.md +58 -0
  4. agentfield-0.1.20rc2/agentfield/__init__.py +66 -0
  5. agentfield-0.1.20rc2/agentfield/agent.py +3514 -0
  6. agentfield-0.1.20rc2/agentfield/agent_ai.py +1125 -0
  7. agentfield-0.1.20rc2/agentfield/agent_cli.py +386 -0
  8. agentfield-0.1.20rc2/agentfield/agent_field_handler.py +494 -0
  9. agentfield-0.1.20rc2/agentfield/agent_mcp.py +534 -0
  10. agentfield-0.1.20rc2/agentfield/agent_registry.py +29 -0
  11. agentfield-0.1.20rc2/agentfield/agent_server.py +1191 -0
  12. agentfield-0.1.20rc2/agentfield/agent_utils.py +269 -0
  13. agentfield-0.1.20rc2/agentfield/agent_workflow.py +323 -0
  14. agentfield-0.1.20rc2/agentfield/async_config.py +278 -0
  15. agentfield-0.1.20rc2/agentfield/async_execution_manager.py +1227 -0
  16. agentfield-0.1.20rc2/agentfield/client.py +1447 -0
  17. agentfield-0.1.20rc2/agentfield/connection_manager.py +280 -0
  18. agentfield-0.1.20rc2/agentfield/decorators.py +527 -0
  19. agentfield-0.1.20rc2/agentfield/did_manager.py +337 -0
  20. agentfield-0.1.20rc2/agentfield/dynamic_skills.py +304 -0
  21. agentfield-0.1.20rc2/agentfield/execution_context.py +255 -0
  22. agentfield-0.1.20rc2/agentfield/execution_state.py +453 -0
  23. agentfield-0.1.20rc2/agentfield/http_connection_manager.py +429 -0
  24. agentfield-0.1.20rc2/agentfield/litellm_adapters.py +140 -0
  25. agentfield-0.1.20rc2/agentfield/logger.py +249 -0
  26. agentfield-0.1.20rc2/agentfield/mcp_client.py +204 -0
  27. agentfield-0.1.20rc2/agentfield/mcp_manager.py +340 -0
  28. agentfield-0.1.20rc2/agentfield/mcp_stdio_bridge.py +550 -0
  29. agentfield-0.1.20rc2/agentfield/memory.py +723 -0
  30. agentfield-0.1.20rc2/agentfield/memory_events.py +489 -0
  31. agentfield-0.1.20rc2/agentfield/multimodal.py +173 -0
  32. agentfield-0.1.20rc2/agentfield/multimodal_response.py +403 -0
  33. agentfield-0.1.20rc2/agentfield/pydantic_utils.py +227 -0
  34. agentfield-0.1.20rc2/agentfield/rate_limiter.py +280 -0
  35. agentfield-0.1.20rc2/agentfield/result_cache.py +441 -0
  36. agentfield-0.1.20rc2/agentfield/router.py +190 -0
  37. agentfield-0.1.20rc2/agentfield/status.py +70 -0
  38. agentfield-0.1.20rc2/agentfield/types.py +710 -0
  39. agentfield-0.1.20rc2/agentfield/utils.py +26 -0
  40. agentfield-0.1.20rc2/agentfield/vc_generator.py +464 -0
  41. agentfield-0.1.20rc2/agentfield/vision.py +198 -0
  42. agentfield-0.1.20rc2/agentfield.egg-info/PKG-INFO +102 -0
  43. agentfield-0.1.20rc2/agentfield.egg-info/SOURCES.txt +46 -0
  44. agentfield-0.1.20rc2/agentfield.egg-info/dependency_links.txt +1 -0
  45. agentfield-0.1.20rc2/agentfield.egg-info/requires.txt +20 -0
  46. agentfield-0.1.20rc2/agentfield.egg-info/top_level.txt +1 -0
  47. agentfield-0.1.20rc2/pyproject.toml +91 -0
  48. agentfield-0.1.20rc2/setup.cfg +4 -0
@@ -0,0 +1,9 @@
1
+ include README.md
2
+ include LICENSE
3
+ include requirements.txt
4
+ recursive-include agentfield *.py
5
+ exclude examples/*
6
+ exclude tests/*
7
+ global-exclude *.pyc
8
+ global-exclude __pycache__
9
+ global-exclude .DS_Store
@@ -0,0 +1,102 @@
1
+ Metadata-Version: 2.4
2
+ Name: agentfield
3
+ Version: 0.1.20rc2
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,58 @@
1
+ # AgentField Python SDK
2
+
3
+ The AgentField SDK provides a production-ready Python interface for registering agents, executing workflows, and integrating with the AgentField control plane.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pip install agentfield
9
+ ```
10
+
11
+ To work on the SDK locally:
12
+
13
+ ```bash
14
+ git clone https://github.com/Agent-Field/agentfield.git
15
+ cd agentfield/sdk/python
16
+ python -m pip install -e .[dev]
17
+ ```
18
+
19
+ ## Quick Start
20
+
21
+ ```python
22
+ from agentfield import Agent
23
+
24
+ agent = Agent(
25
+ node_id="example-agent",
26
+ agentfield_server="http://localhost:8080",
27
+ dev_mode=True,
28
+ )
29
+
30
+ @agent.reasoner()
31
+ async def summarize(text: str) -> dict:
32
+ result = await agent.ai(
33
+ prompt=f"Summarize: {text}",
34
+ response_model={"summary": "string", "tone": "string"},
35
+ )
36
+ return result
37
+
38
+ if __name__ == "__main__":
39
+ agent.serve(port=8001)
40
+ ```
41
+
42
+ See `docs/DEVELOPMENT.md` for instructions on wiring agents to the control plane.
43
+
44
+ ## Testing
45
+
46
+ ```bash
47
+ pytest
48
+ ```
49
+
50
+ To run coverage locally:
51
+
52
+ ```bash
53
+ pytest --cov=agentfield --cov-report=term-missing
54
+ ```
55
+
56
+ ## License
57
+
58
+ Distributed under the Apache 2.0 License. See the project root `LICENSE` for details.
@@ -0,0 +1,66 @@
1
+ from .agent import Agent
2
+ from .router import AgentRouter
3
+ from .types import (
4
+ AIConfig,
5
+ CompactDiscoveryResponse,
6
+ DiscoveryResponse,
7
+ DiscoveryResult,
8
+ MemoryConfig,
9
+ ReasonerDefinition,
10
+ SkillDefinition,
11
+ )
12
+ from .multimodal import (
13
+ Text,
14
+ Image,
15
+ Audio,
16
+ File,
17
+ MultimodalContent,
18
+ text,
19
+ image_from_file,
20
+ image_from_url,
21
+ audio_from_file,
22
+ audio_from_url,
23
+ file_from_path,
24
+ file_from_url,
25
+ )
26
+ from .multimodal_response import (
27
+ MultimodalResponse,
28
+ AudioOutput,
29
+ ImageOutput,
30
+ FileOutput,
31
+ detect_multimodal_response,
32
+ )
33
+
34
+ __all__ = [
35
+ "Agent",
36
+ "AIConfig",
37
+ "MemoryConfig",
38
+ "ReasonerDefinition",
39
+ "SkillDefinition",
40
+ "DiscoveryResponse",
41
+ "CompactDiscoveryResponse",
42
+ "DiscoveryResult",
43
+ "AgentRouter",
44
+ # Input multimodal classes
45
+ "Text",
46
+ "Image",
47
+ "Audio",
48
+ "File",
49
+ "MultimodalContent",
50
+ # Convenience functions for input
51
+ "text",
52
+ "image_from_file",
53
+ "image_from_url",
54
+ "audio_from_file",
55
+ "audio_from_url",
56
+ "file_from_path",
57
+ "file_from_url",
58
+ # Output multimodal classes
59
+ "MultimodalResponse",
60
+ "AudioOutput",
61
+ "ImageOutput",
62
+ "FileOutput",
63
+ "detect_multimodal_response",
64
+ ]
65
+
66
+ __version__ = "0.1.20-rc.2"