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

0.4 release #598

Draft
wants to merge 22 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "python-3.10",
"name": "ag2-python-3.10",
// "image": "mcr.microsoft.com/devcontainers/python:3.10",
"dockerComposeFile": [
"./docker-compose.yml"
],
"service": "python-3.10-fastagency",
"forwardPorts": [
"fastagency-${containerEnv:CONTAINER_PREFIX}-nats-py310:9222"
"fastagency-${containerEnv:CONTAINER_PREFIX}-nats-py3.10:9222"
],
"secrets": {
"OPENAI_API_KEY": {
Expand Down Expand Up @@ -65,7 +65,7 @@
"ghcr.io/devcontainers/features/git-lfs:1": {},
"ghcr.io/robbert229/devcontainer-features/postgresql-client:1": {}
},
"updateContentCommand": "bash .devcontainer/setup.sh",
"updateContentCommand": "bash .devcontainer/setup-ag2.sh",
"postCreateCommand": "npm install && npx playwright install-deps && npx playwright install",
"customizations": {
"vscode": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,25 @@ services:
image: mcr.microsoft.com/devcontainers/python:3.10
container_name: fastagency-${USER}-python-3.10
volumes:
- ../:/workspaces/fastagency:cached
- ../../:/workspaces/fastagency:cached
command: sleep infinity
environment:
- NATS_URL=nats://fastagency-${USER}-nats-py310:4222
- NATS_URL=nats://fastagency-${USER}-nats-py3.10:4222
env_file:
- ./devcontainer.env
- ../devcontainer.env
networks:
- fastagency-network
nats-fastagency: # nosemgrep
image: nats:latest
container_name: fastagency-${USER}-nats-py310
container_name: fastagency-${USER}-nats-py3.10
# ports:
# - "${PORT_PREFIX}4222:4222"
# - "${PORT_PREFIX}9222:9222"
volumes:
- ./nats_server.conf:/etc/nats/server.conf
- ../nats_server.conf:/etc/nats/server.conf
command: [ "--config", "/etc/nats/server.conf" ]
env_file:
- ./devcontainer.env
- ../devcontainer.env
networks:
- fastagency-network

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "python-3.11",
"name": "ag2-python-3.11",
// "image": "mcr.microsoft.com/devcontainers/python:3.11",
"dockerComposeFile": [
"./docker-compose.yml"
],
"service": "python-3.11-fastagency",
"forwardPorts": [
"fastagency-${containerEnv:CONTAINER_PREFIX}-nats-py311:9222"
"fastagency-${containerEnv:CONTAINER_PREFIX}-nats-py3.11:9222"
],
"secrets": {
"OPENAI_API_KEY": {
Expand Down Expand Up @@ -64,7 +65,7 @@
"ghcr.io/devcontainers/features/git-lfs:1": {},
"ghcr.io/robbert229/devcontainer-features/postgresql-client:1": {}
},
"updateContentCommand": "bash .devcontainer/setup.sh",
"updateContentCommand": "bash .devcontainer/setup-ag2.sh",
"postCreateCommand": "npm install && npx playwright install-deps && npx playwright install",
"customizations": {
"vscode": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ services:
- ../../:/workspaces/fastagency:cached
command: sleep infinity
environment:
- NATS_URL=nats://fastagency-${USER}-nats-py311:4222
- NATS_URL=nats://fastagency-${USER}-nats-py3.11:4222
env_file:
- ../devcontainer.env
networks:
- fastagency-network
nats-fastagency: # nosemgrep
image: nats:latest
container_name: fastagency-${USER}-nats-py311
container_name: fastagency-${USER}-nats-py3.11
# ports:
# - "${PORT_PREFIX}4222:4222"
# - "${PORT_PREFIX}9222:9222"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "python-3.12",
"name": "ag2-python-3.12",
// "image": "mcr.microsoft.com/devcontainers/python:3.12",
"dockerComposeFile": [
"./docker-compose.yml"
],
"service": "python-3.12-fastagency",
"forwardPorts": [
"fastagency-${containerEnv:CONTAINER_PREFIX}-nats-py312:9222"
"fastagency-${containerEnv:CONTAINER_PREFIX}-nats-py3.12:9222"
],
"secrets": {
"OPENAI_API_KEY": {
Expand Down Expand Up @@ -64,7 +65,7 @@
"ghcr.io/devcontainers/features/git-lfs:1": {},
"ghcr.io/robbert229/devcontainer-features/postgresql-client:1": {}
},
"updateContentCommand": "bash .devcontainer/setup.sh",
"updateContentCommand": "bash .devcontainer/setup-ag2.sh",
"postCreateCommand": "npm install && npx playwright install-deps && npx playwright install",
"customizations": {
"vscode": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ services:
- ../../:/workspaces/fastagency:cached
command: sleep infinity
environment:
- NATS_URL=nats://fastagency-${USER}-nats-py312:4222
- NATS_URL=nats://fastagency-${USER}-nats-py3.12:4222
env_file:
- ../devcontainer.env
networks:
- fastagency-network
nats-fastagency: # nosemgrep
image: nats:latest
container_name: fastagency-${USER}-nats-py312
container_name: fastagency-${USER}-nats-py3.12
# ports:
# - "${PORT_PREFIX}4222:4222"
# - "${PORT_PREFIX}9222:9222"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "python-3.9",
"name": "ag2-python-3.9",
// "image": "mcr.microsoft.com/devcontainers/python:3.9",
"dockerComposeFile": [
"./docker-compose.yml"
],
"service": "python-3.9-fastagency",
"forwardPorts": [
"fastagency-${containerEnv:CONTAINER_PREFIX}-nats-py39:9222"
"fastagency-${containerEnv:CONTAINER_PREFIX}-nats-py3.9:9222"
],
"secrets": {
"OPENAI_API_KEY": {
Expand Down Expand Up @@ -65,7 +65,7 @@
"ghcr.io/devcontainers/features/git-lfs:1": {},
"ghcr.io/robbert229/devcontainer-features/postgresql-client:1": {}
},
"updateContentCommand": "bash .devcontainer/setup.sh",
"updateContentCommand": "bash .devcontainer/setup-ag2.sh",
"postCreateCommand": "npm install && npx playwright install-deps && npx playwright install",
"customizations": {
"vscode": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ services:
- ../../:/workspaces/fastagency:cached
command: sleep infinity
environment:
- NATS_URL=nats://fastagency-${USER}-nats-py39:4222
- NATS_URL=nats://fastagency-${USER}-nats-py3.9:4222
env_file:
- ../devcontainer.env
networks:
- fastagency-network
nats-fastagency: # nosemgrep
image: nats:latest
container_name: fastagency-${USER}-nats-py39
container_name: fastagency-${USER}-nats-py3.9
# ports:
# - "${PORT_PREFIX}4222:4222"
# - "${PORT_PREFIX}9222:9222"
Expand Down
98 changes: 98 additions & 0 deletions .devcontainer/autogen-04dev-python-3.10/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"name": "autogen-04dev-python-3.10",
// "image": "mcr.microsoft.com/devcontainers/python:3.10",
"dockerComposeFile": [
"./docker-compose.yml"
],
"service": "python-3.10-fastagency",
"forwardPorts": [
"fastagency-${containerEnv:CONTAINER_PREFIX}-nats-py3.10:9222"
],
"secrets": {
"OPENAI_API_KEY": {
"description": "This key is optional and only needed if you are working on OpenAI-related code. Leave it blank if not required. You can always set it later as an environment variable in the codespace terminal."
},
"TOGETHER_API_KEY": {
"description": "This key is optional and only needed if you are working with Together API-related code. Leave it blank if not required. You can always set it later as an environment variable in the codespace terminal."
},
"ANTHROPIC_API_KEY": {
"description": "This key is optional and only needed if you are working with Anthropic API-related code. Leave it blank if not required. You can always set it later as an environment variable in the codespace terminal."
},
"AZURE_OPENAI_API_KEY": {
"description": "This key is optional and only needed if you are using Azure's OpenAI services. For it to work, you must also set the related environment variables: AZURE_API_ENDPOINT, AZURE_API_VERSION, and at least one of AZURE_GPT35_MODEL, AZURE_GPT4_MODEL, or AZURE_GPT4o_MODEL. Leave it blank if not required. You can always set these variables later in the codespace terminal."
},
"AZURE_API_ENDPOINT": {
"description": "This key is required if you are using Azure's OpenAI services. It must be used in conjunction with AZURE_OPENAI_API_KEY, AZURE_API_VERSION, and at least one of AZURE_GPT35_MODEL, AZURE_GPT4_MODEL, or AZURE_GPT4o_MODEL to ensure proper configuration. You can always set these variables later as environment variables in the codespace terminal."
},
"AZURE_API_VERSION": {
"description": "This key is required to specify the version of the Azure API you are using. Set this along with AZURE_OPENAI_API_KEY, AZURE_API_ENDPOINT, and at least one of AZURE_GPT35_MODEL, AZURE_GPT4_MODEL, or AZURE_GPT4o_MODEL for Azure OpenAI services. These variables can be configured later as environment variables in the codespace terminal."
},
"AZURE_GPT35_MODEL": {
"description": "This key is required if you are using Azure's GPT-3.5 model. Ensure you also set AZURE_OPENAI_API_KEY, AZURE_API_ENDPOINT, AZURE_GPT4_MODEL, AZURE_GPT4o_MODEL, and AZURE_API_VERSION for full compatibility with Azure OpenAI services. These can be configured later in the codespace terminal as environment variables."
},
"AZURE_GPT4_MODEL": {
"description": "This key is required if you are using Azure's GPT-4 model. It must be set along with AZURE_OPENAI_API_KEY, AZURE_API_ENDPOINT, AZURE_GPT35_MODEL, AZURE_GPT4o_MODEL, and AZURE_API_VERSION to properly integrate with Azure's OpenAI services. All keys can be added later as environment variables in the codespace terminal."
},
"AZURE_GPT4o_MODEL": {
"description": "This key is required if you are using Azure's GPT-4o model. Ensure that AZURE_OPENAI_API_KEY, AZURE_API_ENDPOINT, AZURE_GPT35_MODEL, AZURE_GPT4_MODEL, and AZURE_API_VERSION are also set. You can always add these later as environment variables in the codespace terminal."
},
"BING_API_KEY": {
"description": "This key is optional. The WebSurfer agent can work without it, but when added, it uses Bing's search and data services to improve information retrieval. You can always set it later as an environment variable in the codespace terminal."
}
},
"shutdownAction": "stopCompose",
"workspaceFolder": "/workspaces/fastagency",
// "runArgs": [],
"remoteEnv": {},
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"installZsh": true,
"installOhMyZsh": true,
"configureZshAsDefaultShell": true,
"username": "vscode",
"userUid": "1000",
"userGid": "1000"
// "upgradePackages": "true"
},
// "ghcr.io/devcontainers/features/python:1": {},
"ghcr.io/devcontainers/features/node:1": {},
// The below configuration with "version" set to "latest" fails in codespace
// "ghcr.io/devcontainers/features/git:1": {
// "version": "latest",
// "ppa": true
// },
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/git-lfs:1": {},
"ghcr.io/robbert229/devcontainer-features/postgresql-client:1": {}
},
"updateContentCommand": "bash .devcontainer/setup-autogen-04dev.sh",
"postCreateCommand": "npm install && npx playwright install-deps && npx playwright install",
"customizations": {
"vscode": {
"settings": {
"python.linting.enabled": true,
"python.testing.pytestEnabled": true,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": "always"
},
"[python]": {
"editor.defaultFormatter": "ms-python.vscode-pylance"
},
"editor.rulers": [
80
]
},
"extensions": [
"ms-python.python",
"ms-toolsai.jupyter",
"ms-toolsai.vscode-jupyter-cell-tags",
"ms-toolsai.jupyter-keymap",
"ms-toolsai.jupyter-renderers",
"ms-toolsai.vscode-jupyter-slideshow",
"ms-python.vscode-pylance",
"ms-playwright.playwright"
]
}
}
}
32 changes: 32 additions & 0 deletions .devcontainer/autogen-04dev-python-3.10/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: '3'

services:
python-3.10-fastagency: # nosemgrep
image: mcr.microsoft.com/devcontainers/python:3.10
container_name: fastagency-${USER}-python-3.10
volumes:
- ../../:/workspaces/fastagency:cached
command: sleep infinity
environment:
- NATS_URL=nats://fastagency-${USER}-nats-py3.10:4222
env_file:
- ../devcontainer.env
networks:
- fastagency-network
nats-fastagency: # nosemgrep
image: nats:latest
container_name: fastagency-${USER}-nats-py3.10
# ports:
# - "${PORT_PREFIX}4222:4222"
# - "${PORT_PREFIX}9222:9222"
volumes:
- ../nats_server.conf:/etc/nats/server.conf
command: [ "--config", "/etc/nats/server.conf" ]
env_file:
- ../devcontainer.env
networks:
- fastagency-network

networks:
fastagency-network:
name: fastagency-${USER}-network
Loading