btech-agent-lab 1.9.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.
Files changed (122) hide show
  1. btech_agent_lab-1.9.0/.gitignore +232 -0
  2. btech_agent_lab-1.9.0/LICENSE +21 -0
  3. btech_agent_lab-1.9.0/PKG-INFO +200 -0
  4. btech_agent_lab-1.9.0/README.md +128 -0
  5. btech_agent_lab-1.9.0/agent_lab/__init__.py +52 -0
  6. btech_agent_lab-1.9.0/agent_lab/app_factory.py +350 -0
  7. btech_agent_lab-1.9.0/agent_lab/core/__init__.py +0 -0
  8. btech_agent_lab-1.9.0/agent_lab/core/config.py +86 -0
  9. btech_agent_lab-1.9.0/agent_lab/core/container.py +220 -0
  10. btech_agent_lab-1.9.0/agent_lab/domain/__init__.py +0 -0
  11. btech_agent_lab-1.9.0/agent_lab/domain/exceptions/__init__.py +0 -0
  12. btech_agent_lab-1.9.0/agent_lab/domain/exceptions/base.py +54 -0
  13. btech_agent_lab-1.9.0/agent_lab/domain/models.py +110 -0
  14. btech_agent_lab-1.9.0/agent_lab/domain/repositories/__init__.py +0 -0
  15. btech_agent_lab-1.9.0/agent_lab/domain/repositories/agents.py +152 -0
  16. btech_agent_lab-1.9.0/agent_lab/domain/repositories/attachments.py +86 -0
  17. btech_agent_lab-1.9.0/agent_lab/domain/repositories/integrations.py +72 -0
  18. btech_agent_lab-1.9.0/agent_lab/domain/repositories/language_models.py +140 -0
  19. btech_agent_lab-1.9.0/agent_lab/domain/repositories/messages.py +77 -0
  20. btech_agent_lab-1.9.0/agent_lab/infrastructure/__init__.py +0 -0
  21. btech_agent_lab-1.9.0/agent_lab/infrastructure/auth/__init__.py +0 -0
  22. btech_agent_lab-1.9.0/agent_lab/infrastructure/auth/schema.py +7 -0
  23. btech_agent_lab-1.9.0/agent_lab/infrastructure/auth/user.py +17 -0
  24. btech_agent_lab-1.9.0/agent_lab/infrastructure/database/__init__.py +0 -0
  25. btech_agent_lab-1.9.0/agent_lab/infrastructure/database/checkpoints.py +25 -0
  26. btech_agent_lab-1.9.0/agent_lab/infrastructure/database/sql.py +52 -0
  27. btech_agent_lab-1.9.0/agent_lab/infrastructure/database/vectors.py +42 -0
  28. btech_agent_lab-1.9.0/agent_lab/infrastructure/metrics/__init__.py +0 -0
  29. btech_agent_lab-1.9.0/agent_lab/infrastructure/metrics/logging_middleware.py +35 -0
  30. btech_agent_lab-1.9.0/agent_lab/infrastructure/metrics/tracer.py +138 -0
  31. btech_agent_lab-1.9.0/agent_lab/infrastructure/metrics/tracing.py +43 -0
  32. btech_agent_lab-1.9.0/agent_lab/infrastructure/metrics/tracing_backends.py +126 -0
  33. btech_agent_lab-1.9.0/agent_lab/interface/__init__.py +0 -0
  34. btech_agent_lab-1.9.0/agent_lab/interface/api/__init__.py +0 -0
  35. btech_agent_lab-1.9.0/agent_lab/interface/api/agents/__init__.py +0 -0
  36. btech_agent_lab-1.9.0/agent_lab/interface/api/agents/endpoints.py +551 -0
  37. btech_agent_lab-1.9.0/agent_lab/interface/api/agents/schema.py +100 -0
  38. btech_agent_lab-1.9.0/agent_lab/interface/api/attachments/__init__.py +0 -0
  39. btech_agent_lab-1.9.0/agent_lab/interface/api/attachments/endpoints.py +315 -0
  40. btech_agent_lab-1.9.0/agent_lab/interface/api/attachments/schema.py +21 -0
  41. btech_agent_lab-1.9.0/agent_lab/interface/api/auth/__init__.py +0 -0
  42. btech_agent_lab-1.9.0/agent_lab/interface/api/auth/endpoints.py +210 -0
  43. btech_agent_lab-1.9.0/agent_lab/interface/api/auth/schema.py +35 -0
  44. btech_agent_lab-1.9.0/agent_lab/interface/api/cache_control.py +16 -0
  45. btech_agent_lab-1.9.0/agent_lab/interface/api/integrations/__init__.py +0 -0
  46. btech_agent_lab-1.9.0/agent_lab/interface/api/integrations/endpoints.py +243 -0
  47. btech_agent_lab-1.9.0/agent_lab/interface/api/integrations/schema.py +44 -0
  48. btech_agent_lab-1.9.0/agent_lab/interface/api/language_models/__init__.py +0 -0
  49. btech_agent_lab-1.9.0/agent_lab/interface/api/language_models/endpoints.py +470 -0
  50. btech_agent_lab-1.9.0/agent_lab/interface/api/language_models/schema.py +87 -0
  51. btech_agent_lab-1.9.0/agent_lab/interface/api/messages/__init__.py +0 -0
  52. btech_agent_lab-1.9.0/agent_lab/interface/api/messages/endpoints.py +367 -0
  53. btech_agent_lab-1.9.0/agent_lab/interface/api/messages/schema.py +43 -0
  54. btech_agent_lab-1.9.0/agent_lab/interface/api/status/__init__.py +0 -0
  55. btech_agent_lab-1.9.0/agent_lab/interface/api/status/endpoints.py +56 -0
  56. btech_agent_lab-1.9.0/agent_lab/interface/mcp/__init__.py +0 -0
  57. btech_agent_lab-1.9.0/agent_lab/interface/mcp/coordinator_planner_supervisor_tool_registrar.py +96 -0
  58. btech_agent_lab-1.9.0/agent_lab/interface/mcp/default_tool_registrar.py +204 -0
  59. btech_agent_lab-1.9.0/agent_lab/interface/mcp/prompt_registry.py +36 -0
  60. btech_agent_lab-1.9.0/agent_lab/interface/mcp/prompt_set_registrar.py +95 -0
  61. btech_agent_lab-1.9.0/agent_lab/interface/mcp/registrar.py +32 -0
  62. btech_agent_lab-1.9.0/agent_lab/interface/mcp/schema.py +61 -0
  63. btech_agent_lab-1.9.0/agent_lab/interface/mcp/server.py +106 -0
  64. btech_agent_lab-1.9.0/agent_lab/interface/mcp/user_prompt_resolver.py +59 -0
  65. btech_agent_lab-1.9.0/agent_lab/main.py +11 -0
  66. btech_agent_lab-1.9.0/agent_lab/services/__init__.py +0 -0
  67. btech_agent_lab-1.9.0/agent_lab/services/agent_settings.py +35 -0
  68. btech_agent_lab-1.9.0/agent_lab/services/agent_types/__init__.py +0 -0
  69. btech_agent_lab-1.9.0/agent_lab/services/agent_types/adaptive_rag/__init__.py +0 -0
  70. btech_agent_lab-1.9.0/agent_lab/services/agent_types/adaptive_rag/agent.py +395 -0
  71. btech_agent_lab-1.9.0/agent_lab/services/agent_types/adaptive_rag/default_answer_grader_system_prompt.txt +9 -0
  72. btech_agent_lab-1.9.0/agent_lab/services/agent_types/adaptive_rag/default_collection_name.txt +1 -0
  73. btech_agent_lab-1.9.0/agent_lab/services/agent_types/adaptive_rag/default_execution_system_prompt.txt +9 -0
  74. btech_agent_lab-1.9.0/agent_lab/services/agent_types/adaptive_rag/default_query_rewriter_system_prompt.txt +8 -0
  75. btech_agent_lab-1.9.0/agent_lab/services/agent_types/adaptive_rag/default_retrieval_grader_system_prompt.txt +12 -0
  76. btech_agent_lab-1.9.0/agent_lab/services/agent_types/adaptive_rag/schema.py +32 -0
  77. btech_agent_lab-1.9.0/agent_lab/services/agent_types/azure.py +81 -0
  78. btech_agent_lab-1.9.0/agent_lab/services/agent_types/base.py +767 -0
  79. btech_agent_lab-1.9.0/agent_lab/services/agent_types/business/__init__.py +0 -0
  80. btech_agent_lab-1.9.0/agent_lab/services/agent_types/business/voice_memos/__init__.py +72 -0
  81. btech_agent_lab-1.9.0/agent_lab/services/agent_types/business/voice_memos/agent.py +599 -0
  82. btech_agent_lab-1.9.0/agent_lab/services/agent_types/business/voice_memos/default_audio_language_model.txt +1 -0
  83. btech_agent_lab-1.9.0/agent_lab/services/agent_types/business/voice_memos/default_content_analyst_system_prompt.txt +66 -0
  84. btech_agent_lab-1.9.0/agent_lab/services/agent_types/business/voice_memos/default_coordinator_system_prompt.txt +55 -0
  85. btech_agent_lab-1.9.0/agent_lab/services/agent_types/business/voice_memos/default_planner_system_prompt.txt +37 -0
  86. btech_agent_lab-1.9.0/agent_lab/services/agent_types/business/voice_memos/default_reporter_system_prompt.txt +9 -0
  87. btech_agent_lab-1.9.0/agent_lab/services/agent_types/business/voice_memos/default_supervisor_system_prompt.txt +19 -0
  88. btech_agent_lab-1.9.0/agent_lab/services/agent_types/business/voice_memos/schema.py +26 -0
  89. btech_agent_lab-1.9.0/agent_lab/services/agent_types/coordinator_planner_supervisor/__init__.py +44 -0
  90. btech_agent_lab-1.9.0/agent_lab/services/agent_types/coordinator_planner_supervisor/agent.py +547 -0
  91. btech_agent_lab-1.9.0/agent_lab/services/agent_types/coordinator_planner_supervisor/default_browser_system_prompt.txt +26 -0
  92. btech_agent_lab-1.9.0/agent_lab/services/agent_types/coordinator_planner_supervisor/default_coder_system_prompt.txt +31 -0
  93. btech_agent_lab-1.9.0/agent_lab/services/agent_types/coordinator_planner_supervisor/default_collection_name.txt +1 -0
  94. btech_agent_lab-1.9.0/agent_lab/services/agent_types/coordinator_planner_supervisor/default_coordinator_system_prompt.txt +33 -0
  95. btech_agent_lab-1.9.0/agent_lab/services/agent_types/coordinator_planner_supervisor/default_planner_system_prompt.txt +44 -0
  96. btech_agent_lab-1.9.0/agent_lab/services/agent_types/coordinator_planner_supervisor/default_reporter_system_prompt.txt +57 -0
  97. btech_agent_lab-1.9.0/agent_lab/services/agent_types/coordinator_planner_supervisor/default_researcher_system_prompt.txt +49 -0
  98. btech_agent_lab-1.9.0/agent_lab/services/agent_types/coordinator_planner_supervisor/default_supervisor_system_prompt.txt +19 -0
  99. btech_agent_lab-1.9.0/agent_lab/services/agent_types/coordinator_planner_supervisor/schema.py +22 -0
  100. btech_agent_lab-1.9.0/agent_lab/services/agent_types/discovery.py +32 -0
  101. btech_agent_lab-1.9.0/agent_lab/services/agent_types/react_rag/__init__.py +0 -0
  102. btech_agent_lab-1.9.0/agent_lab/services/agent_types/react_rag/agent.py +119 -0
  103. btech_agent_lab-1.9.0/agent_lab/services/agent_types/react_rag/default_collection_name.txt +1 -0
  104. btech_agent_lab-1.9.0/agent_lab/services/agent_types/react_rag/default_execution_system_prompt.txt +24 -0
  105. btech_agent_lab-1.9.0/agent_lab/services/agent_types/registration.py +59 -0
  106. btech_agent_lab-1.9.0/agent_lab/services/agent_types/registry.py +44 -0
  107. btech_agent_lab-1.9.0/agent_lab/services/agent_types/schema.py +13 -0
  108. btech_agent_lab-1.9.0/agent_lab/services/agent_types/test_echo/__init__.py +0 -0
  109. btech_agent_lab-1.9.0/agent_lab/services/agent_types/test_echo/test_echo_agent.py +46 -0
  110. btech_agent_lab-1.9.0/agent_lab/services/agent_types/vision_document/__init__.py +0 -0
  111. btech_agent_lab-1.9.0/agent_lab/services/agent_types/vision_document/agent.py +117 -0
  112. btech_agent_lab-1.9.0/agent_lab/services/agent_types/vision_document/default_execution_system_prompt.txt +34 -0
  113. btech_agent_lab-1.9.0/agent_lab/services/agents.py +75 -0
  114. btech_agent_lab-1.9.0/agent_lab/services/attachments.py +176 -0
  115. btech_agent_lab-1.9.0/agent_lab/services/auth.py +173 -0
  116. btech_agent_lab-1.9.0/agent_lab/services/integrations.py +28 -0
  117. btech_agent_lab-1.9.0/agent_lab/services/language_model_settings.py +38 -0
  118. btech_agent_lab-1.9.0/agent_lab/services/language_models.py +93 -0
  119. btech_agent_lab-1.9.0/agent_lab/services/messages.py +59 -0
  120. btech_agent_lab-1.9.0/agent_lab/services/tasks.py +46 -0
  121. btech_agent_lab-1.9.0/agent_lab/static/logo.svg +7 -0
  122. btech_agent_lab-1.9.0/pyproject.toml +136 -0
