Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync evaluation with main #1140

Merged
merged 198 commits into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from 197 commits
Commits
Show all changes
198 commits
Select commit Hold shift + click to select a range
4980a86
creates contextProvider
bekossy Dec 11, 2023
3f38b69
create cli client backend from openapi.json using fern
devgenix Dec 12, 2023
6c412b5
rewrite cli to use new client
devgenix Dec 12, 2023
43c4e67
format black
devgenix Dec 12, 2023
b52bcfb
Merge branch 'main' into issue-1033/-Sync-data-view-in-side-by-side-view
bekossy Dec 12, 2023
9e8a91a
fix: type error
bekossy Dec 12, 2023
a9df9bd
rename folder and move to api
devgenix Dec 13, 2023
d2d2d57
rename client to api.py
devgenix Dec 13, 2023
a84d1bc
create exceptions
devgenix Dec 13, 2023
6cfe8b8
update imports path
devgenix Dec 13, 2023
3f637bf
initialie client properly
devgenix Dec 13, 2023
515fb85
fix validate api key
devgenix Dec 13, 2023
5899ecc
initialise client in helper & variant_commans.py
devgenix Dec 13, 2023
2ce2bad
Feat - implemented BinaryParam SDK type and BoolMeta class
aybruhm Dec 13, 2023
ff9c6ad
Update - override BinaryParam subschema
aybruhm Dec 13, 2023
aab595b
set initialize client with host & api_key
devgenix Dec 13, 2023
36ca922
set default for api_key
devgenix Dec 13, 2023
8acc5e1
correct request payload and get data
devgenix Dec 13, 2023
7c6243f
handle client request successfully
devgenix Dec 13, 2023
6a6414b
Merge branch 'main' of https://github.com/devgenix/agenta into cli/fe…
devgenix Dec 13, 2023
24a8fc1
fix initialise client
devgenix Dec 13, 2023
2c3d8cd
ran format
devgenix Dec 13, 2023
ccf2ec5
refactor initialising client
devgenix Dec 13, 2023
d149afa
format
devgenix Dec 13, 2023
2d5f737
fix adding variant to server
devgenix Dec 13, 2023
6be1be2
Update - determine bool type for playground use
aybruhm Dec 13, 2023
7af0885
Define Router class to handle use of trailing and non-trailish / in e…
devgenix Dec 13, 2023
9004ad6
Refactor Routers to use custom APIRouter
devgenix Dec 13, 2023
db7f1e1
move api folder into client
devgenix Dec 13, 2023
23db71e
Update - include parameter switch ui for boolean param type
aybruhm Dec 13, 2023
dbc53f7
define operation_id name for use in openapi.json
devgenix Dec 13, 2023
38a8c3f
update client import path
devgenix Dec 13, 2023
e1b4e43
remove client wrapper
devgenix Dec 13, 2023
f1facbe
Create Readme
devgenix Dec 14, 2023
9babcde
regenerate Backend
devgenix Dec 14, 2023
732c762
ran format black
devgenix Dec 14, 2023
ece70f2
Add step to add Security to openapi.json
devgenix Dec 14, 2023
4023e86
Regenerate backend with authentication
devgenix Dec 14, 2023
b61f72c
update client function to the correct client function
devgenix Dec 14, 2023
47997e2
format black
devgenix Dec 14, 2023
b280a98
increase timeout for build image
devgenix Dec 14, 2023
68ed2cc
Update Readme.md with image desc
devgenix Dec 14, 2023
c5c8be9
Merge branch 'CLI/fern-sdk' of https://github.com/devgenix/agenta int…
devgenix Dec 14, 2023
2851aec
fix client func name
devgenix Dec 14, 2023
b7a2d5c
Merge branch 'main' of https://github.com/devgenix/agenta into cli/fe…
devgenix Dec 14, 2023
5ba9a81
:art: Format - ran black and prettier --write .
aybruhm Dec 14, 2023
96ff22f
Cleanup - remove BinaryParamMixin type
aybruhm Dec 14, 2023
0e7f7cd
Update - added default value to BoolMeta instance
aybruhm Dec 14, 2023
d7b18d5
Update - modified handle checkbox change function
aybruhm Dec 15, 2023
47aeb23
Feat - created llm example app for binaryparam
aybruhm Dec 15, 2023
61b09d1
Update - modified handle checkbox change function to fix lint error
aybruhm Dec 15, 2023
90cdd1f
Update main.py
devgenix Dec 15, 2023
438933f
Merge branch 'Agenta-AI:main' into CLI/fern-sdk
devgenix Dec 15, 2023
a73f625
fix indent
devgenix Dec 15, 2023
ed33322
update url for openapi and fix formatting
devgenix Dec 15, 2023
b2d0546
modify function name for clarity
devgenix Dec 15, 2023
945758f
Merge branch 'CLI/fern-sdk' of https://github.com/devgenix/agenta int…
devgenix Dec 15, 2023
2fd095b
Add docstring for APIRouter
devgenix Dec 15, 2023
518f1ed
feat: sync resultList
bekossy Dec 16, 2023
c5cd824
feat: single prompt comparison mode
bekossy Dec 18, 2023
57db08e
correct cloud url
devgenix Dec 18, 2023
bcabaad
Correct Readme.md
devgenix Dec 18, 2023
eba4159
Merge branch 'main' of https://github.com/devgenix/agenta into cli/fe…
devgenix Dec 18, 2023
b598cf9
made ChatInput props immutable | fixed side by side playground for chat
MohammedMaaz Dec 18, 2023
1ee84e6
Update - added extra host to backend service in compose
aybruhm Dec 19, 2023
920a2c0
Update - make use of 1/0 in BinaryParam default
aybruhm Dec 19, 2023
4e9154a
made chatinputs prop immutable | fixed state syncing in side by side …
MohammedMaaz Dec 19, 2023
c39c691
feat: rerun single button in ai critics
bekossy Dec 19, 2023
cf26b76
Update README.md
mmabrouk Dec 19, 2023
fd3cdc1
Merge pull request #1068 from Agenta-AI/issue-1033/-Sync-data-view-in…
mmabrouk Dec 19, 2023
d623e1c
Merge pull request #1076 from Agenta-AI/feat--rerun-button-for-ai-cri…
mmabrouk Dec 19, 2023
84ccbb2
Update pyproject.toml
mmabrouk Dec 19, 2023
dbe55da
Merge pull request #1077 from Agenta-AI/mmabrouk-patch-4
mmabrouk Dec 19, 2023
357d5d2
Add changelog and update navigation in mint.json
mmabrouk Dec 19, 2023
fcd7115
Update file paths in links
mmabrouk Dec 19, 2023
b4c7520
Merge pull request #1078 from Agenta-AI/docs_im
mmabrouk Dec 19, 2023
3d43dcd
Merge pull request #1052 from Agenta-AI/gh/feat-sdk-binaryparam
mmabrouk Dec 19, 2023
10ca060
Add job extraction templates and tutorials
mmabrouk Dec 19, 2023
9267b52
Add BinaryParam to config_datatypes.mdx
mmabrouk Dec 19, 2023
9a314b7
Add Cookbook section to mint.json
mmabrouk Dec 19, 2023
286ec84
Merge pull request #1079 from Agenta-AI/docs_im
mmabrouk Dec 19, 2023
130c16a
Add async version of baby name generator app
mmabrouk Dec 19, 2023
4aabaa8
Update job_info_extractor README and app.py
mmabrouk Dec 19, 2023
efc12ee
Merge pull request #1080 from Agenta-AI/feat/templates
mmabrouk Dec 19, 2023
e34149f
Update - modified BinaryParam sdk type
aybruhm Dec 19, 2023
c6412cb
Update - include boolean type in handleParamChange function
aybruhm Dec 19, 2023
79e8de8
Update - modified default parameter
aybruhm Dec 19, 2023
9aeadf8
Update pyproject.toml version to 0.6.7 and update fastapi and ipdb de…
mmabrouk Dec 20, 2023
c5ba809
Merge pull request #1085 from Agenta-AI/update-fastapi
mmabrouk Dec 20, 2023
d65f25a
Add tutorials and templates for text generation and summarization tasks
mmabrouk Dec 20, 2023
b3b2183
Merge pull request #1086 from Agenta-AI/docs_im
mmabrouk Dec 20, 2023
e40feae
Update README.md
mmabrouk Dec 20, 2023
82bda30
Merge pull request #1087 from Agenta-AI/mmabrouk-patch-4
mmabrouk Dec 20, 2023
296dd10
Merge pull request #1082 from Agenta-AI/gh/feat-sdk-binaryparam
mmabrouk Dec 20, 2023
95d75f7
Update README.md
mmabrouk Dec 20, 2023
7268903
Update README.md
mmabrouk Dec 20, 2023
2207dd9
Update README.md
mmabrouk Dec 20, 2023
0b6981a
add security spec for openapi
devgenix Dec 21, 2023
c1fc619
simplify steps to generate client code
devgenix Dec 21, 2023
c383ba8
fix override variant
devgenix Dec 21, 2023
3d85422
Regenerate Backend
devgenix Dec 21, 2023
8c7ffd5
set default timeout to 600
devgenix Dec 21, 2023
77fe3b7
Update title in deploy-mistral-model.mdx
mmabrouk Dec 21, 2023
01414dd
Add RAG application tutorial and setup instructions
mmabrouk Dec 21, 2023
d75fdad
Add "build-rag-application" tutorial to mint.json
mmabrouk Dec 21, 2023
87ee218
upgrade pydantic
mmabrouk Dec 21, 2023
c80518f
Update dependencies in pyproject.toml
mmabrouk Dec 21, 2023
771ce21
Merge branch 'main' into pydanticv2
mmabrouk Dec 21, 2023
47f655e
Update DEBUG flag and version number
mmabrouk Dec 21, 2023
b22ff58
Bump fastapi version to 0.95.1
mmabrouk Dec 21, 2023
385cfbe
Merge pull request #1093 from Agenta-AI/hotfix_pydantic
mmabrouk Dec 21, 2023
8a6c6a8
Merge branch 'main' into pydanticv2
mmabrouk Dec 21, 2023
b070578
remove openapi schema from oss
devgenix Dec 22, 2023
2f99186
format
devgenix Dec 22, 2023
2b40edf
fix: setting docker to always restart for both base-containers and apps
romainrbr Dec 22, 2023
606d511
add restart always local dev docker compose
aakrem Dec 22, 2023
3d8987d
Merge pull request #1094 from romainrbr/feat_restart_always
aakrem Dec 22, 2023
487bd05
docs: update README.md [skip ci]
allcontributors[bot] Dec 22, 2023
ffb09d8
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Dec 22, 2023
f19446b
Merge pull request #1097 from Agenta-AI/all-contributors/add-romainrbr
aakrem Dec 22, 2023
b235adc
Add RAG application tutorial with LlamaIndex
mmabrouk Dec 22, 2023
981dedd
Add tut_llama_index_1.png image to tutorial-rag-application
mmabrouk Dec 22, 2023
c6f5992
added rag tutorial
mmabrouk Dec 22, 2023
fb40433
Merge pull request #1098 from Agenta-AI/docs_im
mmabrouk Dec 22, 2023
f2188e9
Update tutorial with link to full code
mmabrouk Dec 22, 2023
6f03d0f
Merge pull request #1099 from Agenta-AI/docs_im
mmabrouk Dec 22, 2023
bbc2c8c
fix `BaseSettings` PydanticImportError
devgenix Dec 25, 2023
da554d2
fix / causing delete variant to fail in cloud
devgenix Dec 25, 2023
c9a38d6
fix conflicting dependencies with fastapi and pydantic v2
devgenix Dec 25, 2023
7bbc2a9
remove reference to pydantic.v1
devgenix Dec 25, 2023
00f0816
fix pydantic
devgenix Dec 25, 2023
4cebad4
Merge pull request #1105 from Agenta-AI/oss/bug/fixes
aakrem Dec 25, 2023
677bcb3
Merge https://github.com/Agenta-AI/agenta into CLI/fern-sdk
devgenix Dec 25, 2023
78058dd
define function for openapi in cloud
devgenix Dec 25, 2023
3d0f4ca
regenerate backend and set timeout to 60
devgenix Dec 25, 2023
6782b36
format
devgenix Dec 25, 2023
edcc380
set timeout to 600 for build_image function
devgenix Dec 25, 2023
dbc53c0
add step to set timeout
devgenix Dec 25, 2023
d597528
Update Readme.md with image description
devgenix Dec 25, 2023
1584a7a
Merge pull request #1106 from Agenta-AI/CLI/fern-sdk
aakrem Dec 26, 2023
0672651
fix app lifespan
devgenix Dec 26, 2023
20d4a9e
Merge pull request #1109 from Agenta-AI/oss/bug/fixes
aakrem Dec 26, 2023
310585a
Merge pull request #1092 from Agenta-AI/pydanticv2
aakrem Dec 26, 2023
39e51a8
fix build image
devgenix Dec 26, 2023
b8d433e
fix build image
devgenix Dec 26, 2023
12736c6
Merge branch 'main' into oss/bug/fixes
devgenix Dec 26, 2023
dfd4339
fix None causing delete variant to fail
devgenix Dec 26, 2023
8f0d476
enhance app name validation
bekossy Dec 26, 2023
3d72316
Merge pull request #1112 from Agenta-AI/oss/bug/fixes
aakrem Dec 26, 2023
e458316
Updated doc structure
mmabrouk Dec 26, 2023
95f8551
Refactor Agenta introduction and update links
mmabrouk Dec 26, 2023
61f4ae4
Add new file creating_an_app.mdx
mmabrouk Dec 27, 2023
8b21279
Fix typo in contributing file paths
mmabrouk Dec 27, 2023
8d87da3
Update Agenta documentation
mmabrouk Dec 27, 2023
a962c8d
Update Agenta documentation
mmabrouk Dec 27, 2023
4f674e1
Add Agenta CLI guide to documentation
mmabrouk Dec 27, 2023
3acdfb3
Add guide custom applications
mmabrouk Dec 28, 2023
585c51d
Add basic guides for creating an app, deployment, prompt engineering,…
mmabrouk Dec 28, 2023
9905a71
Fix broken link in creating_an_app.mdx
mmabrouk Dec 28, 2023
4ceb7bd
Update creating an app guide
mmabrouk Dec 28, 2023
0c6bf87
Update deployment guide with screenshots and clarify instructions
mmabrouk Dec 28, 2023
ac16f59
Update YouTube video player attributes
mmabrouk Dec 28, 2023
002fddd
Update custom_applications.mdx file
mmabrouk Dec 28, 2023
75efcbb
Add deployment instructions and integration options
mmabrouk Dec 28, 2023
00ff5ac
Update prompt_engineering.mdx with new content
mmabrouk Dec 28, 2023
955ea3a
added images for creating an app docs
bekossy Dec 28, 2023
d07bc18
Update document titles and descriptions
mmabrouk Dec 28, 2023
d8bcbde
Add team management documentation with screenshots
mmabrouk Dec 28, 2023
69f7b01
added images for deployment docs
bekossy Dec 28, 2023
d84dcc0
Merge branch 'docs_v2' into issue-1115-update-docs-with-screenshots
bekossy Dec 28, 2023
33228f1
move images into new dir and fix image path
bekossy Dec 28, 2023
70156d6
added images for prompt engineering docs
bekossy Dec 28, 2023
c86aae9
added images for team management docs
bekossy Dec 28, 2023
15af19c
removes comments and add arrow to screenshot
bekossy Dec 29, 2023
251b3a1
modifies workspace screenshots
bekossy Dec 29, 2023
78036c3
Refactor test_sets.mdx and update test set creation guide
mmabrouk Dec 29, 2023
08abba4
Merge branch 'docs_v2' into issue-1115-update-docs-with-screenshots
bekossy Dec 29, 2023
17dc403
added screenshots for test set docs
bekossy Dec 29, 2023
94e9e75
Add custom evaluation, automatic evaluation, and human evaluation guides
mmabrouk Dec 29, 2023
5e2475a
Merge pull request #1123 from Agenta-AI/issue-1115-update-docs-with-s…
mmabrouk Dec 29, 2023
ed7a121
Update default configuration functions by register_default
mmabrouk Dec 29, 2023
a9dbeee
RepoRater badge
eddiejaoude Dec 29, 2023
73feaf3
Merge pull request #1126 from eddiejaoude/patch-1
mmabrouk Dec 29, 2023
16b6878
Update - added extra-hosts to .gh and .prod compose files
aybruhm Jan 1, 2024
c661d9b
Merge pull request #1075 from Agenta-AI/gh/host-gateway-fix
mmabrouk Jan 1, 2024
a91bf23
Merge pull request #1113 from Agenta-AI/Issue-1055/-enhance-App-name-…
mmabrouk Jan 1, 2024
eef9537
Update pyproject.toml
mmabrouk Jan 1, 2024
04db72a
Merge pull request #1128 from Agenta-AI/mmabrouk-patch-4
mmabrouk Jan 1, 2024
8388225
Merge pull request #1132 from Agenta-AI/docs_v2
mmabrouk Jan 2, 2024
8dcd8ec
Remove unused links in mint.json
mmabrouk Jan 2, 2024
fb39540
Update: changed the data type in the generate parameter
aybruhm Jan 2, 2024
6f237de
Merge pull request #1133 from Agenta-AI/docs_v2
mmabrouk Jan 2, 2024
2c1c853
Merge pull request #1134 from Agenta-AI/hot-fix/advance-guide-custom-…
mmabrouk Jan 2, 2024
ca3e151
Merge branch 'main' into evaluations-in-backend
aybruhm Jan 3, 2024
d343b2a
:art: Format - ran black
aybruhm Jan 3, 2024
d05265c
:art: Format - ran prettier
aybruhm Jan 3, 2024
2c902fd
Cleanup - remove redundant code
aybruhm Jan 3, 2024
1e8ecd5
Update agenta-backend/agenta_backend/routers/human_evaluation_router.py
aybruhm Jan 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,15 @@
"contributions": [
"code"
]
},
{
"login": "romainrbr",
"name": "Romain Brucker",
"avatar_url": "https://avatars.githubusercontent.com/u/10381609?v=4",
"profile": "https://github.com/romainrbr",
"contributions": [
"code"
]
}
],
"contributorsPerLine": 7,
Expand Down
80 changes: 32 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,24 @@
</br>
<p align="center">
<img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="MIT license." />
<a href="https://docs.agenta.ai/">
<img src="https://img.shields.io/badge/Doc-online-green" alt="Doc">
</a>

