agnt5 0.1.0__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.

Potentially problematic release.


This version of agnt5 might be problematic. Click here for more details.

Files changed (137) hide show
  1. agnt5-0.1.0/PKG-INFO +93 -0
  2. agnt5-0.1.0/README.md +41 -0
  3. agnt5-0.1.0/pyproject.toml +100 -0
  4. agnt5-0.1.0/sdk-core/Cargo.lock +2309 -0
  5. agnt5-0.1.0/sdk-core/Cargo.toml +53 -0
  6. agnt5-0.1.0/sdk-core/README.md +359 -0
  7. agnt5-0.1.0/sdk-core/build.rs +77 -0
  8. agnt5-0.1.0/sdk-core/src/bin/simple-connection-test.rs +102 -0
  9. agnt5-0.1.0/sdk-core/src/bin/test-connection.rs +248 -0
  10. agnt5-0.1.0/sdk-core/src/bin/test-message-processing.rs +172 -0
  11. agnt5-0.1.0/sdk-core/src/client.rs +502 -0
  12. agnt5-0.1.0/sdk-core/src/connection.rs +520 -0
  13. agnt5-0.1.0/sdk-core/src/connection_test.rs +263 -0
  14. agnt5-0.1.0/sdk-core/src/durable_context.rs +724 -0
  15. agnt5-0.1.0/sdk-core/src/durable_flow.rs +827 -0
  16. agnt5-0.1.0/sdk-core/src/durable_objects.rs +609 -0
  17. agnt5-0.1.0/sdk-core/src/error.rs +53 -0
  18. agnt5-0.1.0/sdk-core/src/fsm_manager.rs +535 -0
  19. agnt5-0.1.0/sdk-core/src/invocation_fsm.rs +309 -0
  20. agnt5-0.1.0/sdk-core/src/lib.rs +326 -0
  21. agnt5-0.1.0/sdk-core/src/messages.rs +646 -0
  22. agnt5-0.1.0/sdk-core/src/pb/api.v1.rs +1980 -0
  23. agnt5-0.1.0/sdk-core/src/pb/google.api.rs +360 -0
  24. agnt5-0.1.0/sdk-core/src/pb/mod.rs +17 -0
  25. agnt5-0.1.0/sdk-core/src/pool.rs +506 -0
  26. agnt5-0.1.0/sdk-core/src/state.rs +148 -0
  27. agnt5-0.1.0/sdk-core/src/stream_handler.rs +412 -0
  28. agnt5-0.1.0/sdk-core/src/telemetry.rs +208 -0
  29. agnt5-0.1.0/sdk-core/src/worker.rs +664 -0
  30. agnt5-0.1.0/sdk-core/src/wrappers.rs +347 -0
  31. agnt5-0.1.0/sdk-python/.dockerignore +32 -0
  32. agnt5-0.1.0/sdk-python/.env +1 -0
  33. agnt5-0.1.0/sdk-python/.python-version +1 -0
  34. agnt5-0.1.0/sdk-python/CLAUDE.md +570 -0
  35. agnt5-0.1.0/sdk-python/Cargo.lock +2440 -0
  36. agnt5-0.1.0/sdk-python/Cargo.toml +42 -0
  37. agnt5-0.1.0/sdk-python/README.md +41 -0
  38. agnt5-0.1.0/sdk-python/build_extension.py +65 -0
  39. agnt5-0.1.0/sdk-python/examples/agnt5-python-bench/.dockerignore +79 -0
  40. agnt5-0.1.0/sdk-python/examples/agnt5-python-bench/.env +19 -0
  41. agnt5-0.1.0/sdk-python/examples/agnt5-python-bench/Dockerfile +77 -0
  42. agnt5-0.1.0/sdk-python/examples/agnt5-python-bench/Dockerfile.base +50 -0
  43. agnt5-0.1.0/sdk-python/examples/agnt5-python-bench/README.md +79 -0
  44. agnt5-0.1.0/sdk-python/examples/agnt5-python-bench/agents/analytics_agent.py +450 -0
  45. agnt5-0.1.0/sdk-python/examples/agnt5-python-bench/agents/customer_service.py +294 -0
  46. agnt5-0.1.0/sdk-python/examples/agnt5-python-bench/agents/order_management.py +439 -0
  47. agnt5-0.1.0/sdk-python/examples/agnt5-python-bench/agents/technical_support.py +425 -0
  48. agnt5-0.1.0/sdk-python/examples/agnt5-python-bench/benchmarks/performance_tests.py +441 -0
  49. agnt5-0.1.0/sdk-python/examples/agnt5-python-bench/benchmarks/scalability_tests.py +527 -0
  50. agnt5-0.1.0/sdk-python/examples/agnt5-python-bench/build-base.sh +25 -0
  51. agnt5-0.1.0/sdk-python/examples/agnt5-python-bench/docker-compose.yml +122 -0
  52. agnt5-0.1.0/sdk-python/examples/agnt5-python-bench/main.py +122 -0
  53. agnt5-0.1.0/sdk-python/examples/agnt5-python-bench/objects/customer_session.py +353 -0
  54. agnt5-0.1.0/sdk-python/examples/agnt5-python-bench/objects/knowledge_base.py +662 -0
  55. agnt5-0.1.0/sdk-python/examples/agnt5-python-bench/objects/order_tracker.py +558 -0
  56. agnt5-0.1.0/sdk-python/examples/agnt5-python-bench/scripts/generate_report.py +458 -0
  57. agnt5-0.1.0/sdk-python/examples/agnt5-python-bench/scripts/run_benchmarks.sh +176 -0
  58. agnt5-0.1.0/sdk-python/examples/agnt5-python-bench/simple_benchmark.py +415 -0
  59. agnt5-0.1.0/sdk-python/examples/agnt5-python-bench/tools/load_generator.py +406 -0
  60. agnt5-0.1.0/sdk-python/examples/agnt5-python-bench/workflows/issue_resolution.py +536 -0
  61. agnt5-0.1.0/sdk-python/examples/agnt5-python-bench/workflows/order_processing.py +631 -0
  62. agnt5-0.1.0/sdk-python/examples/agnt5-python-bench/workflows/reporting_pipeline.py +700 -0
  63. agnt5-0.1.0/sdk-python/examples/archive/README.md +332 -0
  64. agnt5-0.1.0/sdk-python/examples/archive/agent_examples.py +434 -0
  65. agnt5-0.1.0/sdk-python/examples/archive/demo_fsm_replay.py +418 -0
  66. agnt5-0.1.0/sdk-python/examples/archive/durable_flow_example.py +457 -0
  67. agnt5-0.1.0/sdk-python/examples/archive/dynamic_model_usage.py +175 -0
  68. agnt5-0.1.0/sdk-python/examples/archive/order_processing.py +398 -0
  69. agnt5-0.1.0/sdk-python/examples/archive/order_processing_v2.py +779 -0
  70. agnt5-0.1.0/sdk-python/examples/archive/order_service.py +322 -0
  71. agnt5-0.1.0/sdk-python/examples/archive/rust_bridge_example.py +229 -0
  72. agnt5-0.1.0/sdk-python/examples/archive/shopping_cart_example.py +284 -0
  73. agnt5-0.1.0/sdk-python/examples/archive/simple_model_usage.py +121 -0
  74. agnt5-0.1.0/sdk-python/examples/archive/task_examples.py +753 -0
  75. agnt5-0.1.0/sdk-python/examples/archive/test_durable_integration.py +399 -0
  76. agnt5-0.1.0/sdk-python/examples/archive/test_individual_components.py +393 -0
  77. agnt5-0.1.0/sdk-python/examples/archive/test_resilient_execution.py +425 -0
  78. agnt5-0.1.0/sdk-python/examples/archive/test_worker_registration_v2.py +447 -0
  79. agnt5-0.1.0/sdk-python/examples/archive/updated_apis_demo.py +205 -0
  80. agnt5-0.1.0/sdk-python/examples/test_worker_registration.py +91 -0
  81. agnt5-0.1.0/sdk-python/rust-src/handlers.rs +53 -0
  82. agnt5-0.1.0/sdk-python/rust-src/lib.rs +99 -0
  83. agnt5-0.1.0/sdk-python/rust-src/types.rs +156 -0
  84. agnt5-0.1.0/sdk-python/rust-src/worker.rs +310 -0
  85. agnt5-0.1.0/sdk-python/setup.py +86 -0
  86. agnt5-0.1.0/sdk-python/src/agnt5/__init__.py +307 -0
  87. agnt5-0.1.0/sdk-python/src/agnt5/agent.py +1086 -0
  88. agnt5-0.1.0/sdk-python/src/agnt5/context.py +406 -0
  89. agnt5-0.1.0/sdk-python/src/agnt5/durable.py +1050 -0
  90. agnt5-0.1.0/sdk-python/src/agnt5/extraction.py +410 -0
  91. agnt5-0.1.0/sdk-python/src/agnt5/llm/__init__.py +179 -0
  92. agnt5-0.1.0/sdk-python/src/agnt5/llm/anthropic.py +319 -0
  93. agnt5-0.1.0/sdk-python/src/agnt5/llm/azure.py +348 -0
  94. agnt5-0.1.0/sdk-python/src/agnt5/llm/base.py +315 -0
  95. agnt5-0.1.0/sdk-python/src/agnt5/llm/google.py +373 -0
  96. agnt5-0.1.0/sdk-python/src/agnt5/llm/mistral.py +330 -0
  97. agnt5-0.1.0/sdk-python/src/agnt5/llm/model_registry.py +467 -0
  98. agnt5-0.1.0/sdk-python/src/agnt5/llm/models.json +227 -0
  99. agnt5-0.1.0/sdk-python/src/agnt5/llm/openai.py +334 -0
  100. agnt5-0.1.0/sdk-python/src/agnt5/llm/together.py +377 -0
  101. agnt5-0.1.0/sdk-python/src/agnt5/memory.py +746 -0
  102. agnt5-0.1.0/sdk-python/src/agnt5/reflection.py +514 -0
  103. agnt5-0.1.0/sdk-python/src/agnt5/runtime.py +699 -0
  104. agnt5-0.1.0/sdk-python/src/agnt5/task.py +476 -0
  105. agnt5-0.1.0/sdk-python/src/agnt5/testing.py +451 -0
  106. agnt5-0.1.0/sdk-python/src/agnt5/tool.py +516 -0
  107. agnt5-0.1.0/sdk-python/src/agnt5/tracing.py +624 -0
  108. agnt5-0.1.0/sdk-python/src/agnt5/types.py +210 -0
  109. agnt5-0.1.0/sdk-python/src/agnt5/workflow.py +897 -0
  110. agnt5-0.1.0/sdk-python/test_actual_connection.py +43 -0
  111. agnt5-0.1.0/sdk-python/test_direct_connection.py +40 -0
  112. agnt5-0.1.0/sdk-python/test_persistent_connection.py +73 -0
  113. agnt5-0.1.0/sdk-python/uv.lock +2300 -0
  114. agnt5-0.1.0/src/agnt5/__init__.py +307 -0
  115. agnt5-0.1.0/src/agnt5/agent.py +1086 -0
  116. agnt5-0.1.0/src/agnt5/context.py +406 -0
  117. agnt5-0.1.0/src/agnt5/durable.py +1050 -0
  118. agnt5-0.1.0/src/agnt5/extraction.py +410 -0
  119. agnt5-0.1.0/src/agnt5/llm/__init__.py +179 -0
  120. agnt5-0.1.0/src/agnt5/llm/anthropic.py +319 -0
  121. agnt5-0.1.0/src/agnt5/llm/azure.py +348 -0
  122. agnt5-0.1.0/src/agnt5/llm/base.py +315 -0
  123. agnt5-0.1.0/src/agnt5/llm/google.py +373 -0
  124. agnt5-0.1.0/src/agnt5/llm/mistral.py +330 -0
  125. agnt5-0.1.0/src/agnt5/llm/model_registry.py +467 -0
  126. agnt5-0.1.0/src/agnt5/llm/models.json +227 -0
  127. agnt5-0.1.0/src/agnt5/llm/openai.py +334 -0
  128. agnt5-0.1.0/src/agnt5/llm/together.py +377 -0
  129. agnt5-0.1.0/src/agnt5/memory.py +746 -0
  130. agnt5-0.1.0/src/agnt5/reflection.py +514 -0
  131. agnt5-0.1.0/src/agnt5/runtime.py +699 -0
  132. agnt5-0.1.0/src/agnt5/task.py +476 -0
  133. agnt5-0.1.0/src/agnt5/testing.py +451 -0
  134. agnt5-0.1.0/src/agnt5/tool.py +516 -0
  135. agnt5-0.1.0/src/agnt5/tracing.py +624 -0
  136. agnt5-0.1.0/src/agnt5/types.py +210 -0
  137. agnt5-0.1.0/src/agnt5/workflow.py +897 -0
