agenta 0.6.10__tar.gz → 0.7.1__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 agenta might be problematic. Click here for more details.
- agenta-0.7.1/PKG-INFO +318 -0
- agenta-0.7.1/README.md +285 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/__init__.py +1 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/cli/telemetry.py +6 -4
- {agenta-0.6.10 → agenta-0.7.1}/agenta/cli/variant_commands.py +0 -2
- {agenta-0.6.10 → agenta-0.7.1}/agenta/config.py +4 -1
- {agenta-0.6.10 → agenta-0.7.1}/agenta/sdk/__init__.py +1 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/sdk/agenta_decorator.py +16 -6
- {agenta-0.6.10 → agenta-0.7.1}/agenta/sdk/agenta_init.py +4 -4
- {agenta-0.6.10 → agenta-0.7.1}/agenta/sdk/types.py +14 -1
- agenta-0.7.1/agenta/sdk/utils/helper/openai_cost.py +166 -0
- {agenta-0.6.10 → agenta-0.7.1}/pyproject.toml +3 -3
- agenta-0.6.10/PKG-INFO +0 -240
- agenta-0.6.10/README.md +0 -207
- {agenta-0.6.10 → agenta-0.7.1}/agenta/cli/helper.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/cli/main.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/cli/variant_configs.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/Readme.md +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/__init__.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/api.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/api_models.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/__init__.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/client.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/core/__init__.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/core/api_error.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/core/client_wrapper.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/core/datetime_utils.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/core/jsonable_encoder.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/core/remove_none_from_dict.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/errors/__init__.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/errors/unprocessable_entity_error.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/__init__.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/add_variant_from_base_and_config_response.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/app.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/app_variant_output.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/base_output.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/body_import_testset.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/container_templates_response.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/create_app_output.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/create_custom_evaluation.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/custom_evaluation_detail.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/custom_evaluation_names.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/custom_evaluation_output.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/docker_env_vars.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/environment_output.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/evaluation.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/evaluation_scenario.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/evaluation_scenario_input.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/evaluation_scenario_output.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/evaluation_scenario_score.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/evaluation_scenario_update_score.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/evaluation_status_enum.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/evaluation_type.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/evaluation_type_settings.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/evaluation_webhook.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/feedback.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/get_config_reponse.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/http_validation_error.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/image.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/invite_request.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/list_api_keys_output.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/new_testset.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/organization.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/organization_output.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/simple_evaluation_output.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/span.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/template.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/template_image_info.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/test_set_output_response.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/test_set_simple_response.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/trace.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/uri.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/validation_error.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/validation_error_loc_item.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/variant_action.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/backend/types/variant_action_enum.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/client/exceptions.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/config.toml +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/docker/docker-assets/Dockerfile.cloud.template +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/docker/docker-assets/Dockerfile.template +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/docker/docker-assets/README.md +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/docker/docker-assets/entrypoint.sh +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/docker/docker-assets/lambda_function.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/docker/docker-assets/main.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/docker/docker_utils.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/sdk/context.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/sdk/router.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/sdk/utils/globals.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/sdk/utils/preinit.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/templates/compose_email/README.md +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/templates/compose_email/app.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/templates/compose_email/env.example +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/templates/compose_email/requirements.txt +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/templates/compose_email/template.toml +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/templates/extract_data_to_json/README.md +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/templates/extract_data_to_json/app.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/templates/extract_data_to_json/env.example +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/templates/extract_data_to_json/requirements.txt +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/templates/extract_data_to_json/template.toml +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/templates/simple_prompt/README.md +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/templates/simple_prompt/app.py +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/templates/simple_prompt/env.example +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/templates/simple_prompt/requirements.txt +0 -0
- {agenta-0.6.10 → agenta-0.7.1}/agenta/templates/simple_prompt/template.toml +0 -0
agenta-0.7.1/PKG-INFO
ADDED
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: agenta
|
|
3
|
+
Version: 0.7.1
|
|
4
|
+
Summary: The SDK for agenta is an open-source LLMOps platform.
|
|
5
|
+
Home-page: https://agenta.ai
|
|
6
|
+
Keywords: LLMOps,LLM,evaluation,prompt engineering
|
|
7
|
+
Author: Mahmoud Mabrouk
|
|
8
|
+
Author-email: mahmoud@agenta.ai
|
|
9
|
+
Requires-Python: >=3.9,<4.0
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
18
|
+
Requires-Dist: click (>=8.1.3,<9.0.0)
|
|
19
|
+
Requires-Dist: docker (>=6.1.1,<7.0.0)
|
|
20
|
+
Requires-Dist: fastapi (>=0.96.1)
|
|
21
|
+
Requires-Dist: importlib-metadata (>=6.7.0,<7.0.0)
|
|
22
|
+
Requires-Dist: ipdb (>=0.13)
|
|
23
|
+
Requires-Dist: posthog (>=3.1.0,<4.0.0)
|
|
24
|
+
Requires-Dist: pydantic (==1.10.13)
|
|
25
|
+
Requires-Dist: python-dotenv (>=1.0.0,<2.0.0)
|
|
26
|
+
Requires-Dist: python-multipart (>=0.0.6,<0.0.7)
|
|
27
|
+
Requires-Dist: questionary (>=1.10.0,<2.0.0)
|
|
28
|
+
Requires-Dist: toml (>=0.10.2,<0.11.0)
|
|
29
|
+
Project-URL: Documentation, https://docs.agenta.ai
|
|
30
|
+
Project-URL: Repository, https://github.com/agenta-ai/agenta
|
|
31
|
+
Description-Content-Type: text/markdown
|
|
32
|
+
|
|
33
|
+
<div align="center" style="margin: 30px">
|
|
34
|
+
<a href="https://agenta.ai/">
|
|
35
|
+
<div align="center" >
|
|
36
|
+
<picture >
|
|
37
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/Agenta-AI/agenta/assets/4510758/a356f263-6f5e-43df-8b58-4c183b8d8878" >
|
|
38
|
+
<source media="(prefers-color-scheme: light)" srcset="https://github.com/Agenta-AI/agenta/assets/4510758/68e055d4-d7b8-4943-992f-761558c64253" >
|
|
39
|
+
<img alt="Shows the logo of agenta" src="https://github.com/Agenta-AI/agenta/assets/4510758/68e055d4-d7b8-4943-992f-761558c64253" >
|
|
40
|
+
</picture>
|
|
41
|
+
</div>
|
|
42
|
+
</a>
|
|
43
|
+
<h4 align="center">
|
|
44
|
+
<a href="https://agenta.ai">Home Page</a> |
|
|
45
|
+
<a href="https://join.slack.com/t/agenta-hq/shared_invite/zt-1zsafop5i-Y7~ZySbhRZvKVPV5DO_7IA">Slack</a> |
|
|
46
|
+
<a href="https://docs.agenta.ai/">Documentation</a>
|
|
47
|
+
</h4>
|
|
48
|
+
<div align="center">
|
|
49
|
+
<strong>Quickly iterate, debug, and evaluate your LLM apps</strong><br />
|
|
50
|
+
The open-source LLMOps platform for prompt-engineering, evaluation, human feedback, and deployment of complex LLM apps.
|
|
51
|
+
</div>
|
|
52
|
+
</br>
|
|
53
|
+
<p align="center">
|
|
54
|
+
<img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="MIT license." />
|
|
55
|
+
<a href="https://docs.agenta.ai/">
|
|
56
|
+
<img src="https://img.shields.io/badge/Doc-online-green" alt="Doc">
|
|
57
|
+
</a>
|
|
58
|
+
|
|
59
|
+
<a href="https://github.com/Agenta-AI/agenta/blob/main/CONTRIBUTING.md">
|
|
60
|
+
<img src="https://img.shields.io/badge/PRs-Welcome-brightgreen" alt="PRs welcome" />
|
|
61
|
+
</a>
|
|
62
|
+
<img src="https://img.shields.io/github/contributors/Agenta-AI/agenta" alt="Contributors">
|
|
63
|
+
<img src="https://img.shields.io/github/last-commit/Agenta-AI/agenta" alt="Last Commit">
|
|
64
|
+
<img src="https://img.shields.io/github/commit-activity/m/agenta-ai/agenta" alt="Commits per month">
|
|
65
|
+
|
|
66
|
+
<a href="https://pypi.org/project/agenta/">
|
|
67
|
+
<img src="https://img.shields.io/pypi/dm/agenta" alt="PyPI - Downloads">
|
|
68
|
+
</a>
|
|
69
|
+
|
|
70
|
+
</br>
|
|
71
|
+
</p>
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
<p align="center">
|
|
75
|
+
<a href="https://join.slack.com/t/agenta-hq/shared_invite/zt-1zsafop5i-Y7~ZySbhRZvKVPV5DO_7IA">
|
|
76
|
+
<img src="https://img.shields.io/badge/JOIN US ON SLACK-4A154B?style=for-the-badge&logo=slack&logoColor=white" />
|
|
77
|
+
</a>
|
|
78
|
+
<a href="https://www.linkedin.com/company/agenta-ai/">
|
|
79
|
+
<img src="https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white" />
|
|
80
|
+
</a>
|
|
81
|
+
<a href="https://twitter.com/agenta_ai">
|
|
82
|
+
<img src="https://img.shields.io/twitter/follow/agenta_ai?style=social" height="28" />
|
|
83
|
+
</a>
|
|
84
|
+
</p>
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
</br>
|
|
88
|
+
|
|
89
|
+
<a href="https://cloud.agenta.ai">
|
|
90
|
+
<picture>
|
|
91
|
+
<img src="https://github.com/Agenta-AI/agenta/assets/4510758/a3024fac-2945-4208-ae12-4cc51ecfc970" />
|
|
92
|
+
</picture>
|
|
93
|
+
</a>
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
<br>
|
|
97
|
+
<br />
|
|
98
|
+
<br />
|
|
99
|
+
<div align="center" >
|
|
100
|
+
<picture >
|
|
101
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/Agenta-AI/agenta/assets/4510758/cf6d4713-4558-4c6c-9e1b-ee4eab261f4c" >
|
|
102
|
+
<source media="(prefers-color-scheme: light)" srcset="https://github.com/Agenta-AI/agenta/assets/4510758/ae9cf11f-8ef9-4b67-98c7-4a40341fa87a" >
|
|
103
|
+
<img alt="Mockup agenta" src="https://github.com/Agenta-AI/agenta/assets/4510758/ae9cf11f-8ef9-4b67-98c7-4a40341fa87a" >
|
|
104
|
+
</picture>
|
|
105
|
+
</div>
|
|
106
|
+
|
|
107
|
+
</div>
|
|
108
|
+
<br />
|
|
109
|
+
<br />
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
<h3 align="center">
|
|
114
|
+
<a href="#ℹ️-about"><b>About</b></a> •
|
|
115
|
+
<a href="#quick-start"><b>Quick Start</b></a> •
|
|
116
|
+
<a href="https://docs.agenta.ai/installation"><b>Installation</b></a> •
|
|
117
|
+
<a href="#features"><b>Features</b></a> •
|
|
118
|
+
<a href="https://docs.agenta.ai"><b>Documentation</b></a> •
|
|
119
|
+
<a href="#enterprise-support"><b>Enterprise</b></a> •
|
|
120
|
+
<a href="https://join.slack.com/t/agenta-hq/shared_invite/zt-1zsafop5i-Y7~ZySbhRZvKVPV5DO_7IA"><b>Community</b></a> •
|
|
121
|
+
<a href="#contributing"><b>Contributing</b></a>
|
|
122
|
+
</h3>
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
# ℹ️ About
|
|
127
|
+
|
|
128
|
+
Agenta is an end-to-end LLMOps platform. It provides the tools for **prompt engineering and management**, ⚖️ **evaluation**, and :rocket: **deployment**. All without imposing any restrictions on your choice of framework, library, or model.
|
|
129
|
+
|
|
130
|
+
Agenta allows developers and product teams to collaborate and build robust AI applications in less time.
|
|
131
|
+
|
|
132
|
+
## 🔨 How does it work?
|
|
133
|
+
|
|
134
|
+
| Using an LLM App Template (For Non-Technical Users) | Starting from Code |
|
|
135
|
+
| ------------- | ------------- |
|
|
136
|
+
|1. [Create an application using a pre-built template from our UI](https://cloud.agenta.ai?utm_source=github&utm_medium=readme&utm_campaign=github)<br />2. Access a playground where you can test and compare different prompts and configurations side-by-side.<br /> 3. Systematically evaluate your application using pre-built or custom evaluators.<br /> 4. Deploy the application to production with one click. |1. [Add a few lines to any LLM application code to automatically create a playground for it](https://docs.agenta.ai/developer_guides/tutorials/first-app-with-langchain) <br />2. Experiment with prompts and configurations, and compare them side-by-side in the playground. <br />3. Systematically evaluate your application using pre-built or custom evaluators. <br />4. Deploy the application to production with one click. |
|
|
137
|
+
|
|
138
|
+
<br /><br />
|
|
139
|
+
|
|
140
|
+
# Quick Start
|
|
141
|
+
|
|
142
|
+
### [Try the cloud version](https://cloud.agenta.ai?utm_source=github&utm_medium=readme&utm_campaign=github)
|
|
143
|
+
### [Create your first application in one-minute](https://docs.agenta.ai/getting_started/getting-started-ui)
|
|
144
|
+
### [Create an application using Langchain](https://docs.agenta.ai/developer_guides/tutorials/first-app-with-langchain)
|
|
145
|
+
### [Self-host agenta](https://docs.agenta.ai/self-host/host-locally)
|
|
146
|
+
### [Read the Documentation](https://docs.agenta.ai)
|
|
147
|
+
### [Check the Cookbook](https://docs.agenta.ai/cookbook)
|
|
148
|
+
|
|
149
|
+
# Features
|
|
150
|
+
|
|
151
|
+
<h3>Playground 🪄 <br/></h3>
|
|
152
|
+
With just a few lines of code, define the parameters and prompts you wish to experiment with. You and your team can quickly experiment and test new variants on the web UI. <br/>
|
|
153
|
+
|
|
154
|
+
https://github.com/Agenta-AI/agenta/assets/4510758/8b736d2b-7c61-414c-b534-d95efc69134c
|
|
155
|
+
|
|
156
|
+
<h3>Version Evaluation 📊 <br/></h3>
|
|
157
|
+
Define test sets, then evaluate manually or programmatically your different variants.<br/>
|
|
158
|
+
|
|
159
|
+

|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
<h3>API Deployment 🚀<br/></h3>
|
|
163
|
+
When you are ready, deploy your LLM applications as APIs in one click.<br/>
|
|
164
|
+
|
|
165
|
+

|
|
166
|
+
|
|
167
|
+
## Why choose Agenta for building LLM-apps?
|
|
168
|
+
|
|
169
|
+
- 🔨 **Build quickly**: You need to iterate many times on different architectures and prompts to bring apps to production. We streamline this process and allow you to do this in days instead of weeks.
|
|
170
|
+
- 🏗️ **Build robust apps and reduce hallucination**: We provide you with the tools to systematically and easily evaluate your application to make sure you only serve robust apps to production.
|
|
171
|
+
- 👨💻 **Developer-centric**: We cater to complex LLM-apps and pipelines that require more than one simple prompt. We allow you to experiment and iterate on apps that have complex integration, business logic, and many prompts.
|
|
172
|
+
- 🌐 **Solution-Agnostic**: You have the freedom to use any libraries and models, be it Langchain, llma_index, or a custom-written alternative.
|
|
173
|
+
- 🔒 **Privacy-First**: We respect your privacy and do not proxy your data through third-party services. The platform and the data are hosted on your infrastructure.
|
|
174
|
+
|
|
175
|
+
## How Agenta works:
|
|
176
|
+
|
|
177
|
+
**1. Write your LLM-app code**
|
|
178
|
+
|
|
179
|
+
Write the code using any framework, library, or model you want. Add the `agenta.post` decorator and put the inputs and parameters in the function call just like in this example:
|
|
180
|
+
|
|
181
|
+
_Example simple application that generates baby names:_
|
|
182
|
+
|
|
183
|
+
```python
|
|
184
|
+
import agenta as ag
|
|
185
|
+
from langchain.chains import LLMChain
|
|
186
|
+
from langchain.llms import OpenAI
|
|
187
|
+
from langchain.prompts import PromptTemplate
|
|
188
|
+
|
|
189
|
+
default_prompt = "Give me five cool names for a baby from {country} with this gender {gender}!!!!"
|
|
190
|
+
ag.init()
|
|
191
|
+
ag.config(prompt_template=ag.TextParam(default_prompt),
|
|
192
|
+
temperature=ag.FloatParam(0.9))
|
|
193
|
+
|
|
194
|
+
@ag.entrypoint
|
|
195
|
+
def generate(
|
|
196
|
+
country: str,
|
|
197
|
+
gender: str,
|
|
198
|
+
) -> str:
|
|
199
|
+
llm = OpenAI(temperature=ag.config.temperature)
|
|
200
|
+
prompt = PromptTemplate(
|
|
201
|
+
input_variables=["country", "gender"],
|
|
202
|
+
template=ag.config.prompt_template,
|
|
203
|
+
)
|
|
204
|
+
chain = LLMChain(llm=llm, prompt=prompt)
|
|
205
|
+
output = chain.run(country=country, gender=gender)
|
|
206
|
+
|
|
207
|
+
return output
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
**2.Deploy your app using the Agenta CLI**
|
|
211
|
+
|
|
212
|
+
<img width="650" alt="Screenshot 2023-06-19 at 15 58 34" src="https://github.com/Agenta-AI/agenta/assets/4510758/eede3e78-0fe1-42a0-ad4e-d880ddb10bf0">
|
|
213
|
+
|
|
214
|
+
**3. Go to agenta at http://localhost**
|
|
215
|
+
|
|
216
|
+
Now your team can 🔄 iterate, 🧪 experiment, and ⚖️ evaluate different versions of your app (with your code!) in the web platform.</summary>
|
|
217
|
+
<br/>
|
|
218
|
+
|
|
219
|
+
<img width="900" alt="Screenshot 2023-06-25 at 21 08 53" src="https://github.com/Agenta-AI/agenta/assets/57623556/7e07a988-a36a-4fb5-99dd-9cc13a678434">
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
# Enterprise Support
|
|
223
|
+
Contact us here for enterprise support and early access to agenta self-managed enterprise with Kubernetes support. <br/><br/>
|
|
224
|
+
<a href="https://cal.com/mahmoud-mabrouk-ogzgey/demo"><img src="https://cal.com/book-with-cal-dark.svg" alt="Book us"></a>
|
|
225
|
+
|
|
226
|
+
# Disabling Anonymized Tracking
|
|
227
|
+
|
|
228
|
+
To disable anonymized telemetry, set the following environment variable:
|
|
229
|
+
|
|
230
|
+
- For web: Set `TELEMETRY_TRACKING_ENABLED` to `false` in your `agenta-web/.env` file.
|
|
231
|
+
- For CLI: Set `telemetry_tracking_enabled` to `false` in your `~/.agenta/config.toml` file.
|
|
232
|
+
|
|
233
|
+
After making this change, restart agenta compose.
|
|
234
|
+
|
|
235
|
+
# Contributing
|
|
236
|
+
|
|
237
|
+
We warmly welcome contributions to Agenta. Feel free to submit issues, fork the repository, and send pull requests.
|
|
238
|
+
|
|
239
|
+
We are usually hanging in our Slack. Feel free to [join our Slack and ask us anything](https://join.slack.com/t/agenta-hq/shared_invite/zt-1zsafop5i-Y7~ZySbhRZvKVPV5DO_7IA)
|
|
240
|
+
|
|
241
|
+
Check out our [Contributing Guide](https://docs.agenta.ai/contributing/getting-started) for more information.
|
|
242
|
+
|
|
243
|
+
## Contributors ✨
|
|
244
|
+
|
|
245
|
+
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
|
246
|
+
[](#contributors-)
|
|
247
|
+
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
|
248
|
+
|
|
249
|
+
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
|
|
250
|
+
|
|
251
|
+
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
|
|
252
|
+
<!-- prettier-ignore-start -->
|
|
253
|
+
<!-- markdownlint-disable -->
|
|
254
|
+
<table>
|
|
255
|
+
<tbody>
|
|
256
|
+
<tr>
|
|
257
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/SamMethnani"><img src="https://avatars.githubusercontent.com/u/57623556?v=4?s=100" width="100px;" alt="Sameh Methnani"/><br /><sub><b>Sameh Methnani</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=SamMethnani" title="Code">💻</a> <a href="https://github.com/Agenta-AI/agenta/commits?author=SamMethnani" title="Documentation">📖</a></td>
|
|
258
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/suadsuljovic"><img src="https://avatars.githubusercontent.com/u/8658374?v=4?s=100" width="100px;" alt="Suad Suljovic"/><br /><sub><b>Suad Suljovic</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=suadsuljovic" title="Code">💻</a> <a href="#design-suadsuljovic" title="Design">🎨</a> <a href="#mentoring-suadsuljovic" title="Mentoring">🧑🏫</a> <a href="https://github.com/Agenta-AI/agenta/pulls?q=is%3Apr+reviewed-by%3Asuadsuljovic" title="Reviewed Pull Requests">👀</a></td>
|
|
259
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/burtenshaw"><img src="https://avatars.githubusercontent.com/u/19620375?v=4?s=100" width="100px;" alt="burtenshaw"/><br /><sub><b>burtenshaw</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=burtenshaw" title="Code">💻</a></td>
|
|
260
|
+
<td align="center" valign="top" width="14.28%"><a href="http://abram.tech"><img src="https://avatars.githubusercontent.com/u/55067204?v=4?s=100" width="100px;" alt="Abram"/><br /><sub><b>Abram</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=aybruhm" title="Code">💻</a> <a href="https://github.com/Agenta-AI/agenta/commits?author=aybruhm" title="Documentation">📖</a></td>
|
|
261
|
+
<td align="center" valign="top" width="14.28%"><a href="http://israelabebe.com"><img src="https://avatars.githubusercontent.com/u/7479824?v=4?s=100" width="100px;" alt="Israel Abebe"/><br /><sub><b>Israel Abebe</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/issues?q=author%3Avernu" title="Bug reports">🐛</a> <a href="#design-vernu" title="Design">🎨</a> <a href="https://github.com/Agenta-AI/agenta/commits?author=vernu" title="Code">💻</a></td>
|
|
262
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/SohaibAnwaar"><img src="https://avatars.githubusercontent.com/u/29427728?v=4?s=100" width="100px;" alt="Master X"/><br /><sub><b>Master X</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=SohaibAnwaar" title="Code">💻</a></td>
|
|
263
|
+
<td align="center" valign="top" width="14.28%"><a href="https://main-portfolio-26wv6oglp-witehound.vercel.app/"><img src="https://avatars.githubusercontent.com/u/26417477?v=4?s=100" width="100px;" alt="corinthian"/><br /><sub><b>corinthian</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=witehound" title="Code">💻</a> <a href="#design-witehound" title="Design">🎨</a></td>
|
|
264
|
+
</tr>
|
|
265
|
+
<tr>
|
|
266
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Pajko97"><img src="https://avatars.githubusercontent.com/u/25198892?v=4?s=100" width="100px;" alt="Pavle Janjusevic"/><br /><sub><b>Pavle Janjusevic</b></sub></a><br /><a href="#infra-Pajko97" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
|
|
267
|
+
<td align="center" valign="top" width="14.28%"><a href="http://kaosiso-ezealigo.netlify.app"><img src="https://avatars.githubusercontent.com/u/99529776?v=4?s=100" width="100px;" alt="Kaosi Ezealigo"/><br /><sub><b>Kaosi Ezealigo</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/issues?q=author%3Abekossy" title="Bug reports">🐛</a> <a href="https://github.com/Agenta-AI/agenta/commits?author=bekossy" title="Code">💻</a></td>
|
|
268
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/albnunes"><img src="https://avatars.githubusercontent.com/u/46302915?v=4?s=100" width="100px;" alt="Alberto Nunes"/><br /><sub><b>Alberto Nunes</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/issues?q=author%3Aalbnunes" title="Bug reports">🐛</a></td>
|
|
269
|
+
<td align="center" valign="top" width="14.28%"><a href="https://www.linkedin.com/in/mohammed-maaz-6290b0116/"><img src="https://avatars.githubusercontent.com/u/17180132?v=4?s=100" width="100px;" alt="Maaz Bin Khawar"/><br /><sub><b>Maaz Bin Khawar</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=MohammedMaaz" title="Code">💻</a> <a href="https://github.com/Agenta-AI/agenta/pulls?q=is%3Apr+reviewed-by%3AMohammedMaaz" title="Reviewed Pull Requests">👀</a> <a href="#mentoring-MohammedMaaz" title="Mentoring">🧑🏫</a></td>
|
|
270
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/devgenix"><img src="https://avatars.githubusercontent.com/u/56418363?v=4?s=100" width="100px;" alt="Nehemiah Onyekachukwu Emmanuel"/><br /><sub><b>Nehemiah Onyekachukwu Emmanuel</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=devgenix" title="Code">💻</a> <a href="#example-devgenix" title="Examples">💡</a> <a href="https://github.com/Agenta-AI/agenta/commits?author=devgenix" title="Documentation">📖</a></td>
|
|
271
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/philipokiokio"><img src="https://avatars.githubusercontent.com/u/55271518?v=4?s=100" width="100px;" alt="Philip Okiokio"/><br /><sub><b>Philip Okiokio</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=philipokiokio" title="Documentation">📖</a></td>
|
|
272
|
+
<td align="center" valign="top" width="14.28%"><a href="https://sweetdevil144.github.io/My-Website/"><img src="https://avatars.githubusercontent.com/u/117591942?v=4?s=100" width="100px;" alt="Abhinav Pandey"/><br /><sub><b>Abhinav Pandey</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=Sweetdevil144" title="Code">💻</a></td>
|
|
273
|
+
</tr>
|
|
274
|
+
<tr>
|
|
275
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/RamchandraWarang9822"><img src="https://avatars.githubusercontent.com/u/92023869?v=4?s=100" width="100px;" alt="Ramchandra Warang"/><br /><sub><b>Ramchandra Warang</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=RamchandraWarang9822" title="Code">💻</a> <a href="https://github.com/Agenta-AI/agenta/issues?q=author%3ARamchandraWarang9822" title="Bug reports">🐛</a></td>
|
|
276
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/lazyfuhrer"><img src="https://avatars.githubusercontent.com/u/64888892?v=4?s=100" width="100px;" alt="Biswarghya Biswas"/><br /><sub><b>Biswarghya Biswas</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=lazyfuhrer" title="Code">💻</a></td>
|
|
277
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/okieLoki"><img src="https://avatars.githubusercontent.com/u/96105929?v=4?s=100" width="100px;" alt="Uddeepta Raaj Kashyap"/><br /><sub><b>Uddeepta Raaj Kashyap</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=okieLoki" title="Code">💻</a></td>
|
|
278
|
+
<td align="center" valign="top" width="14.28%"><a href="http://www.linkedin.com/in/nayeem-abdullah-317098141"><img src="https://avatars.githubusercontent.com/u/32274108?v=4?s=100" width="100px;" alt="Nayeem Abdullah"/><br /><sub><b>Nayeem Abdullah</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=nayeem01" title="Code">💻</a></td>
|
|
279
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/kangsuhyun-yanolja"><img src="https://avatars.githubusercontent.com/u/124246127?v=4?s=100" width="100px;" alt="Kang Suhyun"/><br /><sub><b>Kang Suhyun</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=kangsuhyun-yanolja" title="Code">💻</a></td>
|
|
280
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/yeokyeong-yanolja"><img src="https://avatars.githubusercontent.com/u/128676129?v=4?s=100" width="100px;" alt="Yoon"/><br /><sub><b>Yoon</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=yeokyeong-yanolja" title="Code">💻</a></td>
|
|
281
|
+
<td align="center" valign="top" width="14.28%"><a href="https://mrkirthi24.netlify.app/"><img src="https://avatars.githubusercontent.com/u/53830546?v=4?s=100" width="100px;" alt="Kirthi Bagrecha Jain"/><br /><sub><b>Kirthi Bagrecha Jain</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=mrkirthi-24" title="Code">💻</a></td>
|
|
282
|
+
</tr>
|
|
283
|
+
<tr>
|
|
284
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/navdeep1840"><img src="https://avatars.githubusercontent.com/u/80774259?v=4?s=100" width="100px;" alt="Navdeep"/><br /><sub><b>Navdeep</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=navdeep1840" title="Code">💻</a></td>
|
|
285
|
+
<td align="center" valign="top" width="14.28%"><a href="https://www.linkedin.com/in/rhythm-sharma-708a421a8/"><img src="https://avatars.githubusercontent.com/u/64489317?v=4?s=100" width="100px;" alt="Rhythm Sharma"/><br /><sub><b>Rhythm Sharma</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=Rhythm-08" title="Code">💻</a></td>
|
|
286
|
+
<td align="center" valign="top" width="14.28%"><a href="https://osinachi.me"><img src="https://avatars.githubusercontent.com/u/40396070?v=4?s=100" width="100px;" alt="Osinachi Chukwujama "/><br /><sub><b>Osinachi Chukwujama </b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=vicradon" title="Code">💻</a></td>
|
|
287
|
+
<td align="center" valign="top" width="14.28%"><a href="https://liduos.com/"><img src="https://avatars.githubusercontent.com/u/47264881?v=4?s=100" width="100px;" alt="莫尔索"/><br /><sub><b>莫尔索</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=morsoli" title="Documentation">📖</a></td>
|
|
288
|
+
<td align="center" valign="top" width="14.28%"><a href="http://luccithedev.com"><img src="https://avatars.githubusercontent.com/u/22600781?v=4?s=100" width="100px;" alt="Agunbiade Adedeji"/><br /><sub><b>Agunbiade Adedeji</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=dejongbaba" title="Code">💻</a></td>
|
|
289
|
+
<td align="center" valign="top" width="14.28%"><a href="https://techemmy.github.io/"><img src="https://avatars.githubusercontent.com/u/43725109?v=4?s=100" width="100px;" alt="Emmanuel Oloyede"/><br /><sub><b>Emmanuel Oloyede</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=techemmy" title="Code">💻</a> <a href="https://github.com/Agenta-AI/agenta/commits?author=techemmy" title="Documentation">📖</a></td>
|
|
290
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Dhaneshwarguiyan"><img src="https://avatars.githubusercontent.com/u/116065351?v=4?s=100" width="100px;" alt="Dhaneshwarguiyan"/><br /><sub><b>Dhaneshwarguiyan</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=Dhaneshwarguiyan" title="Code">💻</a></td>
|
|
291
|
+
</tr>
|
|
292
|
+
<tr>
|
|
293
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/PentesterPriyanshu"><img src="https://avatars.githubusercontent.com/u/98478305?v=4?s=100" width="100px;" alt="Priyanshu Prajapati"/><br /><sub><b>Priyanshu Prajapati</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=PentesterPriyanshu" title="Documentation">📖</a></td>
|
|
294
|
+
<td align="center" valign="top" width="14.28%"><a href="https://venkataravitejagullapudi.github.io/"><img src="https://avatars.githubusercontent.com/u/70102577?v=4?s=100" width="100px;" alt="Raviteja"/><br /><sub><b>Raviteja</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=VenkataRavitejaGullapudi" title="Code">💻</a></td>
|
|
295
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/ArijitCloud"><img src="https://avatars.githubusercontent.com/u/81144422?v=4?s=100" width="100px;" alt="Arijit"/><br /><sub><b>Arijit</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=ArijitCloud" title="Code">💻</a></td>
|
|
296
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Yachika9925"><img src="https://avatars.githubusercontent.com/u/147185379?v=4?s=100" width="100px;" alt="Yachika9925"/><br /><sub><b>Yachika9925</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=Yachika9925" title="Documentation">📖</a></td>
|
|
297
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Dhoni77"><img src="https://avatars.githubusercontent.com/u/53973174?v=4?s=100" width="100px;" alt="Aldrin"/><br /><sub><b>Aldrin</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=Dhoni77" title="Tests">⚠️</a></td>
|
|
298
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/seungduk-yanolja"><img src="https://avatars.githubusercontent.com/u/115020208?v=4?s=100" width="100px;" alt="seungduk.kim.2304"/><br /><sub><b>seungduk.kim.2304</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=seungduk-yanolja" title="Code">💻</a></td>
|
|
299
|
+
<td align="center" valign="top" width="14.28%"><a href="https://dandrei.com/"><img src="https://avatars.githubusercontent.com/u/59015981?v=4?s=100" width="100px;" alt="Andrei Dragomir"/><br /><sub><b>Andrei Dragomir</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=andreiwebdev" title="Code">💻</a></td>
|
|
300
|
+
</tr>
|
|
301
|
+
<tr>
|
|
302
|
+
<td align="center" valign="top" width="14.28%"><a href="https://diegolikescode.me/"><img src="https://avatars.githubusercontent.com/u/57499868?v=4?s=100" width="100px;" alt="diego"/><br /><sub><b>diego</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=diegolikescode" title="Code">💻</a></td>
|
|
303
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/brockWith"><img src="https://avatars.githubusercontent.com/u/105627491?v=4?s=100" width="100px;" alt="brockWith"/><br /><sub><b>brockWith</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=brockWith" title="Code">💻</a></td>
|
|
304
|
+
<td align="center" valign="top" width="14.28%"><a href="http://denniszelada.wordpress.com/"><img src="https://avatars.githubusercontent.com/u/219311?v=4?s=100" width="100px;" alt="Dennis Zelada"/><br /><sub><b>Dennis Zelada</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=denniszelada" title="Code">💻</a></td>
|
|
305
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/romainrbr"><img src="https://avatars.githubusercontent.com/u/10381609?v=4?s=100" width="100px;" alt="Romain Brucker"/><br /><sub><b>Romain Brucker</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=romainrbr" title="Code">💻</a></td>
|
|
306
|
+
</tr>
|
|
307
|
+
</tbody>
|
|
308
|
+
</table>
|
|
309
|
+
|
|
310
|
+
<!-- markdownlint-restore -->
|
|
311
|
+
<!-- prettier-ignore-end -->
|
|
312
|
+
|
|
313
|
+
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
|
314
|
+
|
|
315
|
+
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind are welcome!
|
|
316
|
+
|
|
317
|
+
**Attribution**: Testing icons created by [Freepik - Flaticon](https://www.flaticon.com/free-icons/testing)
|
|
318
|
+
|