<a href="https://github.com/Agenta-AI/agenta/blob/main/CONTRIBUTING.md">
<img src="https://img.shields.io/badge/PRs-Welcome-brightgreen" alt="PRs welcome" />
</a>
<img src="https://img.shields.io/github/contributors/Agenta-AI/agenta" alt="Contributors">
<img src="https://img.shields.io/github/last-commit/Agenta-AI/agenta" alt="Last Commit">
<img src="https://img.shields.io/github/commit-activity/m/agenta-ai/agenta" alt="Commits per month">
<img src="https://img.shields.io/github/commit-activity/m/agenta-ai/agenta" alt="Commits per month">

<a href="https://pypi.org/project/agenta/">
<img src="https://img.shields.io/pypi/dm/agenta" alt="PyPI - Downloads">
</a>

<a href="https://repo-rater.eddiehub.io/rate?owner=Agenta-AI&name=agenta">
<img src="https://repo-rater.eddiehub.io/api/badge?owner=Agenta-AI&name=agenta" alt="RepoRater">
</a>
</br>
</p>

Expand Down Expand Up @@ -71,12 +83,11 @@

<h3 align="center">
<a href="#ℹ️-about"><b>About</b></a> &bull;
<a href="#demo"><b>Demo</b></a> &bull;
<a href="#quick-start"><b>Quick Start</b></a> &bull;
<a href="https://docs.agenta.ai/installation"><b>Installation</b></a> &bull;
<a href="#features"><b>Features</b></a> &bull;
<a href="https://docs.agenta.ai"><b>Documentation</b></a> &bull;
<a href="#support"><b>Support</b></a> &bull;
<a href="#enterprise-support"><b>Enterprise</b></a> &bull;
<a href="https://join.slack.com/t/agenta-hq/shared_invite/zt-1zsafop5i-Y7~ZySbhRZvKVPV5DO_7IA"><b>Community</b></a> &bull;
<a href="#contributing"><b>Contributing</b></a>
</h3>
Expand All @@ -85,54 +96,26 @@

