From 4225d02f4d75ed17c8bc128d11d87462fd6c5ca6 Mon Sep 17 00:00:00 2001 From: Abram Date: Mon, 25 Nov 2024 11:55:51 +0100 Subject: [PATCH 1/4] fix (ci): update step to have a working directory of the path to baby_name_generator --- .github/workflows/cli-commands-tests.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/cli-commands-tests.yml b/.github/workflows/cli-commands-tests.yml index e6e539e800..b064c09f35 100644 --- a/.github/workflows/cli-commands-tests.yml +++ b/.github/workflows/cli-commands-tests.yml @@ -30,20 +30,20 @@ jobs: - name: Create .env file run: | echo "OPENAI_API_KEY=${{ secrets.NEXT_PUBLIC_OPENAI_API_KEY }}" > .env - working-directory: examples/baby_name_generator + working-directory: examples/deprecated_sdk_v2/baby_name_generator - name: Run agenta init run: | APP_NAME="gh-cli-$(date +'%d-%m-%y_%H-%M-%S')" - cd examples/baby_name_generator agenta init --app-name $APP_NAME --backend-host ${{ secrets.BACKEND_HOST }} + working-directory: examples/deprecated_sdk_v2/baby_name_generator shell: bash continue-on-error: false - name: Run agenta variant serve run: | - cd examples/baby_name_generator - agenta variant serve --file_name app.py 2>&1 | tee ../../serve_output.log + agenta variant serve --file_name app.py 2>&1 | tee serve_output.log + working-directory: examples/deprecated_sdk_v2/baby_name_generator shell: bash continue-on-error: false @@ -55,8 +55,8 @@ jobs: - name: Run agenta variant serve with overwrite run: | - cd examples/baby_name_generator agenta variant serve --file_name app.py --overwrite + working-directory: examples/deprecated_sdk_v2/baby_name_generator shell: bash continue-on-error: false @@ -83,20 +83,20 @@ jobs: - name: Create .env file run: | echo "OPENAI_API_KEY=${{ secrets.NEXT_PUBLIC_OPENAI_API_KEY }}" > .env - working-directory: examples/baby_name_generator + working-directory: examples/deprecated_sdk_v2/baby_name_generator - name: Run agenta init run: | APP_NAME="gh-cli-$(date +'%d-%m-%y_%H-%M-%S')" - cd examples/baby_name_generator AGENTA_API_KEY=${{ secrets.AGENTA_API_KEY }} agenta init --app-name $APP_NAME --backend-host https://cloud.agenta.ai --organisation-name team + working-directory: examples/deprecated_sdk_v2/baby_name_generator shell: bash continue-on-error: false - name: Run agenta variant serve run: | - cd examples/baby_name_generator - agenta variant serve --file_name app.py 2>&1 | tee ../../serve_output.log + agenta variant serve --file_name app.py 2>&1 | tee serve_output.log + working-directory: examples/deprecated_sdk_v2/baby_name_generator shell: bash continue-on-error: false @@ -109,7 +109,7 @@ jobs: - name: Run agenta variant serve with overwrite run: | - cd examples/baby_name_generator agenta variant serve --file_name app.py --overwrite + working-directory: examples/deprecated_sdk_v2/baby_name_generator shell: bash continue-on-error: false From faca40e9fcc6e6f0c86b1675b20b562b93e449cb Mon Sep 17 00:00:00 2001 From: Abram Date: Mon, 25 Nov 2024 12:19:24 +0100 Subject: [PATCH 2/4] chore (backend): update backend readme --- agenta-backend/README.md | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/agenta-backend/README.md b/agenta-backend/README.md index 79cc596be2..b3c1db6863 100644 --- a/agenta-backend/README.md +++ b/agenta-backend/README.md @@ -1,27 +1,12 @@ Contains the backend for the container registry. -This backend takes care of the following: - -- Instanciating a container registry -- Managing the container versions in the registry -- Instanciating the containers for evaluation -- Removing the container -- Shutting down the containers - -What it does not take care of: -- Running the evaluation against the containers +![app_and_configuration_diagram](https://docs.agenta.ai/assets/ideal-img/apps_and_configurations_light.74f7538.1100.png) +This backend takes care of the following: +- building images +- deploying containers +- managing configurations and prompts for the application ## Architecture -This backend instanciate a docker registry and an api endpoint. -The CLI builds the apps into docker container images and pushes them to the registry, then posts the container information to the api endpoint. -This backend updates its local database with the new container information. - -The UI-backend lists the container information through the api endpoint. -The -## API interface - -### Add container -api: POST /containers/add -description: Add a container to the registry \ No newline at end of file +See [here](https://docs.agenta.ai/concepts/architecture#agenta-architecture). \ No newline at end of file From 116c54cd38dd1dca35c8b480714550eaa52e6361 Mon Sep 17 00:00:00 2001 From: Abram Date: Mon, 25 Nov 2024 12:24:05 +0100 Subject: [PATCH 3/4] chore (ci): update log-file path in both runs (serve-to-oss & serve-to-cloud) --- .github/actions/check-app-accessibility/action.yml | 1 + .github/workflows/cli-commands-tests.yml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/actions/check-app-accessibility/action.yml b/.github/actions/check-app-accessibility/action.yml index ea58602f83..e3e08dbb5e 100644 --- a/.github/actions/check-app-accessibility/action.yml +++ b/.github/actions/check-app-accessibility/action.yml @@ -7,6 +7,7 @@ inputs: api-key: description: 'The API key for accessing the app' required: false + runs: using: "composite" steps: diff --git a/.github/workflows/cli-commands-tests.yml b/.github/workflows/cli-commands-tests.yml index b064c09f35..9827261aeb 100644 --- a/.github/workflows/cli-commands-tests.yml +++ b/.github/workflows/cli-commands-tests.yml @@ -50,7 +50,7 @@ jobs: - name: Check if app is running uses: ./.github/actions/check-app-accessibility with: - log-file: serve_output.log + log-file: examples/deprecated_sdk_v2/baby_name_generator/serve_output.log continue-on-error: false - name: Run agenta variant serve with overwrite @@ -103,7 +103,7 @@ jobs: - name: Check if app is running uses: ./.github/actions/check-app-accessibility with: - log-file: serve_output.log + log-file: examples/deprecated_sdk_v2/baby_name_generator/serve_output.log api-key: ${{ secrets.AGENTA_API_KEY }} continue-on-error: false From aaf5526abc4527df9ddc95335e07b26b0313f73c Mon Sep 17 00:00:00 2001 From: Abram Date: Mon, 25 Nov 2024 12:41:35 +0100 Subject: [PATCH 4/4] chore (cli): revert cli version to 0.27.6 --- agenta-cli/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agenta-cli/pyproject.toml b/agenta-cli/pyproject.toml index 04eb9ce188..fd116463ca 100644 --- a/agenta-cli/pyproject.toml +++ b/agenta-cli/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "agenta" -version = "0.27.7a1" +version = "0.27.6" description = "The SDK for agenta is an open-source LLMOps platform." readme = "README.md" authors = ["Mahmoud Mabrouk "]