diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000000..7028a65475 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,18 @@ +{ + "name": "Python 3", + "image": "mcr.microsoft.com/devcontainers/python:3.13-bullseye", + "features": { + "ghcr.io/va-h/devcontainers-features/uv:1": {} + }, + "postCreateCommand": "bash ./devsetup.sh", + "workspaceFolder": "/workspaces/agent-framework/python/", + "customizations": { + "vscode": { + "extensions": [ + "ms-python.python", + "ms-windows-ai-studio.windows-ai-studio", + "littlefoxteam.vscode-python-test-adapter" + ] + } + } +} \ No newline at end of file diff --git a/.devcontainer/dotnet/devcontainer.json b/.devcontainer/dotnet/devcontainer.json new file mode 100644 index 0000000000..8303b031b3 --- /dev/null +++ b/.devcontainer/dotnet/devcontainer.json @@ -0,0 +1,18 @@ +{ + "name": "C# (.NET)", + "image": "mcr.microsoft.com/devcontainers/dotnet:9.0", + "features": { + "ghcr.io/devcontainers/features/dotnet:2.4.0": {}, + "ghcr.io/devcontainers/features/powershell:1.5.1": {} + }, + "workspaceFolder": "/workspaces/agent-framework/dotnet/", + "customizations": { + "vscode": { + "extensions": [ + "ms-dotnettools.csdevkit", + "vscode-icons-team.vscode-icons", + "ms-windows-ai-studio.windows-ai-studio" + ] + } + } +} \ No newline at end of file diff --git a/dotnet/.vscode/extensions.json b/dotnet/.vscode/extensions.json new file mode 100644 index 0000000000..fe812d792a --- /dev/null +++ b/dotnet/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "ms-dotnettools.csdevkit" + ] +} \ No newline at end of file diff --git a/dotnet/.vscode/settings.json b/dotnet/.vscode/settings.json new file mode 100644 index 0000000000..2a6a38bc59 --- /dev/null +++ b/dotnet/.vscode/settings.json @@ -0,0 +1,4 @@ +{ + "dotnet.defaultSolution": "agent-framework-dotnet.slnx", + "git.openRepositoryInParentFolders": "always" +} diff --git a/dotnet/.vscode/tasks.json b/dotnet/.vscode/tasks.json new file mode 100644 index 0000000000..85beec3e7a --- /dev/null +++ b/dotnet/.vscode/tasks.json @@ -0,0 +1,15 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "type": "dotnet", + "task": "build", + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [], + "label": "dotnet: build" + } + ] +} \ No newline at end of file diff --git a/python/devsetup.sh b/python/devsetup.sh new file mode 100644 index 0000000000..1f9d0d5549 --- /dev/null +++ b/python/devsetup.sh @@ -0,0 +1,10 @@ +uv python install 3.10 3.11 3.12 3.13 +# Create a virtual environment with Python 3.10 (you can change this to 3.11, 3.12 or 3.13) +PYTHON_VERSION="3.13" +uv venv --python $PYTHON_VERSION +# Install AF and all dependencies +uv sync --dev +# Install all the tools and dependencies +uv run poe install +# Install pre-commit hooks +uv run poe pre-commit-install