# ℹ️ About

Building production-ready LLM-powered applications is currently very difficult. It involves countless iterations of prompt engineering, parameter tuning, and architectures.

Agenta provides you with the tools to quickly do prompt engineering and 🧪 **experiment**, ⚖️ **evaluate**, and :rocket: **deploy** your LLM apps. All without imposing any restrictions on your choice of framework, library, or model.
<br /><br />
<div align="center" >
<picture >
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/Agenta-AI/agenta/assets/4510758/01edf2af-2cef-44d7-bdec-7b033cae39cf" >
<source media="(prefers-color-scheme: light)" srcset="https://github.com/Agenta-AI/agenta/assets/4510758/1d6c9627-8b7d-4357-b79f-aa9fced63772" >
<img alt="Overview agenta" src="https://github.com/Agenta-AI/agenta/assets/4510758/1d6c9627-8b7d-4357-b79f-aa9fced63772" >
</picture>
</div>
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.

Agenta allows developers and product teams to collaborate and build robust AI applications in less time.

# Demo
https://github.com/Agenta-AI/agenta/assets/57623556/99733147-2b78-4b95-852f-67475e4ce9ed
## 🔨 How does it work?

# Quick Start
| Using an LLM App Template (For Non-Technical Users) | Starting from Code |
| ------------- | ------------- |
|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/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. |

