From b923a67af46102d8b71dbb35c4ad1d54d48d35e9 Mon Sep 17 00:00:00 2001 From: huimiu Date: Wed, 25 Mar 2026 21:22:37 +0800 Subject: [PATCH] refactor: update folder structure --- samples/hosted-agent/README.md | 20 +++++++++++-------- .../{ => agent-framework}/agent/.dockerignore | 0 .../python/{ => agent-framework}/agent/.env | 0 .../agent/.foundry/.deployment.json | 0 .../agent/.vscode/launch.json | 0 .../agent/.vscode/tasks.json | 0 .../{ => agent-framework}/agent/Dockerfile | 0 .../{ => agent-framework}/agent/README.md | 0 .../{ => agent-framework}/agent/agent.yaml | 0 .../{ => agent-framework}/agent/main.py | 0 .../agent/requirements.txt | 0 .../workflow/.dockerignore | 0 .../{ => agent-framework}/workflow/.env | 0 .../workflow/.foundry/.deployment.json | 0 .../workflow}/.vscode/launch.json | 0 .../workflow/.vscode/tasks.json | 0 .../workflow}/Dockerfile | 0 .../{ => agent-framework}/workflow/README.md | 0 .../{ => agent-framework}/workflow/agent.yaml | 0 .../{ => agent-framework}/workflow/main.py | 0 .../workflow/requirements.txt | 0 .../agent}/.dockerignore | 0 .../{langgraph-agent => langgraph/agent}/.env | 0 .../agent}/.gitignore | 0 .../agent}/.vscode/launch.json | 0 .../agent}/.vscode/tasks.json | 0 .../{workflow => langgraph/agent}/Dockerfile | 0 .../agent}/README.md | 0 .../agent}/agent.py | 0 .../agent}/agent.yaml | 0 .../agent}/langgraph.json | 0 .../agent}/main.py | 0 .../agent}/requirements.txt | 0 33 files changed, 12 insertions(+), 8 deletions(-) rename samples/hosted-agent/python/{ => agent-framework}/agent/.dockerignore (100%) rename samples/hosted-agent/python/{ => agent-framework}/agent/.env (100%) rename samples/hosted-agent/python/{ => agent-framework}/agent/.foundry/.deployment.json (100%) rename samples/hosted-agent/python/{ => agent-framework}/agent/.vscode/launch.json (100%) rename samples/hosted-agent/python/{ => agent-framework}/agent/.vscode/tasks.json (100%) rename samples/hosted-agent/python/{ => agent-framework}/agent/Dockerfile (100%) rename samples/hosted-agent/python/{ => agent-framework}/agent/README.md (100%) rename samples/hosted-agent/python/{ => agent-framework}/agent/agent.yaml (100%) rename samples/hosted-agent/python/{ => agent-framework}/agent/main.py (100%) rename samples/hosted-agent/python/{ => agent-framework}/agent/requirements.txt (100%) rename samples/hosted-agent/python/{ => agent-framework}/workflow/.dockerignore (100%) rename samples/hosted-agent/python/{ => agent-framework}/workflow/.env (100%) rename samples/hosted-agent/python/{ => agent-framework}/workflow/.foundry/.deployment.json (100%) rename samples/hosted-agent/python/{langgraph-agent => agent-framework/workflow}/.vscode/launch.json (100%) rename samples/hosted-agent/python/{ => agent-framework}/workflow/.vscode/tasks.json (100%) rename samples/hosted-agent/python/{langgraph-agent => agent-framework/workflow}/Dockerfile (100%) rename samples/hosted-agent/python/{ => agent-framework}/workflow/README.md (100%) rename samples/hosted-agent/python/{ => agent-framework}/workflow/agent.yaml (100%) rename samples/hosted-agent/python/{ => agent-framework}/workflow/main.py (100%) rename samples/hosted-agent/python/{ => agent-framework}/workflow/requirements.txt (100%) rename samples/hosted-agent/python/{langgraph-agent => langgraph/agent}/.dockerignore (100%) rename samples/hosted-agent/python/{langgraph-agent => langgraph/agent}/.env (100%) rename samples/hosted-agent/python/{langgraph-agent => langgraph/agent}/.gitignore (100%) rename samples/hosted-agent/python/{workflow => langgraph/agent}/.vscode/launch.json (100%) rename samples/hosted-agent/python/{langgraph-agent => langgraph/agent}/.vscode/tasks.json (100%) rename samples/hosted-agent/python/{workflow => langgraph/agent}/Dockerfile (100%) rename samples/hosted-agent/python/{langgraph-agent => langgraph/agent}/README.md (100%) rename samples/hosted-agent/python/{langgraph-agent => langgraph/agent}/agent.py (100%) rename samples/hosted-agent/python/{langgraph-agent => langgraph/agent}/agent.yaml (100%) rename samples/hosted-agent/python/{langgraph-agent => langgraph/agent}/langgraph.json (100%) rename samples/hosted-agent/python/{langgraph-agent => langgraph/agent}/main.py (100%) rename samples/hosted-agent/python/{langgraph-agent => langgraph/agent}/requirements.txt (100%) diff --git a/samples/hosted-agent/README.md b/samples/hosted-agent/README.md index b55ec4d..c3ca96b 100644 --- a/samples/hosted-agent/README.md +++ b/samples/hosted-agent/README.md @@ -4,11 +4,11 @@ This folder contains sample templates for building code-based **hosted agents** ## Available Templates -| Template | Python | .NET | Description | -|----------|--------|------|-------------| -| **Agent** | `python/agent` | `dotnet/agent` | A single agent with local tool execution (Seattle Hotel search demo) | -| **Workflow** | `python/workflow` | `dotnet/workflow` | A multi-agent workflow with Writer and Reviewer agents | -| **Minimal** | `python/minimal` | `dotnet/minimal` | A bare-bones Dockerfile for custom implementations | +| Template | Description | Python (Agent Framework) | Python (LangGraph) | .NET | +| ------------ | -------------------------------------------------------------------- | --------------------------------- | ------------------------ | ----------------- | +| **Agent** | A single agent with local tool execution (Seattle Hotel search demo) | `python/agent-framework/agent` | `python/langgraph/agent` | `dotnet/agent` | +| **Workflow** | A multi-agent workflow with Writer and Reviewer agents | `python/agent-framework/workflow` | — | `dotnet/workflow` | +| **Minimal** | A bare-bones Dockerfile for custom implementations | `python/minimal` | — | `dotnet/minimal` | ## Placeholder Values @@ -28,6 +28,7 @@ For the best experience creating hosted agents, we recommend using the **Microso **Install the extension:** [Microsoft Foundry for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-windows-ai-studio.windows-ai-studio) With the extension you can: + - Scaffold a new hosted agent project with your settings pre-filled - Deploy directly to Microsoft Foundry from VS Code - Test and debug agents locally before deployment @@ -38,11 +39,14 @@ With the extension you can: hosted-agent/ ├── version-manifest.json # Version and release metadata ├── python/ -│ ├── agent/ # Single agent with local tool -│ ├── workflow/ # Multi-agent workflow +│ ├── agent-framework/ +│ │ ├── agent/ # Single agent with local tool (Agent Framework) +│ │ └── workflow/ # Multi-agent workflow (Agent Framework) +│ ├── langgraph/ +│ │ └── agent/ # Single agent built with LangGraph │ └── minimal/ # Minimal Dockerfile only └── dotnet/ ├── agent/ # Single agent with local tool ├── workflow/ # Multi-agent workflow └── minimal/ # Minimal Dockerfile only -``` \ No newline at end of file +``` diff --git a/samples/hosted-agent/python/agent/.dockerignore b/samples/hosted-agent/python/agent-framework/agent/.dockerignore similarity index 100% rename from samples/hosted-agent/python/agent/.dockerignore rename to samples/hosted-agent/python/agent-framework/agent/.dockerignore diff --git a/samples/hosted-agent/python/agent/.env b/samples/hosted-agent/python/agent-framework/agent/.env similarity index 100% rename from samples/hosted-agent/python/agent/.env rename to samples/hosted-agent/python/agent-framework/agent/.env diff --git a/samples/hosted-agent/python/agent/.foundry/.deployment.json b/samples/hosted-agent/python/agent-framework/agent/.foundry/.deployment.json similarity index 100% rename from samples/hosted-agent/python/agent/.foundry/.deployment.json rename to samples/hosted-agent/python/agent-framework/agent/.foundry/.deployment.json diff --git a/samples/hosted-agent/python/agent/.vscode/launch.json b/samples/hosted-agent/python/agent-framework/agent/.vscode/launch.json similarity index 100% rename from samples/hosted-agent/python/agent/.vscode/launch.json rename to samples/hosted-agent/python/agent-framework/agent/.vscode/launch.json diff --git a/samples/hosted-agent/python/agent/.vscode/tasks.json b/samples/hosted-agent/python/agent-framework/agent/.vscode/tasks.json similarity index 100% rename from samples/hosted-agent/python/agent/.vscode/tasks.json rename to samples/hosted-agent/python/agent-framework/agent/.vscode/tasks.json diff --git a/samples/hosted-agent/python/agent/Dockerfile b/samples/hosted-agent/python/agent-framework/agent/Dockerfile similarity index 100% rename from samples/hosted-agent/python/agent/Dockerfile rename to samples/hosted-agent/python/agent-framework/agent/Dockerfile diff --git a/samples/hosted-agent/python/agent/README.md b/samples/hosted-agent/python/agent-framework/agent/README.md similarity index 100% rename from samples/hosted-agent/python/agent/README.md rename to samples/hosted-agent/python/agent-framework/agent/README.md diff --git a/samples/hosted-agent/python/agent/agent.yaml b/samples/hosted-agent/python/agent-framework/agent/agent.yaml similarity index 100% rename from samples/hosted-agent/python/agent/agent.yaml rename to samples/hosted-agent/python/agent-framework/agent/agent.yaml diff --git a/samples/hosted-agent/python/agent/main.py b/samples/hosted-agent/python/agent-framework/agent/main.py similarity index 100% rename from samples/hosted-agent/python/agent/main.py rename to samples/hosted-agent/python/agent-framework/agent/main.py diff --git a/samples/hosted-agent/python/agent/requirements.txt b/samples/hosted-agent/python/agent-framework/agent/requirements.txt similarity index 100% rename from samples/hosted-agent/python/agent/requirements.txt rename to samples/hosted-agent/python/agent-framework/agent/requirements.txt diff --git a/samples/hosted-agent/python/workflow/.dockerignore b/samples/hosted-agent/python/agent-framework/workflow/.dockerignore similarity index 100% rename from samples/hosted-agent/python/workflow/.dockerignore rename to samples/hosted-agent/python/agent-framework/workflow/.dockerignore diff --git a/samples/hosted-agent/python/workflow/.env b/samples/hosted-agent/python/agent-framework/workflow/.env similarity index 100% rename from samples/hosted-agent/python/workflow/.env rename to samples/hosted-agent/python/agent-framework/workflow/.env diff --git a/samples/hosted-agent/python/workflow/.foundry/.deployment.json b/samples/hosted-agent/python/agent-framework/workflow/.foundry/.deployment.json similarity index 100% rename from samples/hosted-agent/python/workflow/.foundry/.deployment.json rename to samples/hosted-agent/python/agent-framework/workflow/.foundry/.deployment.json diff --git a/samples/hosted-agent/python/langgraph-agent/.vscode/launch.json b/samples/hosted-agent/python/agent-framework/workflow/.vscode/launch.json similarity index 100% rename from samples/hosted-agent/python/langgraph-agent/.vscode/launch.json rename to samples/hosted-agent/python/agent-framework/workflow/.vscode/launch.json diff --git a/samples/hosted-agent/python/workflow/.vscode/tasks.json b/samples/hosted-agent/python/agent-framework/workflow/.vscode/tasks.json similarity index 100% rename from samples/hosted-agent/python/workflow/.vscode/tasks.json rename to samples/hosted-agent/python/agent-framework/workflow/.vscode/tasks.json diff --git a/samples/hosted-agent/python/langgraph-agent/Dockerfile b/samples/hosted-agent/python/agent-framework/workflow/Dockerfile similarity index 100% rename from samples/hosted-agent/python/langgraph-agent/Dockerfile rename to samples/hosted-agent/python/agent-framework/workflow/Dockerfile diff --git a/samples/hosted-agent/python/workflow/README.md b/samples/hosted-agent/python/agent-framework/workflow/README.md similarity index 100% rename from samples/hosted-agent/python/workflow/README.md rename to samples/hosted-agent/python/agent-framework/workflow/README.md diff --git a/samples/hosted-agent/python/workflow/agent.yaml b/samples/hosted-agent/python/agent-framework/workflow/agent.yaml similarity index 100% rename from samples/hosted-agent/python/workflow/agent.yaml rename to samples/hosted-agent/python/agent-framework/workflow/agent.yaml diff --git a/samples/hosted-agent/python/workflow/main.py b/samples/hosted-agent/python/agent-framework/workflow/main.py similarity index 100% rename from samples/hosted-agent/python/workflow/main.py rename to samples/hosted-agent/python/agent-framework/workflow/main.py diff --git a/samples/hosted-agent/python/workflow/requirements.txt b/samples/hosted-agent/python/agent-framework/workflow/requirements.txt similarity index 100% rename from samples/hosted-agent/python/workflow/requirements.txt rename to samples/hosted-agent/python/agent-framework/workflow/requirements.txt diff --git a/samples/hosted-agent/python/langgraph-agent/.dockerignore b/samples/hosted-agent/python/langgraph/agent/.dockerignore similarity index 100% rename from samples/hosted-agent/python/langgraph-agent/.dockerignore rename to samples/hosted-agent/python/langgraph/agent/.dockerignore diff --git a/samples/hosted-agent/python/langgraph-agent/.env b/samples/hosted-agent/python/langgraph/agent/.env similarity index 100% rename from samples/hosted-agent/python/langgraph-agent/.env rename to samples/hosted-agent/python/langgraph/agent/.env diff --git a/samples/hosted-agent/python/langgraph-agent/.gitignore b/samples/hosted-agent/python/langgraph/agent/.gitignore similarity index 100% rename from samples/hosted-agent/python/langgraph-agent/.gitignore rename to samples/hosted-agent/python/langgraph/agent/.gitignore diff --git a/samples/hosted-agent/python/workflow/.vscode/launch.json b/samples/hosted-agent/python/langgraph/agent/.vscode/launch.json similarity index 100% rename from samples/hosted-agent/python/workflow/.vscode/launch.json rename to samples/hosted-agent/python/langgraph/agent/.vscode/launch.json diff --git a/samples/hosted-agent/python/langgraph-agent/.vscode/tasks.json b/samples/hosted-agent/python/langgraph/agent/.vscode/tasks.json similarity index 100% rename from samples/hosted-agent/python/langgraph-agent/.vscode/tasks.json rename to samples/hosted-agent/python/langgraph/agent/.vscode/tasks.json diff --git a/samples/hosted-agent/python/workflow/Dockerfile b/samples/hosted-agent/python/langgraph/agent/Dockerfile similarity index 100% rename from samples/hosted-agent/python/workflow/Dockerfile rename to samples/hosted-agent/python/langgraph/agent/Dockerfile diff --git a/samples/hosted-agent/python/langgraph-agent/README.md b/samples/hosted-agent/python/langgraph/agent/README.md similarity index 100% rename from samples/hosted-agent/python/langgraph-agent/README.md rename to samples/hosted-agent/python/langgraph/agent/README.md diff --git a/samples/hosted-agent/python/langgraph-agent/agent.py b/samples/hosted-agent/python/langgraph/agent/agent.py similarity index 100% rename from samples/hosted-agent/python/langgraph-agent/agent.py rename to samples/hosted-agent/python/langgraph/agent/agent.py diff --git a/samples/hosted-agent/python/langgraph-agent/agent.yaml b/samples/hosted-agent/python/langgraph/agent/agent.yaml similarity index 100% rename from samples/hosted-agent/python/langgraph-agent/agent.yaml rename to samples/hosted-agent/python/langgraph/agent/agent.yaml diff --git a/samples/hosted-agent/python/langgraph-agent/langgraph.json b/samples/hosted-agent/python/langgraph/agent/langgraph.json similarity index 100% rename from samples/hosted-agent/python/langgraph-agent/langgraph.json rename to samples/hosted-agent/python/langgraph/agent/langgraph.json diff --git a/samples/hosted-agent/python/langgraph-agent/main.py b/samples/hosted-agent/python/langgraph/agent/main.py similarity index 100% rename from samples/hosted-agent/python/langgraph-agent/main.py rename to samples/hosted-agent/python/langgraph/agent/main.py diff --git a/samples/hosted-agent/python/langgraph-agent/requirements.txt b/samples/hosted-agent/python/langgraph/agent/requirements.txt similarity index 100% rename from samples/hosted-agent/python/langgraph-agent/requirements.txt rename to samples/hosted-agent/python/langgraph/agent/requirements.txt