🛟 Updated.Unverified
0401529 parent: 99f565d modified
02-docker-agent/README.fr.md +8 -0 | @@ -4,3 +4,11 @@ Nous allons installer la version locale de Docker Agent (et non pas la version p | ||
| 4 | 4 | |
| 5 | 5 | Vous trouverez ici la page décrivant les installations possible pour vos systèmes d'exploitation: [https://docker.github.io/docker-agent/getting-started/installation/](https://docker.github.io/docker-agent/getting-started/installation/) |
| 6 | 6 | |
| 7 | + | |
| 8 | +## On Windows | |
| 9 | + | |
| 10 | +- Go to: https://github.com/docker/docker-agent/releases and download the appropriate version of Docker Agent | |
| 11 | +- Rename it to docker-agent | |
| 12 | +- Add it to the PATH (ex: C:\Users\Philippe\docker-agent\) | |
| 13 | + | |
| 14 | +You probably need to restart VSCode (on Windows, don’t ask why) | |
| @@ -4,3 +4,11 @@ Nous allons installer la version locale de Docker Agent (et non pas la version p | |||
| 4 | 4 | ||
| 5 | Vous trouverez ici la page décrivant les installations possible pour vos systèmes d'exploitation: [https://docker.github.io/docker-agent/getting-started/installation/](https://docker.github.io/docker-agent/getting-started/installation/) | 5 | Vous trouverez ici la page décrivant les installations possible pour vos systèmes d'exploitation: [https://docker.github.io/docker-agent/getting-started/installation/](https://docker.github.io/docker-agent/getting-started/installation/) |
| 6 | 6 | ||
| 7 | + | ||
| 8 | +## On Windows | ||
| 9 | + | ||
| 10 | +- Go to: https://github.com/docker/docker-agent/releases and download the appropriate version of Docker Agent | ||
| 11 | +- Rename it to docker-agent | ||
| 12 | +- Add it to the PATH (ex: C:\Users\Philippe\docker-agent\) | ||
| 13 | + | ||
| 14 | +You probably need to restart VSCode (on Windows, don’t ask why) | ||
modified
02-docker-agent/README.md +8 -0 | @@ -3,3 +3,11 @@ | ||
| 3 | 3 | We are going to install the local version of Docker Agent (not the Docker Agent plugin version for Docker Desktop). |
| 4 | 4 | |
| 5 | 5 | You will find here the page describing the possible installations for your operating systems: [https://docker.github.io/docker-agent/getting-started/installation/](https://docker.github.io/docker-agent/getting-started/installation/) |
| 6 | + | |
| 7 | +## On Windows | |
| 8 | + | |
| 9 | +- Go to: https://github.com/docker/docker-agent/releases and download the appropriate version of Docker Agent | |
| 10 | +- Rename it to docker-agent | |
| 11 | +- Add it to the PATH (ex: C:\Users\Philippe\docker-agent\) | |
| 12 | + | |
| 13 | +You probably need to restart VSCode (on Windows, don’t ask why) | |
| \ No newline at end of file | ||
| @@ -3,3 +3,11 @@ | |||
| 3 | We are going to install the local version of Docker Agent (not the Docker Agent plugin version for Docker Desktop). | 3 | We are going to install the local version of Docker Agent (not the Docker Agent plugin version for Docker Desktop). |
| 4 | 4 | ||
| 5 | You will find here the page describing the possible installations for your operating systems: [https://docker.github.io/docker-agent/getting-started/installation/](https://docker.github.io/docker-agent/getting-started/installation/) | 5 | You will find here the page describing the possible installations for your operating systems: [https://docker.github.io/docker-agent/getting-started/installation/](https://docker.github.io/docker-agent/getting-started/installation/) |
| 6 | + | ||
| 7 | +## On Windows | ||
| 8 | + | ||
| 9 | +- Go to: https://github.com/docker/docker-agent/releases and download the appropriate version of Docker Agent | ||
| 10 | +- Rename it to docker-agent | ||
| 11 | +- Add it to the PATH (ex: C:\Users\Philippe\docker-agent\) | ||
| 12 | + | ||
| 13 | +You probably need to restart VSCode (on Windows, don’t ask why) | ||
| \ No newline at end of file | \ No newline at end of file | ||
modified
03-first-agent/README.fr.md +6 -0 | @@ -49,6 +49,12 @@ Et essayez la question suivante: | ||
| 49 | 49 | Create a text file at the home of my machine with a greeting message |
| 50 | 50 | ``` |
| 51 | 51 | |
| 52 | +**🖐️ If you are using Windows, try it like this**: | |
| 53 | +```raw | |
| 54 | +I'm using powershell, | |
| 55 | +Create a text file at the home of my machine with a greeting message | |
| 56 | +``` | |
| 57 | + | |
| 52 | 58 | Choisissez **[A]** pour laisser exécuter les tools: |
| 53 | 59 |  |
| 54 | 60 | |
| @@ -49,6 +49,12 @@ Et essayez la question suivante: | |||
| 49 | Create a text file at the home of my machine with a greeting message | 49 | Create a text file at the home of my machine with a greeting message |
| 50 | ``` | 50 | ``` |
| 51 | 51 | ||
| 52 | +**🖐️ If you are using Windows, try it like this**: | ||
| 53 | +```raw | ||
| 54 | +I'm using powershell, | ||
| 55 | +Create a text file at the home of my machine with a greeting message | ||
| 56 | +``` | ||
| 57 | + | ||
| 52 | Choisissez **[A]** pour laisser exécuter les tools: | 58 | Choisissez **[A]** pour laisser exécuter les tools: |
| 53 |  | 59 |  |
| 54 | 60 | ||
modified
03-first-agent/README.md +6 -0 | @@ -49,6 +49,12 @@ And try the following question: | ||
| 49 | 49 | Create a text file at the home of my machine with a greeting message |
| 50 | 50 | ``` |
| 51 | 51 | |
| 52 | +**🖐️ If you are using Windows, try it like this**: | |
| 53 | +```raw | |
| 54 | +I'm using powershell, | |
| 55 | +Create a text file at the home of my machine with a greeting message | |
| 56 | +``` | |
| 57 | + | |
| 52 | 58 | Choose **[A]** to let the tools run: |
| 53 | 59 |  |
| 54 | 60 | |
| @@ -49,6 +49,12 @@ And try the following question: | |||
| 49 | Create a text file at the home of my machine with a greeting message | 49 | Create a text file at the home of my machine with a greeting message |
| 50 | ``` | 50 | ``` |
| 51 | 51 | ||
| 52 | +**🖐️ If you are using Windows, try it like this**: | ||
| 53 | +```raw | ||
| 54 | +I'm using powershell, | ||
| 55 | +Create a text file at the home of my machine with a greeting message | ||
| 56 | +``` | ||
| 57 | + | ||
| 52 | Choose **[A]** to let the tools run: | 58 | Choose **[A]** to let the tools run: |
| 53 |  | 59 |  |
| 54 | 60 | ||
modified
04-sbx/README.fr.md +5 -0 | @@ -4,6 +4,11 @@ | ||
| 4 | 4 | |
| 5 | 5 |  |
| 6 | 6 | |
| 7 | +## Prerequisites | |
| 8 | + | |
| 9 | +- **You need a Docker Account for using SBX** | |
| 10 | +- You need Docker Desktop (only or exercise 07) | |
| 11 | + | |
| 7 | 12 | |
| 8 | 13 | ## Installer `sbx` |
| 9 | 14 | |
| @@ -4,6 +4,11 @@ | |||
| 4 | 4 | ||
| 5 |  | 5 |  |
| 6 | 6 | ||
| 7 | +## Prerequisites | ||
| 8 | + | ||
| 9 | +- **You need a Docker Account for using SBX** | ||
| 10 | +- You need Docker Desktop (only or exercise 07) | ||
| 11 | + | ||
| 7 | 12 | ||
| 8 | ## Installer `sbx` | 13 | ## Installer `sbx` |
| 9 | 14 | ||
modified
04-sbx/README.md +5 -0 | @@ -4,6 +4,11 @@ | ||
| 4 | 4 | |
| 5 | 5 |  |
| 6 | 6 | |
| 7 | +## Prerequisites | |
| 8 | + | |
| 9 | +- **You need a Docker Account for using SBX** | |
| 10 | +- You need Docker Desktop (only or exercise 07) | |
| 11 | + | |
| 7 | 12 | |
| 8 | 13 | ## Install `sbx` |
| 9 | 14 | |
| @@ -4,6 +4,11 @@ | |||
| 4 | 4 | ||
| 5 |  | 5 |  |
| 6 | 6 | ||
| 7 | +## Prerequisites | ||
| 8 | + | ||
| 9 | +- **You need a Docker Account for using SBX** | ||
| 10 | +- You need Docker Desktop (only or exercise 07) | ||
| 11 | + | ||
| 7 | 12 | ||
| 8 | ## Install `sbx` | 13 | ## Install `sbx` |
| 9 | 14 | ||
modified
05-sbx-docker-agent/README.fr.md +11 -24 | @@ -15,42 +15,29 @@ Aujourd'hui Docker Agent ne reconnaît pas automatiquement le secret mistral (`s | ||
| 15 | 15 | sbx secret set-custom --host api.mistral.ai --env MISTRAL_API_KEY \ |
| 16 | 16 | --placeholder sbx-mistral-key --value "$MISTRAL_API_KEY" |
| 17 | 17 | ``` |
| 18 | + | |
| 19 | + 🖐️ **on Windows:** | |
| 20 | + ```bash | |
| 21 | + $env:MISTRAL_API_KEY="your-api-key" | |
| 22 | + | |
| 23 | + sbx secret set-custom --host api.mistral.ai --env MISTRAL_API_KEY --placeholder sbx-mistral-key --value "$env:MISTRAL_API_KEY" | |
| 24 | + ``` | |
| 25 | + | |
| 18 | 26 | 3. Démarrer la sandbox : |
| 19 | 27 | ```bash |
| 20 | - sbx run --env-file sbx.env \ | |
| 21 | - docker-agent -- run agent.yaml | |
| 28 | + sbx run --env-file sbx.env docker-agent -- run agent.yaml . | |
| 22 | 29 | ``` |
| 30 | + > dont forget the `.` | |
| 23 | 31 | |
| 24 | 32 | Ou sans le fichier `sbx.env`: |
| 25 | 33 | |
| 26 | 34 | ```bash |
| 27 | -sbx run -e MISTRAL_API_KEY=sbx-mistral-key -e DOCKER_AGENT_AUTO_UPDATE=0 \ | |
| 28 | -docker-agent -- run agent.yaml | |
| 35 | +sbx run -e MISTRAL_API_KEY=sbx-mistral-key -e DOCKER_AGENT_AUTO_UPDATE=0 docker-agent -- run agent.yaml . | |
| 29 | 36 | ``` |
| 30 | 37 | |
| 31 | 38 |  |
| 32 | 39 | |
| 33 | 40 | |
| 34 | -<!-- | |
| 35 | -This method will be possible in a next version of docker agent | |
| 36 | -```bash | |
| 37 | -printf '%s\n' "$MISTRAL_API_KEY" | sbx secret set mistral | |
| 38 | -``` | |
| 39 | - | |
| 40 | -```bash | |
| 41 | -sbx secret set mistral --token 'your-api-key' --force | |
| 42 | -``` | |
| 43 | - | |
| 44 | -```bash | |
| 45 | -sbx secret ls | |
| 46 | -``` | |
| 47 | - | |
| 48 | -```bash | |
| 49 | -sbx run docker-agent -- run agent.yaml --theme default- | |
| 50 | -``` | |
| 51 | ---> | |
| 52 | - | |
| 53 | - | |
| 54 | 41 | ## Et essayez à nouveau |
| 55 | 42 | |
| 56 | 43 | ```raw |
| @@ -15,42 +15,29 @@ Aujourd'hui Docker Agent ne reconnaît pas automatiquement le secret mistral (`s | |||
| 15 | sbx secret set-custom --host api.mistral.ai --env MISTRAL_API_KEY \ | 15 | sbx secret set-custom --host api.mistral.ai --env MISTRAL_API_KEY \ |
| 16 | --placeholder sbx-mistral-key --value "$MISTRAL_API_KEY" | 16 | --placeholder sbx-mistral-key --value "$MISTRAL_API_KEY" |
| 17 | ``` | 17 | ``` |
| 18 | + | ||
| 19 | + 🖐️ **on Windows:** | ||
| 20 | + ```bash | ||
| 21 | + $env:MISTRAL_API_KEY="your-api-key" | ||
| 22 | + | ||
| 23 | + sbx secret set-custom --host api.mistral.ai --env MISTRAL_API_KEY --placeholder sbx-mistral-key --value "$env:MISTRAL_API_KEY" | ||
| 24 | + ``` | ||
| 25 | + | ||
| 18 | 3. Démarrer la sandbox : | 26 | 3. Démarrer la sandbox : |
| 19 | ```bash | 27 | ```bash |
| 20 | - sbx run --env-file sbx.env \ | 28 | + sbx run --env-file sbx.env docker-agent -- run agent.yaml . |
| 21 | - docker-agent -- run agent.yaml | ||
| 22 | ``` | 29 | ``` |
| 30 | + > dont forget the `.` | ||
| 23 | 31 | ||
| 24 | Ou sans le fichier `sbx.env`: | 32 | Ou sans le fichier `sbx.env`: |
| 25 | 33 | ||
| 26 | ```bash | 34 | ```bash |
| 27 | -sbx run -e MISTRAL_API_KEY=sbx-mistral-key -e DOCKER_AGENT_AUTO_UPDATE=0 \ | 35 | +sbx run -e MISTRAL_API_KEY=sbx-mistral-key -e DOCKER_AGENT_AUTO_UPDATE=0 docker-agent -- run agent.yaml . |
| 28 | -docker-agent -- run agent.yaml | ||
| 29 | ``` | 36 | ``` |
| 30 | 37 | ||
| 31 |  | 38 |  |
| 32 | 39 | ||
| 33 | 40 | ||
| 34 | -<!-- | ||
| 35 | -This method will be possible in a next version of docker agent | ||
| 36 | -```bash | ||
| 37 | -printf '%s\n' "$MISTRAL_API_KEY" | sbx secret set mistral | ||
| 38 | -``` | ||
| 39 | - | ||
| 40 | -```bash | ||
| 41 | -sbx secret set mistral --token 'your-api-key' --force | ||
| 42 | -``` | ||
| 43 | - | ||
| 44 | -```bash | ||
| 45 | -sbx secret ls | ||
| 46 | -``` | ||
| 47 | - | ||
| 48 | -```bash | ||
| 49 | -sbx run docker-agent -- run agent.yaml --theme default- | ||
| 50 | -``` | ||
| 51 | ---> | ||
| 52 | - | ||
| 53 | - | ||
| 54 | ## Et essayez à nouveau | 41 | ## Et essayez à nouveau |
| 55 | 42 | ||
| 56 | ```raw | 43 | ```raw |
modified
05-sbx-docker-agent/README.md +11 -23 | @@ -15,41 +15,29 @@ Today Docker Agent does not automatically recognize the mistral secret (`sbx sec | ||
| 15 | 15 | sbx secret set-custom --host api.mistral.ai --env MISTRAL_API_KEY \ |
| 16 | 16 | --placeholder sbx-mistral-key --value "$MISTRAL_API_KEY" |
| 17 | 17 | ``` |
| 18 | + | |
| 19 | + 🖐️ **on Windows:** | |
| 20 | + ```bash | |
| 21 | + $env:MISTRAL_API_KEY="your-api-key" | |
| 22 | + | |
| 23 | + sbx secret set-custom --host api.mistral.ai --env MISTRAL_API_KEY --placeholder sbx-mistral-key --value "$env:MISTRAL_API_KEY" | |
| 24 | + ``` | |
| 25 | + | |
| 18 | 26 | 3. Start the sandbox: |
| 19 | 27 | ```bash |
| 20 | - sbx run --env-file sbx.env \ | |
| 21 | - docker-agent -- run agent.yaml | |
| 28 | + sbx run --env-file sbx.env docker-agent -- run agent.yaml . | |
| 22 | 29 | ``` |
| 30 | + > dont forget the `.` | |
| 23 | 31 | |
| 24 | 32 | Or without the `sbx.env` file: |
| 25 | 33 | |
| 26 | 34 | ```bash |
| 27 | -sbx run -e MISTRAL_API_KEY=sbx-mistral-key -e DOCKER_AGENT_AUTO_UPDATE=0 \ | |
| 28 | -docker-agent -- run agent.yaml | |
| 35 | +sbx run -e MISTRAL_API_KEY=sbx-mistral-key -e DOCKER_AGENT_AUTO_UPDATE=0 docker-agent -- run agent.yaml . | |
| 29 | 36 | ``` |
| 30 | 37 | |
| 31 | 38 |  |
| 32 | 39 | |
| 33 | 40 | |
| 34 | -<!-- | |
| 35 | -This method will be possible in a next version of docker agent | |
| 36 | -```bash | |
| 37 | -printf '%s\n' "$MISTRAL_API_KEY" | sbx secret set mistral | |
| 38 | -``` | |
| 39 | - | |
| 40 | -```bash | |
| 41 | -sbx secret set mistral --token 'your-api-key' --force | |
| 42 | -``` | |
| 43 | - | |
| 44 | -```bash | |
| 45 | -sbx secret ls | |
| 46 | -``` | |
| 47 | - | |
| 48 | -```bash | |
| 49 | -sbx run docker-agent -- run agent.yaml --theme default- | |
| 50 | -``` | |
| 51 | ---> | |
| 52 | - | |
| 53 | 41 | |
| 54 | 42 | ## And try again |
| 55 | 43 | |
| @@ -15,41 +15,29 @@ Today Docker Agent does not automatically recognize the mistral secret (`sbx sec | |||
| 15 | sbx secret set-custom --host api.mistral.ai --env MISTRAL_API_KEY \ | 15 | sbx secret set-custom --host api.mistral.ai --env MISTRAL_API_KEY \ |
| 16 | --placeholder sbx-mistral-key --value "$MISTRAL_API_KEY" | 16 | --placeholder sbx-mistral-key --value "$MISTRAL_API_KEY" |
| 17 | ``` | 17 | ``` |
| 18 | + | ||
| 19 | + 🖐️ **on Windows:** | ||
| 20 | + ```bash | ||
| 21 | + $env:MISTRAL_API_KEY="your-api-key" | ||
| 22 | + | ||
| 23 | + sbx secret set-custom --host api.mistral.ai --env MISTRAL_API_KEY --placeholder sbx-mistral-key --value "$env:MISTRAL_API_KEY" | ||
| 24 | + ``` | ||
| 25 | + | ||
| 18 | 3. Start the sandbox: | 26 | 3. Start the sandbox: |
| 19 | ```bash | 27 | ```bash |
| 20 | - sbx run --env-file sbx.env \ | 28 | + sbx run --env-file sbx.env docker-agent -- run agent.yaml . |
| 21 | - docker-agent -- run agent.yaml | ||
| 22 | ``` | 29 | ``` |
| 30 | + > dont forget the `.` | ||
| 23 | 31 | ||
| 24 | Or without the `sbx.env` file: | 32 | Or without the `sbx.env` file: |
| 25 | 33 | ||
| 26 | ```bash | 34 | ```bash |
| 27 | -sbx run -e MISTRAL_API_KEY=sbx-mistral-key -e DOCKER_AGENT_AUTO_UPDATE=0 \ | 35 | +sbx run -e MISTRAL_API_KEY=sbx-mistral-key -e DOCKER_AGENT_AUTO_UPDATE=0 docker-agent -- run agent.yaml . |
| 28 | -docker-agent -- run agent.yaml | ||
| 29 | ``` | 36 | ``` |
| 30 | 37 | ||
| 31 |  | 38 |  |
| 32 | 39 | ||
| 33 | 40 | ||
| 34 | -<!-- | ||
| 35 | -This method will be possible in a next version of docker agent | ||
| 36 | -```bash | ||
| 37 | -printf '%s\n' "$MISTRAL_API_KEY" | sbx secret set mistral | ||
| 38 | -``` | ||
| 39 | - | ||
| 40 | -```bash | ||
| 41 | -sbx secret set mistral --token 'your-api-key' --force | ||
| 42 | -``` | ||
| 43 | - | ||
| 44 | -```bash | ||
| 45 | -sbx secret ls | ||
| 46 | -``` | ||
| 47 | - | ||
| 48 | -```bash | ||
| 49 | -sbx run docker-agent -- run agent.yaml --theme default- | ||
| 50 | -``` | ||
| 51 | ---> | ||
| 52 | - | ||
| 53 | 41 | ||
| 54 | ## And try again | 42 | ## And try again |
| 55 | 43 | ||
modified
06-sbx-docker-agent-sbx-env/README.fr.md +8 -0 | @@ -30,6 +30,14 @@ sbx secret set-custom --sandbox docker-agent-mistral \ | ||
| 30 | 30 | --placeholder sbx-mistral-key --value "$MISTRAL_API_KEY" |
| 31 | 31 | ``` |
| 32 | 32 | |
| 33 | +🖐️ **on Windows:** | |
| 34 | +```bash | |
| 35 | +$env:MISTRAL_API_KEY="your-api-key" | |
| 36 | + | |
| 37 | +sbx secret set-custom --sandbox docker-agent-mistral --host api.mistral.ai --env MISTRAL_API_KEY --placeholder sbx-mistral-key --value "$env:MISTRAL_API_KEY" | |
| 38 | +``` | |
| 39 | + | |
| 40 | + | |
| 33 | 41 | ## Démarrer la sandbox |
| 34 | 42 | |
| 35 | 43 | `sbx env run` ne permet pas de passer d'arguments à l'agent (pas de `-- run agent.yaml`) : Docker Agent serait lancé avec ses arguments par défaut (`run --yolo --agent-picker`), donc pas forcément avec `agent.yaml` et Mistral. On crée la sandbox, puis on lance Docker Agent avec `agent.yaml` via `sbx env exec` : |
| @@ -30,6 +30,14 @@ sbx secret set-custom --sandbox docker-agent-mistral \ | |||
| 30 | --placeholder sbx-mistral-key --value "$MISTRAL_API_KEY" | 30 | --placeholder sbx-mistral-key --value "$MISTRAL_API_KEY" |
| 31 | ``` | 31 | ``` |
| 32 | 32 | ||
| 33 | +🖐️ **on Windows:** | ||
| 34 | +```bash | ||
| 35 | +$env:MISTRAL_API_KEY="your-api-key" | ||
| 36 | + | ||
| 37 | +sbx secret set-custom --sandbox docker-agent-mistral --host api.mistral.ai --env MISTRAL_API_KEY --placeholder sbx-mistral-key --value "$env:MISTRAL_API_KEY" | ||
| 38 | +``` | ||
| 39 | + | ||
| 40 | + | ||
| 33 | ## Démarrer la sandbox | 41 | ## Démarrer la sandbox |
| 34 | 42 | ||
| 35 | `sbx env run` ne permet pas de passer d'arguments à l'agent (pas de `-- run agent.yaml`) : Docker Agent serait lancé avec ses arguments par défaut (`run --yolo --agent-picker`), donc pas forcément avec `agent.yaml` et Mistral. On crée la sandbox, puis on lance Docker Agent avec `agent.yaml` via `sbx env exec` : | 43 | `sbx env run` ne permet pas de passer d'arguments à l'agent (pas de `-- run agent.yaml`) : Docker Agent serait lancé avec ses arguments par défaut (`run --yolo --agent-picker`), donc pas forcément avec `agent.yaml` et Mistral. On crée la sandbox, puis on lance Docker Agent avec `agent.yaml` via `sbx env exec` : |
modified
06-sbx-docker-agent-sbx-env/README.md +8 -0 | @@ -30,6 +30,14 @@ sbx secret set-custom --sandbox docker-agent-mistral \ | ||
| 30 | 30 | --placeholder sbx-mistral-key --value "$MISTRAL_API_KEY" |
| 31 | 31 | ``` |
| 32 | 32 | |
| 33 | +🖐️ **on Windows:** | |
| 34 | +```bash | |
| 35 | +$env:MISTRAL_API_KEY="your-api-key" | |
| 36 | + | |
| 37 | +sbx secret set-custom --sandbox docker-agent-mistral --host api.mistral.ai --env MISTRAL_API_KEY --placeholder sbx-mistral-key --value "$env:MISTRAL_API_KEY" | |
| 38 | +``` | |
| 39 | + | |
| 40 | + | |
| 33 | 41 | ## Start the sandbox |
| 34 | 42 | |
| 35 | 43 | `sbx env run` cannot pass arguments to the agent (no `-- run agent.yaml`): Docker Agent would be started with its default arguments (`run --yolo --agent-picker`), so not necessarily with `agent.yaml` and Mistral. We create the sandbox, then start Docker Agent with `agent.yaml` through `sbx env exec`: |
| @@ -30,6 +30,14 @@ sbx secret set-custom --sandbox docker-agent-mistral \ | |||
| 30 | --placeholder sbx-mistral-key --value "$MISTRAL_API_KEY" | 30 | --placeholder sbx-mistral-key --value "$MISTRAL_API_KEY" |
| 31 | ``` | 31 | ``` |
| 32 | 32 | ||
| 33 | +🖐️ **on Windows:** | ||
| 34 | +```bash | ||
| 35 | +$env:MISTRAL_API_KEY="your-api-key" | ||
| 36 | + | ||
| 37 | +sbx secret set-custom --sandbox docker-agent-mistral --host api.mistral.ai --env MISTRAL_API_KEY --placeholder sbx-mistral-key --value "$env:MISTRAL_API_KEY" | ||
| 38 | +``` | ||
| 39 | + | ||
| 40 | + | ||
| 33 | ## Start the sandbox | 41 | ## Start the sandbox |
| 34 | 42 | ||
| 35 | `sbx env run` cannot pass arguments to the agent (no `-- run agent.yaml`): Docker Agent would be started with its default arguments (`run --yolo --agent-picker`), so not necessarily with `agent.yaml` and Mistral. We create the sandbox, then start Docker Agent with `agent.yaml` through `sbx env exec`: | 43 | `sbx env run` cannot pass arguments to the agent (no `-- run agent.yaml`): Docker Agent would be started with its default arguments (`run --yolo --agent-picker`), so not necessarily with `agent.yaml` and Mistral. We create the sandbox, then start Docker Agent with `agent.yaml` through `sbx env exec`: |
added
07-play-lego-with-kits/.gitattributes +1 -0 | new file mode 100644 | ||
| @@ -0,0 +1 @@ | ||
| 1 | +kits/** text eol=lf | |
| new file mode 100644 | |||
| @@ -0,0 +1 @@ | |||
| 1 | +kits/** text eol=lf | ||
modified
07-play-lego-with-kits/README.fr.md +8 -3 | @@ -56,6 +56,13 @@ sbx secret set-custom --sandbox docker-rust-agent-mistral \ | ||
| 56 | 56 | --placeholder sbx-mistral-key --value "$MISTRAL_API_KEY" |
| 57 | 57 | ``` |
| 58 | 58 | |
| 59 | +🖐️ **on Windows:** | |
| 60 | +```bash | |
| 61 | +$env:MISTRAL_API_KEY="your-api-key" | |
| 62 | + | |
| 63 | +sbx secret set-custom --sandbox docker-rust-agent-mistral --host api.mistral.ai --env MISTRAL_API_KEY --placeholder sbx-mistral-key --value "$env:MISTRAL_API_KEY" | |
| 64 | +``` | |
| 65 | + | |
| 59 | 66 | Sans `--sandbox`, le secret est global et fonctionne aussi. |
| 60 | 67 | |
| 61 | 68 | ## Démarrer la sandbox |
| @@ -64,6 +71,7 @@ Sans `--sandbox`, le secret est global et fonctionne aussi. | ||
| 64 | 71 | sbx env create |
| 65 | 72 | sbx env exec -it -- docker-agent run agent.yaml |
| 66 | 73 | ``` |
| 74 | +> 🖐️ **you need Docker to build a kit** | |
| 67 | 75 | |
| 68 | 76 | `sbx env` affiche le plan (ce qui va être créé) et demande une approbation ; `--force` l'accepte sans demander. La première création construit les deux kits, ce qui prend un peu de temps. |
| 69 | 77 | |
| @@ -86,6 +94,3 @@ Create a new Rust project with cargo that prints a greeting, then build and run | ||
| 86 | 94 | ``` |
| 87 | 95 | |
| 88 | 96 | L'agent peut maintenant utiliser `cargo build`, `cargo test` ou `cargo clippy` dans la sandbox. |
| 89 | - | |
| 90 | - | |
| 91 | -👋 **Je voudrais la version `1.27.2` de Go** | |
| \ No newline at end of file | ||
| @@ -56,6 +56,13 @@ sbx secret set-custom --sandbox docker-rust-agent-mistral \ | |||
| 56 | --placeholder sbx-mistral-key --value "$MISTRAL_API_KEY" | 56 | --placeholder sbx-mistral-key --value "$MISTRAL_API_KEY" |
| 57 | ``` | 57 | ``` |
| 58 | 58 | ||
| 59 | +🖐️ **on Windows:** | ||
| 60 | +```bash | ||
| 61 | +$env:MISTRAL_API_KEY="your-api-key" | ||
| 62 | + | ||
| 63 | +sbx secret set-custom --sandbox docker-rust-agent-mistral --host api.mistral.ai --env MISTRAL_API_KEY --placeholder sbx-mistral-key --value "$env:MISTRAL_API_KEY" | ||
| 64 | +``` | ||
| 65 | + | ||
| 59 | Sans `--sandbox`, le secret est global et fonctionne aussi. | 66 | Sans `--sandbox`, le secret est global et fonctionne aussi. |
| 60 | 67 | ||
| 61 | ## Démarrer la sandbox | 68 | ## Démarrer la sandbox |
| @@ -64,6 +71,7 @@ Sans `--sandbox`, le secret est global et fonctionne aussi. | |||
| 64 | sbx env create | 71 | sbx env create |
| 65 | sbx env exec -it -- docker-agent run agent.yaml | 72 | sbx env exec -it -- docker-agent run agent.yaml |
| 66 | ``` | 73 | ``` |
| 74 | +> 🖐️ **you need Docker to build a kit** | ||
| 67 | 75 | ||
| 68 | `sbx env` affiche le plan (ce qui va être créé) et demande une approbation ; `--force` l'accepte sans demander. La première création construit les deux kits, ce qui prend un peu de temps. | 76 | `sbx env` affiche le plan (ce qui va être créé) et demande une approbation ; `--force` l'accepte sans demander. La première création construit les deux kits, ce qui prend un peu de temps. |
| 69 | 77 | ||
| @@ -86,6 +94,3 @@ Create a new Rust project with cargo that prints a greeting, then build and run | |||
| 86 | ``` | 94 | ``` |
| 87 | 95 | ||
| 88 | L'agent peut maintenant utiliser `cargo build`, `cargo test` ou `cargo clippy` dans la sandbox. | 96 | L'agent peut maintenant utiliser `cargo build`, `cargo test` ou `cargo clippy` dans la sandbox. |
| 89 | - | ||
| 90 | - | ||
| 91 | -👋 **Je voudrais la version `1.27.2` de Go** | ||
| \ No newline at end of file | \ No newline at end of file | ||
modified
07-play-lego-with-kits/README.md +8 -3 | @@ -56,6 +56,13 @@ sbx secret set-custom --sandbox docker-rust-agent-mistral \ | ||
| 56 | 56 | --placeholder sbx-mistral-key --value "$MISTRAL_API_KEY" |
| 57 | 57 | ``` |
| 58 | 58 | |
| 59 | +🖐️ **on Windows:** | |
| 60 | +```bash | |
| 61 | +$env:MISTRAL_API_KEY="your-api-key" | |
| 62 | + | |
| 63 | +sbx secret set-custom --sandbox docker-rust-agent-mistral --host api.mistral.ai --env MISTRAL_API_KEY --placeholder sbx-mistral-key --value "$env:MISTRAL_API_KEY" | |
| 64 | +``` | |
| 65 | + | |
| 59 | 66 | Without `--sandbox`, the secret is global and works too. |
| 60 | 67 | |
| 61 | 68 | ## Start the sandbox |
| @@ -64,6 +71,7 @@ Without `--sandbox`, the secret is global and works too. | ||
| 64 | 71 | sbx env create |
| 65 | 72 | sbx env exec -it -- docker-agent run agent.yaml |
| 66 | 73 | ``` |
| 74 | +> 🖐️ **you need Docker to build a kit** | |
| 67 | 75 | |
| 68 | 76 | `sbx env` shows the plan (what is going to be created) and asks for approval; `--force` accepts it without asking. The first creation builds the two kits, which takes a little time. |
| 69 | 77 | |
| @@ -86,6 +94,3 @@ Create a new Rust project with cargo that prints a greeting, then build and run | ||
| 86 | 94 | ``` |
| 87 | 95 | |
| 88 | 96 | The agent can now use `cargo build`, `cargo test` or `cargo clippy` in the sandbox. |
| 89 | - | |
| 90 | - | |
| 91 | -👋 **I would like Go version `1.27.2`** | |
| @@ -56,6 +56,13 @@ sbx secret set-custom --sandbox docker-rust-agent-mistral \ | |||
| 56 | --placeholder sbx-mistral-key --value "$MISTRAL_API_KEY" | 56 | --placeholder sbx-mistral-key --value "$MISTRAL_API_KEY" |
| 57 | ``` | 57 | ``` |
| 58 | 58 | ||
| 59 | +🖐️ **on Windows:** | ||
| 60 | +```bash | ||
| 61 | +$env:MISTRAL_API_KEY="your-api-key" | ||
| 62 | + | ||
| 63 | +sbx secret set-custom --sandbox docker-rust-agent-mistral --host api.mistral.ai --env MISTRAL_API_KEY --placeholder sbx-mistral-key --value "$env:MISTRAL_API_KEY" | ||
| 64 | +``` | ||
| 65 | + | ||
| 59 | Without `--sandbox`, the secret is global and works too. | 66 | Without `--sandbox`, the secret is global and works too. |
| 60 | 67 | ||
| 61 | ## Start the sandbox | 68 | ## Start the sandbox |
| @@ -64,6 +71,7 @@ Without `--sandbox`, the secret is global and works too. | |||
| 64 | sbx env create | 71 | sbx env create |
| 65 | sbx env exec -it -- docker-agent run agent.yaml | 72 | sbx env exec -it -- docker-agent run agent.yaml |
| 66 | ``` | 73 | ``` |
| 74 | +> 🖐️ **you need Docker to build a kit** | ||
| 67 | 75 | ||
| 68 | `sbx env` shows the plan (what is going to be created) and asks for approval; `--force` accepts it without asking. The first creation builds the two kits, which takes a little time. | 76 | `sbx env` shows the plan (what is going to be created) and asks for approval; `--force` accepts it without asking. The first creation builds the two kits, which takes a little time. |
| 69 | 77 | ||
| @@ -86,6 +94,3 @@ Create a new Rust project with cargo that prints a greeting, then build and run | |||
| 86 | ``` | 94 | ``` |
| 87 | 95 | ||
| 88 | The agent can now use `cargo build`, `cargo test` or `cargo clippy` in the sandbox. | 96 | The agent can now use `cargo build`, `cargo test` or `cargo clippy` in the sandbox. |
| 89 | - | ||
| 90 | - | ||
| 91 | -👋 **I would like Go version `1.27.2`** | ||
modified
08-policies/README.fr.md +7 -0 | @@ -62,6 +62,13 @@ sbx secret set-custom --sandbox docker-policies-agent-mistral \ | ||
| 62 | 62 | --placeholder sbx-mistral-key --value "$MISTRAL_API_KEY" |
| 63 | 63 | ``` |
| 64 | 64 | |
| 65 | +🖐️ **on Windows:** | |
| 66 | +```bash | |
| 67 | +$env:MISTRAL_API_KEY="your-api-key" | |
| 68 | + | |
| 69 | +sbx secret set-custom --sandbox docker-policies-agent-mistral --host api.mistral.ai --env MISTRAL_API_KEY --placeholder sbx-mistral-key --value "$env:MISTRAL_API_KEY" | |
| 70 | +``` | |
| 71 | + | |
| 65 | 72 | Un custom secret global (sans `--sandbox`) fonctionne aussi. |
| 66 | 73 | |
| 67 | 74 | ## Démarrer la sandbox |
| @@ -62,6 +62,13 @@ sbx secret set-custom --sandbox docker-policies-agent-mistral \ | |||
| 62 | --placeholder sbx-mistral-key --value "$MISTRAL_API_KEY" | 62 | --placeholder sbx-mistral-key --value "$MISTRAL_API_KEY" |
| 63 | ``` | 63 | ``` |
| 64 | 64 | ||
| 65 | +🖐️ **on Windows:** | ||
| 66 | +```bash | ||
| 67 | +$env:MISTRAL_API_KEY="your-api-key" | ||
| 68 | + | ||
| 69 | +sbx secret set-custom --sandbox docker-policies-agent-mistral --host api.mistral.ai --env MISTRAL_API_KEY --placeholder sbx-mistral-key --value "$env:MISTRAL_API_KEY" | ||
| 70 | +``` | ||
| 71 | + | ||
| 65 | Un custom secret global (sans `--sandbox`) fonctionne aussi. | 72 | Un custom secret global (sans `--sandbox`) fonctionne aussi. |
| 66 | 73 | ||
| 67 | ## Démarrer la sandbox | 74 | ## Démarrer la sandbox |
modified
08-policies/README.md +7 -0 | @@ -62,6 +62,13 @@ sbx secret set-custom --sandbox docker-policies-agent-mistral \ | ||
| 62 | 62 | --placeholder sbx-mistral-key --value "$MISTRAL_API_KEY" |
| 63 | 63 | ``` |
| 64 | 64 | |
| 65 | +🖐️ **on Windows:** | |
| 66 | +```bash | |
| 67 | +$env:MISTRAL_API_KEY="your-api-key" | |
| 68 | + | |
| 69 | +sbx secret set-custom --sandbox docker-policies-agent-mistral --host api.mistral.ai --env MISTRAL_API_KEY --placeholder sbx-mistral-key --value "$env:MISTRAL_API_KEY" | |
| 70 | +``` | |
| 71 | + | |
| 65 | 72 | A global custom secret (without `--sandbox`) works too. |
| 66 | 73 | |
| 67 | 74 | ## Start the sandbox |
| @@ -62,6 +62,13 @@ sbx secret set-custom --sandbox docker-policies-agent-mistral \ | |||
| 62 | --placeholder sbx-mistral-key --value "$MISTRAL_API_KEY" | 62 | --placeholder sbx-mistral-key --value "$MISTRAL_API_KEY" |
| 63 | ``` | 63 | ``` |
| 64 | 64 | ||
| 65 | +🖐️ **on Windows:** | ||
| 66 | +```bash | ||
| 67 | +$env:MISTRAL_API_KEY="your-api-key" | ||
| 68 | + | ||
| 69 | +sbx secret set-custom --sandbox docker-policies-agent-mistral --host api.mistral.ai --env MISTRAL_API_KEY --placeholder sbx-mistral-key --value "$env:MISTRAL_API_KEY" | ||
| 70 | +``` | ||
| 71 | + | ||
| 65 | A global custom secret (without `--sandbox`) works too. | 72 | A global custom secret (without `--sandbox`) works too. |
| 66 | 73 | ||
| 67 | ## Start the sandbox | 74 | ## Start the sandbox |
modified
08-policies/agent.yaml +2 -0 | @@ -18,3 +18,5 @@ agents: | ||
| 18 | 18 | toolsets: |
| 19 | 19 | - type: filesystem |
| 20 | 20 | - type: shell |
| 21 | + - type: fetch | |
| 22 | + | |
| @@ -18,3 +18,5 @@ agents: | |||
| 18 | toolsets: | 18 | toolsets: |
| 19 | - type: filesystem | 19 | - type: filesystem |
| 20 | - type: shell | 20 | - type: shell |
| 21 | + - type: fetch | ||
| 22 | + | ||