<br /><br />

<div align="center" >
<a href="https://cloud.agenta.ai">
<picture>
<img src="https://github.com/Agenta-AI/agenta/assets/4510758/a3024fac-2945-4208-ae12-4cc51ecfc970" />
</picture>
</a>
</br>
<a href="https://docs.agenta.ai/installation">
<picture>
<img src="https://github.com/Agenta-AI/agenta/assets/4510758/29f3fc9a-8a7c-4b39-81a8-776a472a2baf" />
</picture>
</a>
<a href="https://docs.agenta.ai/getting-started">
<picture>
<img src="https://github.com/Agenta-AI/agenta/assets/4510758/18decb9c-eba5-4d2f-9735-048a1e9d9386" />
</picture>
</a>
<a href="https://docs.agenta.ai/tutorials">
<picture>
<img src="https://github.com/Agenta-AI/agenta/assets/4510758/e665d66d-d0fe-4b0a-ae7b-5e08350e5e6c" />
</picture>
</a>
<a href="https://docs.agenta.ai/installation/self-hosting/self-hosted-installation-aws">
<picture>
<img src="https://github.com/Agenta-AI/agenta/assets/4510758/65c1487e-5233-4509-8e8d-d967235ccfd7" />
</picture>
</a>
# Quick Start

</div>
### [Try the cloud version](https://cloud.agenta.ai?utm_source=github&utm_medium=readme&utm_campaign=github)
### [Create your first application in one-minute](https://docs.agenta.ai/quickstart/getting-started-ui)
### [Create an application using Langchain](https://docs.agenta.ai/tutorials/first-app-with-langchain)
### [Self-host agenta](https://docs.agenta.ai/self-host/host-locally)
### [Read the Documentation](https://docs.agenta.ai)
### [Check the Cookbook](https://docs.agenta.ai/cookbook)