agnt5-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,93 @@
1
+ Metadata-Version: 2.4
2
+ Name: agnt5
3
+ Version: 0.1.0
4
+ Classifier: Development Status :: 3 - Alpha
5
+ Classifier: Intended Audience :: Developers
6
+ Classifier: License :: OSI Approved :: MIT License
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Programming Language :: Python :: 3.9
9
+ Classifier: Programming Language :: Python :: 3.10
10
+ Classifier: Programming Language :: Python :: 3.11
11
+ Classifier: Programming Language :: Python :: 3.12
12
+ Classifier: Topic :: Software Development :: Libraries
13
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
14
+ Requires-Dist: pydantic>=2.0
15
+ Requires-Dist: httpx>=0.24.0
16
+ Requires-Dist: grpcio>=1.53.0
17
+ Requires-Dist: protobuf>=4.22.0
18
+ Requires-Dist: tenacity>=8.2.0
19
+ Requires-Dist: structlog>=23.1.0
20
+ Requires-Dist: opentelemetry-api>=1.17.0
21
+ Requires-Dist: opentelemetry-sdk>=1.17.0
22
+ Requires-Dist: typing-extensions>=4.0.0
23
+ Requires-Dist: setproctitle>=1.3.6
24
+ Requires-Dist: maturin>=1.8.6
25
+ Requires-Dist: aiohttp>=3.12.6
26
+ Requires-Dist: pytest>=7.3.0 ; extra == 'dev'
27
+ Requires-Dist: pytest-asyncio>=0.21.0 ; extra == 'dev'
28
+ Requires-Dist: pytest-cov>=4.0.0 ; extra == 'dev'
29
+ Requires-Dist: black>=23.3.0 ; extra == 'dev'
30
+ Requires-Dist: ruff>=0.0.261 ; extra == 'dev'
31
+ Requires-Dist: mypy>=1.2.0 ; extra == 'dev'
32
+ Requires-Dist: types-protobuf>=4.22.0 ; extra == 'dev'
33
+ Requires-Dist: maturin>=1.0,<2.0 ; extra == 'dev'
34
+ Requires-Dist: numpy>=1.24.0 ; extra == 'vector'
35
+ Requires-Dist: faiss-cpu>=1.7.4 ; extra == 'vector'
36
+ Requires-Dist: openai>=1.0.0 ; extra == 'llm'
37
+ Requires-Dist: anthropic>=0.18.0 ; extra == 'llm'
38
+ Requires-Dist: transformers>=4.30.0 ; extra == 'llm'
39
+ Provides-Extra: dev
40
+ Provides-Extra: vector
41
+ Provides-Extra: llm
42
+ Summary: Python SDK for AGNT5 Platform - Build durable, resilient agent-first applications
43
+ Keywords: agent,workflow,durable,ai,llm
44
+ Author-email: AGNT5 Team <team@agnt5.com>
45
+ License: MIT
46
+ Requires-Python: >=3.9
47
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
48
+ Project-URL: Homepage, https://agnt5.com
49
+ Project-URL: Documentation, https://docs.agnt5.com
50
+ Project-URL: Repository, https://github.com/agentifyme/agnt5-platform
51
+ Project-URL: Issue Tracker, https://github.com/agentifyme/agnt5-platform/issues
52
+
53
+ # AGNT5 Python SDK
54
+
55
+ Python SDK for building durable, resilient agent-first applications with the AGNT5 platform.
56
+
57
+ ## Features
58
+
59
+ - High-level AI components (Agents, Tools, Workflows)
60
+ - Durable execution with automatic failure recovery
61
+ - Memory systems (working, episodic, semantic, procedural)
62
+ - Multi-provider LLM support (Anthropic, OpenAI, Google, etc.)
63
+ - Rust-powered core for optimal performance
64
+
65
+ ## Installation
66
+
67
+ ```bash
68
+ pip install agnt5
69
+ ```
70
+
71
+ ## Quick Start
72
+
73
+ ```python
74
+ from agnt5 import Agent, tool
75
+
76
+ @tool
77
+ def search_web(query: str) -> str:
78
+ # Your search implementation
79
+ return f"Results for: {query}"
80
+
81
+ agent = Agent(
82
+ name="assistant",
83
+ instructions="You are a helpful AI assistant",
84
+ tools=[search_web],
85
+ memory=True
86
+ )
87
+
88
+ response = await agent.run("Search for Python tutorials")
89
+ ```
90
+
91
+ ## Documentation
92
+
93
+ See the full documentation at [docs.agnt5.dev](https://docs.agnt5.dev)
agnt5-0.1.0/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # AGNT5 Python SDK
2
+
3
+ Python SDK for building durable, resilient agent-first applications with the AGNT5 platform.
4
+
5
+ ## Features
6
+
7
+ - High-level AI components (Agents, Tools, Workflows)
8
+ - Durable execution with automatic failure recovery
9
+ - Memory systems (working, episodic, semantic, procedural)
10
+ - Multi-provider LLM support (Anthropic, OpenAI, Google, etc.)
11
+ - Rust-powered core for optimal performance
12
+
13
+ ## Installation
14
+
15
+ ```bash
16
+ pip install agnt5
17
+ ```
18
+
19
+ ## Quick Start
20
+
21
+ ```python
22
+ from agnt5 import Agent, tool
23
+
24
+ @tool
25
+ def search_web(query: str) -> str:
26
+ # Your search implementation
27
+ return f"Results for: {query}"
28
+
29
+ agent = Agent(
30
+ name="assistant",
31
+ instructions="You are a helpful AI assistant",
32
+ tools=[search_web],
33
+ memory=True
34
+ )
35
+
36
+ response = await agent.run("Search for Python tutorials")
37
+ ```
38
+
39
+ ## Documentation
40
+
41
+ See the full documentation at [docs.agnt5.dev](https://docs.agnt5.dev)
@@ -0,0 +1,100 @@
1
+ [build-system]
2
+ requires = ["maturin>=1.0,<2.0"]
3
+ build-backend = "maturin"
4
+
5
+ [project]
6
+ name = "agnt5"
7
+ version = "0.1.0"
8
+ description = "Python SDK for AGNT5 Platform - Build durable, resilient agent-first applications"
9
+ readme = "README.md"
10
+ requires-python = ">=3.9"
11
+ license = { text = "MIT" }
12
+ authors = [
13
+ { name = "AGNT5 Team", email = "team@agnt5.com" }
14
+ ]
15
+ keywords = ["agent", "workflow", "durable", "ai", "llm"]
16
+ classifiers = [
17
+ "Development Status :: 3 - Alpha",
18
+ "Intended Audience :: Developers",
19
+ "License :: OSI Approved :: MIT License",
20
+ "Programming Language :: Python :: 3",
21
+ "Programming Language :: Python :: 3.9",
22
+ "Programming Language :: Python :: 3.10",
23
+ "Programming Language :: Python :: 3.11",
24
+ "Programming Language :: Python :: 3.12",
25
+ "Topic :: Software Development :: Libraries",
26
+ "Topic :: Scientific/Engineering :: Artificial Intelligence",
27
+ ]
28
+
29
+ dependencies = [
30
+ "pydantic>=2.0",
31
+ "httpx>=0.24.0",
32
+ "grpcio>=1.53.0",
33
+ "protobuf>=4.22.0",
34
+ "tenacity>=8.2.0",
35
+ "structlog>=23.1.0",
36
+ "opentelemetry-api>=1.17.0",
37
+ "opentelemetry-sdk>=1.17.0",
38
+ "typing-extensions>=4.0.0",
39
+ "setproctitle>=1.3.6",
40
+ "maturin>=1.8.6",
41
+ "aiohttp>=3.12.6",
42
+ ]
43
+
44
+ [project.optional-dependencies]
45
+ dev = [
46
+ "pytest>=7.3.0",
47
+ "pytest-asyncio>=0.21.0",
48
+ "pytest-cov>=4.0.0",
49
+ "black>=23.3.0",
50
+ "ruff>=0.0.261",
51
+ "mypy>=1.2.0",
52
+ "types-protobuf>=4.22.0",
53
+ "maturin>=1.0,<2.0",
54
+ ]
55
+ vector = [
56
+ "numpy>=1.24.0",
57
+ "faiss-cpu>=1.7.4",
58
+ ]
59
+ llm = [
60
+ "openai>=1.0.0",
61
+ "anthropic>=0.18.0",
62
+ "transformers>=4.30.0",
63
+ ]
64
+
65
+ [project.urls]
66
+ "Homepage" = "https://agnt5.com"
67
+ "Documentation" = "https://docs.agnt5.com"
68
+ "Repository" = "https://github.com/agentifyme/agnt5-platform"
69
+ "Issue Tracker" = "https://github.com/agentifyme/agnt5-platform/issues"
70
+
71
+ [tool.maturin]
72
+ features = ["pyo3/extension-module"]
73
+ python-source = "src"
74
+ module-name = "agnt5._core"
75
+ manifest-path = "sdk-python/Cargo.toml"
76
+
77
+ [tool.black]
78
+ line-length = 100
79
+ target-version = ['py39']
80
+
81
+ [tool.ruff]
82
+ line-length = 100
83
+ select = ["E", "F", "I", "N", "W"]
84
+ ignore = ["E501"]
85
+
86
+ [tool.mypy]
87
+ python_version = "3.9"
88
+ warn_return_any = true
89
+ warn_unused_configs = true
90
+ disallow_untyped_defs = true
91
+
92
+ [tool.pytest.ini_options]
93
+ asyncio_mode = "auto"
94
+ testpaths = ["tests"]
95
+ python_files = ["test_*.py", "*_test.py"]
96
+
97
+ [dependency-groups]
98
+ dev = [
99
+ "maturin>=1.8.6",
100
+ ]