@@ -0,0 +1,232 @@
1
+ ### Python template
2
+ # Byte-compiled / optimized / DLL files
3
+ __pycache__/
4
+ *.py[cod]
5
+ *$py.class
6
+
7
+ # C extensions
8
+ *.so
9
+
10
+ # Distribution / packaging
11
+ .Python
12
+ build/
13
+ develop-eggs/
14
+ dist/
15
+ downloads/
16
+ eggs/
17
+ .eggs/
18
+ lib/
19
+ lib64/
20
+ parts/
21
+ sdist/
22
+ var/
23
+ wheels/
24
+ share/python-wheels/
25
+ *.egg-info/
26
+ .installed.cfg
27
+ *.egg
28
+ MANIFEST
29
+
30
+ # PyInstaller
31
+ # Usually these files are written by a python script from a template
32
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
33
+ *.manifest
34
+ *.spec
35
+
36
+ # Installer logs
37
+ pip-log.txt
38
+ pip-delete-this-directory.txt
39
+
40
+ # Unit test / coverage reports
41
+ htmlcov/
42
+ .tox/
43
+ .nox/
44
+ .coverage
45
+ .coverage.*
46
+ .cache
47
+ nosetests.xml
48
+ coverage.xml
49
+ *.cover
50
+ *.py,cover
51
+ .hypothesis/
52
+ .pytest_cache/
53
+ cover/
54
+
55
+ # Translations
56
+ *.mo
57
+ *.pot
58
+
59
+ # Django stuff:
60
+ *.log
61
+ local_settings.py
62
+ db.sqlite3
63
+ db.sqlite3-journal
64
+
65
+ # Flask stuff:
66
+ instance/
67
+ .webassets-cache
68
+
69
+ # Scrapy stuff:
70
+ .scrapy
71
+
72
+ # Sphinx documentation
73
+ docs/_build/
74
+
75
+ # PyBuilder
76
+ .pybuilder/
77
+ target/
78
+
79
+ # Jupyter Notebook
80
+ .ipynb_checkpoints
81
+
82
+ # IPython
83
+ profile_default/
84
+ ipython_config.py
85
+
86
+ # pyenv
87
+ # For a library or package, you might want to ignore these files since the code is
88
+ # intended to run in multiple environments; otherwise, check them in:
89
+ # .python-version
90
+
91
+ # pipenv
92
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
94
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
95
+ # install all needed dependencies.
96
+ #Pipfile.lock
97
+
98
+ # poetry
99
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
100
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
101
+ # commonly ignored for libraries.
102
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
103
+ #poetry.lock
104
+
105
+ # pdm
106
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
107
+ #pdm.lock
108
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
109
+ # in version control.
110
+ # https://pdm.fming.dev/#use-with-ide
111
+ .pdm.toml
112
+
113
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
114
+ __pypackages__/
115
+
116
+ # Celery stuff
117
+ celerybeat-schedule
118
+ celerybeat.pid
119
+
120
+ # SageMath parsed files
121
+ *.sage.py
122
+
123
+ # Environments
124
+ .env
125
+ .venv
126
+ env/
127
+ venv/
128
+ ENV/
129
+ env.bak/
130
+ venv.bak/
131
+
132
+ # Spyder project settings
133
+ .spyderproject
134
+ .spyproject
135
+
136
+ # Rope project settings
137
+ .ropeproject
138
+
139
+ # mkdocs documentation
140
+ /site
141
+
142
+ # mypy
143
+ .mypy_cache/
144
+ .dmypy.json
145
+ dmypy.json
146
+
147
+ # Pyre type checker
148
+ .pyre/
149
+
150
+ # pytype static type analyzer
151
+ .pytype/
152
+
153
+ # Cython debug symbols
154
+ cython_debug/
155
+
156
+ # PyCharm
157
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
158
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
159
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
160
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
161
+ .idea/
162
+
163
+ /http-client.private.env.json
164
+
165
+ # vscode
166
+ .vscode/
167
+
168
+ # macOS
169
+ .DS_Store
170
+
171
+ opensearch-data
172
+
173
+ # Sonar
174
+ .scannerwork
175
+
176
+ # SQLite database
177
+ *.db
178
+
179
+ # Docker volumes
180
+
181
+ docker-volumes/vault/file/
182
+
183
+ # tmp dir
184
+ tmp/
185
+ temp-*
186
+
187
+ # Compiled output
188
+ out-tsc/
189
+ bazel-out/
190
+
191
+ # Node
192
+ node_modules/
193
+ npm-debug.log
194
+ yarn-error.log
195
+
196
+ # IDEs and editors
197
+ .project
198
+ .classpath
199
+ .c9/
200
+ *.launch
201
+ .settings/
202
+ *.sublime-workspace
203
+
204
+ # Visual Studio Code
205
+ .vscode/*
206
+ !.vscode/settings.json
207
+ !.vscode/tasks.json
208
+ !.vscode/launch.json
209
+ !.vscode/extensions.json
210
+ .history/*
211
+
212
+ # Miscellaneous
213
+ .angular/
214
+ .sass-cache/
215
+ connect.lock
216
+ coverage
217
+ libpeerconnection.log
218
+ testem.log
219
+ typings
220
+
221
+ # System files
222
+ Thumbs.db
223
+
224
+
225
+ # Docker compose default file name
226
+ [Dd]ocker-compose.yml
227
+
228
+ # Terraform
229
+ .terraform/
230
+ *.hcl
231
+ *.tfstate*
232
+ *.tfvars
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Agent-Lab Developers
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,200 @@
1
+ Metadata-Version: 2.4
2
+ Name: btech-agent-lab
3
+ Version: 1.9.0
4
+ Summary: Cloud-native LLM Agent Development and Testing Toolkit
5
+ Project-URL: Homepage, https://github.com/btech-software/agent-lab
6
+ Project-URL: Repository, https://github.com/btech-software/agent-lab
7
+ Project-URL: Documentation, https://github.com/btech-software/agent-lab/tree/main/doc
8
+ Project-URL: Changelog, https://github.com/btech-software/agent-lab/blob/main/CHANGELOG.md
9
+ Project-URL: Issues, https://github.com/btech-software/agent-lab/issues
10
+ Author-email: Bruno Sant'Anna <mail@bsantanna.me>
11
+ License-Expression: MIT
12
+ License-File: LICENSE
13
+ Keywords: agents,ai,fastapi,langchain,langgraph,llm,mcp,rag
14
+ Classifier: Development Status :: 5 - Production/Stable
15
+ Classifier: Framework :: FastAPI
16
+ Classifier: Intended Audience :: Developers
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
21
+ Requires-Python: >=3.12
22
+ Requires-Dist: browser-use
23
+ Requires-Dist: charset-normalizer~=3.4.7
24
+ Requires-Dist: ddgs~=9.14.4
25
+ Requires-Dist: dependency-injector~=4.48.3
26
+ Requires-Dist: fastapi-keycloak-middleware~=1.6.0
27
+ Requires-Dist: fastapi[standard]~=0.139.0
28
+ Requires-Dist: fastmcp~=3.4.4
29
+ Requires-Dist: hvac~=2.4.0
30
+ Requires-Dist: icalendar~=7.1.0
31
+ Requires-Dist: jinja2~=3.1.6
32
+ Requires-Dist: langchain-anthropic~=1.4.8
33
+ Requires-Dist: langchain-community~=0.4.1
34
+ Requires-Dist: langchain-core~=1.4.9
35
+ Requires-Dist: langchain-experimental~=0.4.1
36
+ Requires-Dist: langchain-openai~=1.2.1
37
+ Requires-Dist: langchain-postgres~=0.0.16
38
+ Requires-Dist: langchain-text-splitters~=1.1.2
39
+ Requires-Dist: langchain-xai~=1.2.2
40
+ Requires-Dist: langchain~=1.3.13
41
+ Requires-Dist: langgraph-checkpoint-postgres~=3.0.5
42
+ Requires-Dist: langgraph-prebuilt~=1.1.0
43
+ Requires-Dist: langgraph~=1.2.9
44
+ Requires-Dist: langwatch-scenario~=0.7.26
45
+ Requires-Dist: langwatch~=0.26.0
46
+ Requires-Dist: litellm~=1.84.0
47
+ Requires-Dist: markitdown[all]~=0.1.5
48
+ Requires-Dist: msal~=1.37.0
49
+ Requires-Dist: opentelemetry-api~=1.40.0
50
+ Requires-Dist: opentelemetry-exporter-otlp-proto-http~=1.40.0
51
+ Requires-Dist: opentelemetry-instrumentation-fastapi~=0.61b0
52
+ Requires-Dist: opentelemetry-instrumentation-httpx~=0.61b0
53
+ Requires-Dist: opentelemetry-instrumentation-langchain~=0.60.0
54
+ Requires-Dist: opentelemetry-instrumentation-psycopg2~=0.61b0
55
+ Requires-Dist: opentelemetry-instrumentation-psycopg~=0.61b0
56
+ Requires-Dist: opentelemetry-instrumentation-sqlalchemy~=0.61b0
57
+ Requires-Dist: opentelemetry-sdk~=1.40.0
58
+ Requires-Dist: psutil~=7.2.2
59
+ Requires-Dist: psycopg-binary~=3.3.4
60
+ Requires-Dist: psycopg-pool~=3.3.1
61
+ Requires-Dist: psycopg2-binary~=2.9.12
62
+ Requires-Dist: pydantic~=2.13.4
63
+ Requires-Dist: pyyaml~=6.0.3
64
+ Requires-Dist: redis~=8.0.1
65
+ Requires-Dist: requests~=2.33.1
66
+ Requires-Dist: slowapi~=0.1.9
67
+ Requires-Dist: sqlalchemy~=2.0.51
68
+ Requires-Dist: starlette~=1.3.1
69
+ Requires-Dist: typing-extensions~=4.16.0
70
+ Requires-Dist: uvicorn~=0.51.0
71
+ Description-Content-Type: text/markdown
72
+
73
+ <h2 align="center"><a href="https://github.com/btech-software/agent-lab">Agent-Lab | 🤖🧪</a></h2>
74
+ <h3 align="center">LLM Agent Development and Testing Toolkit</h3>
75
+
76
+ <div align="center">
77
+
78
+ [![PyPI version](https://img.shields.io/pypi/v/btech-agent-lab.svg)](https://pypi.org/project/btech-agent-lab/)
79
+ [![Continuous Integration](https://github.com/btech-software/agent-lab/actions/workflows/build.yml/badge.svg)](https://github.com/btech-software/agent-lab/actions/workflows/build.yml)
80
+ [![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=btech-software_agent-lab&metric=alert_status)](https://sonarcloud.io/dashboard?id=btech-software_agent-lab)
81
+ [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=btech-software_agent-lab&metric=coverage)](https://sonarcloud.io/component_measures?metric=coverage&selected=btech-software_agent-lab%3Aapp&id=btech-software_agent-lab)
82
+ [![Python 3.12+](https://img.shields.io/badge/python-3.12+-blue.svg)](https://www.python.org/downloads/)
83
+ [![FastAPI](https://img.shields.io/badge/FastAPI-009485.svg?logo=fastapi&logoColor=white)](#key-features)
84
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/btech-software/agent-lab/blob/main/LICENSE)
85
+
86
+ </div>
87
+
88
+ ---
89
+
90
+ ### Table of Contents
91
+ - [What is Agent-Lab?](#what-is-agent-lab)
92
+ - [Overview](#overview)
93
+ - [Project Principles](#project-principles)
94
+ - [Key Features](#key-features)
95
+ - [MCP Server](#mcp-server)
96
+ - [Getting Started](#getting-started)
97
+ - [Contributing](#contributing)
98
+ - [License](#license)
99
+
100
+ ---
101
+
102
+ ## What is Agent-Lab?
103
+
104
+ Agent-Lab is a cloud-native toolkit for building, testing, and deploying LLM-powered autonomous agents. Think of it as a platform where you wire up different AI agent types (RAG, browser automation, voice memos, vision, multi-agent supervisors) and interact with them via a REST API.
105
+
106
+ It features relational persistence with PostgreSQL, secure secrets management using Vault, observability through OpenTelemetry, and PgVector for vector storage and similarity search.
107
+
108
+ ---
109
+
110
+ ## Overview
111
+
112
+ **Tech stack:** Python 3.12, FastAPI, LangChain/LangGraph, PostgreSQL (3 databases: relational, vectors via pgvector, LangGraph checkpoints), Redis for pub/sub, Keycloak for auth, Docker Compose for orchestration.
113
+
114
+ **Architecture** — Clean Architecture with Dependency Injection:
115
+ - **Interface** — FastAPI routers + MCP server
116
+ - **Services** — Business logic, agent implementations
117
+ - **Domain** — SQLAlchemy models, repository interfaces
118
+ - **Infrastructure** — DB, auth, metrics (OpenTelemetry)
119
+
120
+ All wiring lives in `agent_lab/core/container.py` via `dependency-injector`.
121
+
122
+ **Agent system** — Agents extend `WorkflowAgentBase` (which uses LangGraph state graphs). Each agent type lives under `agent_lab/services/agent_types/` and is registered in a registry. The hierarchy goes from simple (echo, adaptive RAG) to complex (coordinator-planner-supervisor multi-agent). Agents process messages, have configurable settings (Jinja2-templated prompts), and persist state in the checkpoints database.
123
+
124
+ **Testing** — Two layers:
125
+ - **Integration tests** spin up real infrastructure via testcontainers (Postgres, Redis, Keycloak, Ollama as an OpenAI-compatible embeddings mock, headless Chrome).
126
+ - **Simulation tests** use `langwatch-scenario` with LLM judges to evaluate agent behavior end-to-end.
127
+
128
+ **Deployment** — Ships with Helm charts (`charts/`) for Kubernetes and Terraform scripts (`terraform/`) for provisioning cloud infrastructure including databases, auth realms, and secrets. See [Setup guide](https://github.com/btech-software/agent-lab/blob/main/doc/SETUP.md) for details.
129
+
130
+ ---
131
+
132
+ ## Project Principles
133
+
134
+ - Give researchers and developers everything they need to build, test, and experiment with LLM agents, with ready-to-use reference implementations.
135
+ - Expose an MCP server for agent discovery, conversation history, and agent-to-agent communication.
136
+ - Ship with integration and simulation test suites so every agent change is validated automatically.
137
+ - Provide full observability through logs, metrics, and traces for explainability and evaluation.
138
+ - Make it easy to create new custom agents by extending base classes and registering them in the agent registry.
139
+ - Run anywhere with a cloud-native architecture built for containerized deployment and horizontal scaling.
140
+
141
+ ---
142
+
143
+ ## Key Features
144
+
145
+ - **REST API**: Manage integrations with AI suppliers, LLMs settings, agents, and conversation histories with our [REST API](https://github.com/btech-software/agent-lab/blob/main/doc/REST_API.md).
146
+ - **MCP Server**: Utilize the [Model Control Protocol (MCP) server](https://github.com/btech-software/agent-lab/blob/main/doc/MCP.md) for agent discovery, dialog history, and agent-to-agent communication.
147
+ - **Observability**: Obtain detailed insights through logs, metrics, and traces powered by [OpenTelemetry](https://github.com/btech-software/agent-lab/blob/main/doc/OTEL.md).
148
+ - Includes reference implementations for [Grafana](https://github.com/btech-software/agent-lab/blob/main/doc/otel/GRAFANA.md) and [OpenSearch Dashboards](https://github.com/btech-software/agent-lab/blob/main/doc/otel/OPENSEARCH.md).
149
+ - **Cloud-Native**: Optimized for cloud environments with Docker, Kubernetes, and [Terraform scripts](https://github.com/btech-software/agent-lab/blob/main/doc/SETUP.md) for streamlined deployment.
150
+ - **Relational Persistence**: Store data reliably using PostgreSQL to support the [entity domain model](https://github.com/btech-software/agent-lab/blob/main/doc/DOMAIN.md) for prompts, agent-specific settings, conversations, and more.
151
+ - **Secrets Management**: Securely store and retrieve secrets with [Vault](https://github.com/btech-software/agent-lab/blob/main/doc/VAULT.md).
152
+ - **Vector Storage and Search**: Efficiently manage vector data using PgVector for similarity search and retrieval.
153
+ - **Agent Memory**: Using PostgreSQL checkpointer to store and retrieve agent memory, enabling agents to maintain context across interactions.
154
+ - **Integration Testing**: Ensure reliability and correctness with a comprehensive [integration test suite](https://github.com/btech-software/agent-lab/blob/main/doc/TESTS.md).
155
+
156
+ ---
157
+
158
+ ## MCP Server
159
+
160
+ Agent-Lab features a MCP Server that allows agent discovery (`get_agent_list` tool), dialog history (`get_message_list` tool) and agent-to-agent communication (`post_message` tool).
161
+
162
+ The following example shows MCP Server discovering and obtaining dialog history of a [supervised coder agent](https://github.com/btech-software/agent-lab/blob/main/notebooks/05_test_agent_type-multiagent-coder.ipynb) instance:
163
+
164
+ <div align="center">
165
+
166
+ ![Claude Desktop Demo](https://raw.githubusercontent.com/btech-software/agent-lab/main/doc/claude_demo.gif)
167
+
168
+ </div>
169
+
170
+ Please refer to [MCP guide](https://github.com/btech-software/agent-lab/blob/main/doc/MCP.md) for more details.
171
+
172
+
173
+ **Note**: Claude Desktop is used only for demonstration purposes. This project is not affiliated with Anthropic AI.
174
+
175
+ ---
176
+
177
+ ## Getting Started
178
+
179
+ Agent-Lab is designed for ease of setup and use, whether you're a developer building LLM agents or a researcher experimenting with agentic workflows.
180
+
181
+ Documentation in this repository is divided into two main sections:
182
+
183
+ - **Developer's Guide**: Tailored for developers who want to customize Agent-Lab or build agentic workflows. It includes setup instructions and development practices. Please refer to our [developer's guide](https://github.com/btech-software/agent-lab/blob/main/doc/DEV_GUIDE.md).
184
+ - **Researcher's Guide**: Provides detailed instructions for researchers on setting up and using Agent-Lab, including how to run the MCP server, manage agents, conduct experiments, tune prompts, and prototype new agents. Please refer to our [researcher's guide](https://github.com/btech-software/agent-lab/blob/main/doc/RESEARCHER_GUIDE.md).
185
+
186
+ Please consult these guides for detailed instructions on getting started with Agent-Lab.
187
+
188
+ ---
189
+
190
+ ## Contributing
191
+
192
+ Community support is greatly appreciated. If you encounter any issues or have suggestions for enhancements, please report them by creating an issue on our [GitHub Issues](https://github.com/btech-software/agent-lab/issues) page.
193
+
194
+ Refer to our [developer's guide](https://github.com/btech-software/agent-lab/blob/main/doc/DEV_GUIDE.md) for instructions on how to contribute to the project.
195
+
196
+ ---
197
+
198
+ ## License
199
+
200
+ This project is licensed under the MIT License. See the [LICENSE](https://github.com/btech-software/agent-lab/blob/main/LICENSE) file for details.
@@ -0,0 +1,128 @@
1
+ <h2 align="center"><a href="https://github.com/btech-software/agent-lab">Agent-Lab | 🤖🧪</a></h2>
2
+ <h3 align="center">LLM Agent Development and Testing Toolkit</h3>
3
+
4
+ <div align="center">
5
+
6
+ [![PyPI version](https://img.shields.io/pypi/v/btech-agent-lab.svg)](https://pypi.org/project/btech-agent-lab/)
7
+ [![Continuous Integration](https://github.com/btech-software/agent-lab/actions/workflows/build.yml/badge.svg)](https://github.com/btech-software/agent-lab/actions/workflows/build.yml)
8
+ [![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=btech-software_agent-lab&metric=alert_status)](https://sonarcloud.io/dashboard?id=btech-software_agent-lab)
9
+ [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=btech-software_agent-lab&metric=coverage)](https://sonarcloud.io/component_measures?metric=coverage&selected=btech-software_agent-lab%3Aapp&id=btech-software_agent-lab)
10
+ [![Python 3.12+](https://img.shields.io/badge/python-3.12+-blue.svg)](https://www.python.org/downloads/)
11
+ [![FastAPI](https://img.shields.io/badge/FastAPI-009485.svg?logo=fastapi&logoColor=white)](#key-features)
12
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/btech-software/agent-lab/blob/main/LICENSE)
13
+
14
+ </div>
15
+
16
+ ---
17
+
18
+ ### Table of Contents
19
+ - [What is Agent-Lab?](#what-is-agent-lab)
20
+ - [Overview](#overview)
21
+ - [Project Principles](#project-principles)
22
+ - [Key Features](#key-features)
23
+ - [MCP Server](#mcp-server)
24
+ - [Getting Started](#getting-started)
25
+ - [Contributing](#contributing)
26
+ - [License](#license)
27
+
28
+ ---
29
+
30
+ ## What is Agent-Lab?
31
+
32
+ Agent-Lab is a cloud-native toolkit for building, testing, and deploying LLM-powered autonomous agents. Think of it as a platform where you wire up different AI agent types (RAG, browser automation, voice memos, vision, multi-agent supervisors) and interact with them via a REST API.
33
+
34
+ It features relational persistence with PostgreSQL, secure secrets management using Vault, observability through OpenTelemetry, and PgVector for vector storage and similarity search.
35
+
36
+ ---
37
+
38
+ ## Overview
39
+
40
+ **Tech stack:** Python 3.12, FastAPI, LangChain/LangGraph, PostgreSQL (3 databases: relational, vectors via pgvector, LangGraph checkpoints), Redis for pub/sub, Keycloak for auth, Docker Compose for orchestration.
41
+
42
+ **Architecture** — Clean Architecture with Dependency Injection:
43
+ - **Interface** — FastAPI routers + MCP server
44
+ - **Services** — Business logic, agent implementations
45
+ - **Domain** — SQLAlchemy models, repository interfaces
46
+ - **Infrastructure** — DB, auth, metrics (OpenTelemetry)
47
+
48
+ All wiring lives in `agent_lab/core/container.py` via `dependency-injector`.
49
+
50
+ **Agent system** — Agents extend `WorkflowAgentBase` (which uses LangGraph state graphs). Each agent type lives under `agent_lab/services/agent_types/` and is registered in a registry. The hierarchy goes from simple (echo, adaptive RAG) to complex (coordinator-planner-supervisor multi-agent). Agents process messages, have configurable settings (Jinja2-templated prompts), and persist state in the checkpoints database.
51
+
52
+ **Testing** — Two layers:
53
+ - **Integration tests** spin up real infrastructure via testcontainers (Postgres, Redis, Keycloak, Ollama as an OpenAI-compatible embeddings mock, headless Chrome).
54
+ - **Simulation tests** use `langwatch-scenario` with LLM judges to evaluate agent behavior end-to-end.
55
+
56
+ **Deployment** — Ships with Helm charts (`charts/`) for Kubernetes and Terraform scripts (`terraform/`) for provisioning cloud infrastructure including databases, auth realms, and secrets. See [Setup guide](https://github.com/btech-software/agent-lab/blob/main/doc/SETUP.md) for details.
57
+
58
+ ---
59
+
60
+ ## Project Principles
61
+
62
+ - Give researchers and developers everything they need to build, test, and experiment with LLM agents, with ready-to-use reference implementations.
63
+ - Expose an MCP server for agent discovery, conversation history, and agent-to-agent communication.
64
+ - Ship with integration and simulation test suites so every agent change is validated automatically.
65
+ - Provide full observability through logs, metrics, and traces for explainability and evaluation.
66
+ - Make it easy to create new custom agents by extending base classes and registering them in the agent registry.
67
+ - Run anywhere with a cloud-native architecture built for containerized deployment and horizontal scaling.
68
+
69
+ ---
70
+
71
+ ## Key Features
72
+
73
+ - **REST API**: Manage integrations with AI suppliers, LLMs settings, agents, and conversation histories with our [REST API](https://github.com/btech-software/agent-lab/blob/main/doc/REST_API.md).
74
+ - **MCP Server**: Utilize the [Model Control Protocol (MCP) server](https://github.com/btech-software/agent-lab/blob/main/doc/MCP.md) for agent discovery, dialog history, and agent-to-agent communication.
75
+ - **Observability**: Obtain detailed insights through logs, metrics, and traces powered by [OpenTelemetry](https://github.com/btech-software/agent-lab/blob/main/doc/OTEL.md).
76
+ - Includes reference implementations for [Grafana](https://github.com/btech-software/agent-lab/blob/main/doc/otel/GRAFANA.md) and [OpenSearch Dashboards](https://github.com/btech-software/agent-lab/blob/main/doc/otel/OPENSEARCH.md).
77
+ - **Cloud-Native**: Optimized for cloud environments with Docker, Kubernetes, and [Terraform scripts](https://github.com/btech-software/agent-lab/blob/main/doc/SETUP.md) for streamlined deployment.
78
+ - **Relational Persistence**: Store data reliably using PostgreSQL to support the [entity domain model](https://github.com/btech-software/agent-lab/blob/main/doc/DOMAIN.md) for prompts, agent-specific settings, conversations, and more.
79
+ - **Secrets Management**: Securely store and retrieve secrets with [Vault](https://github.com/btech-software/agent-lab/blob/main/doc/VAULT.md).
80
+ - **Vector Storage and Search**: Efficiently manage vector data using PgVector for similarity search and retrieval.
81
+ - **Agent Memory**: Using PostgreSQL checkpointer to store and retrieve agent memory, enabling agents to maintain context across interactions.
82
+ - **Integration Testing**: Ensure reliability and correctness with a comprehensive [integration test suite](https://github.com/btech-software/agent-lab/blob/main/doc/TESTS.md).
83
+
84
+ ---
85
+
86
+ ## MCP Server
87
+
88
+ Agent-Lab features a MCP Server that allows agent discovery (`get_agent_list` tool), dialog history (`get_message_list` tool) and agent-to-agent communication (`post_message` tool).
89
+
90
+ The following example shows MCP Server discovering and obtaining dialog history of a [supervised coder agent](https://github.com/btech-software/agent-lab/blob/main/notebooks/05_test_agent_type-multiagent-coder.ipynb) instance:
91
+
92
+ <div align="center">
93
+
94
+ ![Claude Desktop Demo](https://raw.githubusercontent.com/btech-software/agent-lab/main/doc/claude_demo.gif)
95
+
96
+ </div>
97
+
98
+ Please refer to [MCP guide](https://github.com/btech-software/agent-lab/blob/main/doc/MCP.md) for more details.
99
+
100
+
101
+ **Note**: Claude Desktop is used only for demonstration purposes. This project is not affiliated with Anthropic AI.
102
+
103
+ ---
104
+
105
+ ## Getting Started
106
+
107
+ Agent-Lab is designed for ease of setup and use, whether you're a developer building LLM agents or a researcher experimenting with agentic workflows.
108
+
109
+ Documentation in this repository is divided into two main sections:
110
+
111
+ - **Developer's Guide**: Tailored for developers who want to customize Agent-Lab or build agentic workflows. It includes setup instructions and development practices. Please refer to our [developer's guide](https://github.com/btech-software/agent-lab/blob/main/doc/DEV_GUIDE.md).
112
+ - **Researcher's Guide**: Provides detailed instructions for researchers on setting up and using Agent-Lab, including how to run the MCP server, manage agents, conduct experiments, tune prompts, and prototype new agents. Please refer to our [researcher's guide](https://github.com/btech-software/agent-lab/blob/main/doc/RESEARCHER_GUIDE.md).
113
+
114
+ Please consult these guides for detailed instructions on getting started with Agent-Lab.
115
+
116
+ ---
117
+
118
+ ## Contributing
119
+
120
+ Community support is greatly appreciated. If you encounter any issues or have suggestions for enhancements, please report them by creating an issue on our [GitHub Issues](https://github.com/btech-software/agent-lab/issues) page.
121
+
122
+ Refer to our [developer's guide](https://github.com/btech-software/agent-lab/blob/main/doc/DEV_GUIDE.md) for instructions on how to contribute to the project.
123
+
124
+ ---
125
+
126
+ ## License
127
+
128
+ This project is licensed under the MIT License. See the [LICENSE](https://github.com/btech-software/agent-lab/blob/main/LICENSE) file for details.
@@ -0,0 +1,52 @@
1
+ """Agent-Lab: a framework for building AI agent applications with FastAPI.
2
+
3
+ Public surface for downstream apps:
4
+
5
+ - ``create_app`` / ``RouterMount`` — assemble the FastAPI application.
6
+ - ``Container`` — subclass to add providers (services, MCP registrars, ...).
7
+ - ``RegisterAgent`` — decorate AgentBase subclasses; discovered via
8
+ ``create_app(scan_packages=[...])`` or ``agent_lab.agents`` entry points.
9
+ - ``ConfigSource`` — supply configuration from YAML, Vault, or a custom source.
10
+ """
11
+
12
+ from agent_lab.app_factory import RouterMount, bind_agent_registry, create_app
13
+ from agent_lab.core.config import (
14
+ ConfigSource,
15
+ VaultConfigSource,
16
+ YamlConfigSource,
17
+ default_config_source,
18
+ )
19
+ from agent_lab.core.container import Container
20
+ from agent_lab.infrastructure.metrics.tracing_backends import TracingBackend
21
+ from agent_lab.interface.mcp.registrar import McpRegistrar
22
+ from agent_lab.services.agent_types.base import (
23
+ AgentBase,
24
+ AgentUtils,
25
+ ContactSupportAgentBase,
26
+ SupervisedWorkflowAgentBase,
27
+ WebAgentBase,
28
+ WorkflowAgentBase,
29
+ )
30
+ from agent_lab.services.agent_types.registration import RegisterAgent
31
+ from agent_lab.services.agent_types.registry import AgentRegistry
32
+
33
+ __all__ = [
34
+ "AgentBase",
35
+ "AgentRegistry",
36
+ "AgentUtils",
37
+ "ConfigSource",
38
+ "ContactSupportAgentBase",
39
+ "Container",
40
+ "McpRegistrar",
41
+ "RegisterAgent",
42
+ "RouterMount",
43
+ "SupervisedWorkflowAgentBase",
44
+ "TracingBackend",
45
+ "VaultConfigSource",
46
+ "WebAgentBase",
47
+ "WorkflowAgentBase",
48
+ "YamlConfigSource",
49
+ "bind_agent_registry",
50
+ "create_app",
51
+ "default_config_source",
52
+ ]