# Features

Expand Down Expand Up @@ -207,8 +190,8 @@ Now your team can 🔄 iterate, 🧪 experiment, and ⚖️ evaluate different v
<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">


# Support
Talk with the founders for any commercial inquiries. <br/><br/>
# Enterprise Support
Contact us here for enterprise support and early access to agenta self-managed enterprise with Kubernetes support. <br/><br/>
<a href="https://cal.com/mahmoud-mabrouk-ogzgey/demo"><img src="https://cal.com/book-with-cal-dark.svg" alt="Book us"></a>

# Disabling Anonymized Tracking
Expand All @@ -231,7 +214,7 @@ Check out our [Contributing Guide](https://docs.agenta.ai/contributing/getting-s
## Contributors ✨

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-38-orange.svg?style=flat-square)](#contributors-)
[![All Contributors](https://img.shields.io/badge/all_contributors-39-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
Expand Down Expand Up @@ -290,6 +273,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<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>
<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>
<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>
<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>
</tr>
</tbody>
</table>
Expand Down
5 changes: 5 additions & 0 deletions agenta-backend/agenta_backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,8 @@ async def lifespan(application: FastAPI, cache=True):
app.include_router(organization_router.router, prefix="/organizations")
app.include_router(bases_router.router, prefix="/bases")
app.include_router(configs_router.router, prefix="/configs")

if os.environ["FEATURE_FLAG"] in ["cloud", "ee"]:
import agenta_backend.cloud.main as cloud

app = cloud.extend_app_schema(app)
34 changes: 25 additions & 9 deletions agenta-backend/agenta_backend/routers/app_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
from fastapi.responses import JSONResponse
from agenta_backend.config import settings
from typing import List, Optional
from fastapi import APIRouter, HTTPException, Request
from fastapi import HTTPException, Request
from agenta_backend.utils.common import APIRouter
from agenta_backend.services.selectors import get_user_own_org
from agenta_backend.services import (
app_manager,
Expand Down Expand Up @@ -49,7 +50,11 @@
logger.setLevel(logging.DEBUG)


@router.get("/{app_id}/variants/", response_model=List[AppVariantOutput])
@router.get(
"/{app_id}/variants/",
response_model=List[AppVariantOutput],
operation_id="list_app_variants",
)
async def list_app_variants(
app_id: str,
request: Request,
Expand Down Expand Up @@ -90,7 +95,11 @@ async def list_app_variants(
raise HTTPException(status_code=500, detail=str(e))


@router.get("/get_variant_by_env/", response_model=AppVariantOutput)
@router.get(
"/get_variant_by_env/",
response_model=AppVariantOutput,
operation_id="get_variant_by_env",
)
async def get_variant_by_env(
app_id: str,
environment: str,
Expand Down Expand Up @@ -134,7 +143,7 @@ async def get_variant_by_env(
raise HTTPException(status_code=500, detail=str(e))


@router.post("/", response_model=CreateAppOutput)
@router.post("/", response_model=CreateAppOutput, operation_id="create_app")
async def create_app(
payload: CreateApp,
request: Request,
Expand Down Expand Up @@ -180,7 +189,7 @@ async def create_app(
raise HTTPException(status_code=500, detail=str(e))


@router.get("/", response_model=List[App])
@router.get("/", response_model=List[App], operation_id="list_apps")
async def list_apps(
request: Request,
app_name: Optional[str] = None,
Expand Down Expand Up @@ -209,7 +218,7 @@ async def list_apps(
raise HTTPException(status_code=500, detail=str(e))


@router.post("/{app_id}/variant/from-image/")
@router.post("/{app_id}/variant/from-image/", operation_id="add_variant_from_image")
async def add_variant_from_image(
app_id: str,
payload: AddVariantFromImagePayload,
Expand Down Expand Up @@ -271,7 +280,7 @@ async def add_variant_from_image(
raise HTTPException(status_code=500, detail=str(e))


@router.delete("/{app_id}/")
@router.delete("/{app_id}/", operation_id="remove_app")
async def remove_app(app_id: str, request: Request):
"""Remove app, all its variant, containers and images

Expand Down Expand Up @@ -301,7 +310,10 @@ async def remove_app(app_id: str, request: Request):
raise HTTPException(status_code=500, detail=detail)


@router.post("/app_and_variant_from_template/")
@router.post(
"/app_and_variant_from_template/",
operation_id="create_app_and_variant_from_template",
)
async def create_app_and_variant_from_template(
payload: CreateAppVariant,
request: Request,
Expand Down Expand Up @@ -406,7 +418,11 @@ async def create_app_and_variant_from_template(
raise HTTPException(status_code=500, detail=str(e))


@router.get("/{app_id}/environments/", response_model=List[EnvironmentOutput])
@router.get(
"/{app_id}/environments/",
response_model=List[EnvironmentOutput],
operation_id="list_environments",
)
async def list_environments(
app_id: str,
request: Request,
Expand Down
5 changes: 3 additions & 2 deletions agenta-backend/agenta_backend/routers/bases_router.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
from typing import List, Optional
from fastapi import APIRouter, Request, HTTPException
from fastapi import Request, HTTPException
from agenta_backend.utils.common import APIRouter
from agenta_backend.models.api.api_models import BaseOutput
from fastapi.responses import JSONResponse
from agenta_backend.services import db_manager
Expand All @@ -22,7 +23,7 @@
router = APIRouter()


@router.get("/", response_model=List[BaseOutput])
@router.get("/", response_model=List[BaseOutput], operation_id="list_bases")
async def list_bases(
request: Request,
app_id: Optional[str] = None,
Expand Down
7 changes: 4 additions & 3 deletions agenta-backend/agenta_backend/routers/configs_router.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
from typing import Optional
from fastapi import APIRouter, Request, HTTPException
from fastapi import Request, HTTPException
from agenta_backend.utils.common import APIRouter
import logging

from agenta_backend.models.api.api_models import (
Expand All @@ -26,7 +27,7 @@
router = APIRouter()


@router.post("/")
@router.post("/", operation_id="save_config")
async def save_config(
payload: SaveConfigPayload,
request: Request,
Expand Down Expand Up @@ -73,7 +74,7 @@ async def save_config(
raise HTTPException(status_code=500, detail=str(e)) from e


@router.get("/", response_model=GetConfigReponse)
@router.get("/", response_model=GetConfigReponse, operation_id="get_config")
async def get_config(
request: Request,
base_id: str,
Expand Down
11 changes: 6 additions & 5 deletions agenta-backend/agenta_backend/routers/container_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
Template,
)
from agenta_backend.services import db_manager
from fastapi import APIRouter, Request, UploadFile, HTTPException
from fastapi import Request, UploadFile, HTTPException
from agenta_backend.utils.common import APIRouter
from fastapi.responses import JSONResponse

if os.environ["FEATURE_FLAG"] in ["cloud", "ee"]:
Expand Down Expand Up @@ -35,7 +36,7 @@


# TODO: We need to improve this to use the introduced abstraction to also use start and stop service
@router.post("/build_image/")
@router.post("/build_image/", operation_id="build_image")
async def build_image(
app_id: str,
base_name: str,
Expand Down Expand Up @@ -71,7 +72,7 @@ async def build_image(
return image_result


@router.post("/restart_container/")
@router.post("/restart_container/", operation_id="restart_container")
async def restart_docker_container(
payload: RestartAppContainer,
request: Request,
Expand Down Expand Up @@ -100,7 +101,7 @@ async def restart_docker_container(
return JSONResponse({"message": str(ex)}, status_code=500)


@router.get("/templates/")
@router.get("/templates/", operation_id="container_templates")
async def container_templates(
request: Request,
) -> Union[List[Template], str]:
Expand All @@ -121,7 +122,7 @@ async def container_templates(
return templates


@router.get("/container_url/")
@router.get("/container_url/", operation_id="construct_app_container_url")
async def construct_app_container_url(
request: Request,
base_id: Optional[str] = None,
Expand Down
5 changes: 3 additions & 2 deletions agenta-backend/agenta_backend/routers/environment_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

from fastapi.responses import JSONResponse
from agenta_backend.services import db_manager
from fastapi import APIRouter, Request, HTTPException
from fastapi import Request, HTTPException
from agenta_backend.utils.common import APIRouter
from agenta_backend.utils.common import check_access_to_app, check_access_to_variant
from agenta_backend.models.api.api_models import (
EnvironmentOutput,
Expand All @@ -24,7 +25,7 @@
router = APIRouter()


@router.post("/deploy/")
@router.post("/deploy/", operation_id="deploy_to_environment")
async def deploy_to_environment(
payload: DeployToEnvironmentPayload,
request: Request,
Expand Down
Loading
Loading