azure-ai-travel-agents

Azure-SamplesMIT活跃维护

用 LangChain.js、LlamaIndex.TS 和微软 Agent Framework 编排多个 AI 智能体,通过 MCP 协作,演示可部署到 Azure 容器应用的企业级旅行应用。

A robust enterprise application sample (deployed on ACA) that leverages MCP and multiple AI agents orchestrated by Langchain.js, Llamaindex.TS and Microsoft Agent Framework.

暂无版本483star +1 / 7 天184fork同步于 2026-11-10 23:57 UTC

怎么上手

由 README 提炼,执行前请确认
/bin/bash <(curl -fsSL https://aka.ms/azure-ai-travel-agents-preview)
硬件要求按 README 说明

本地预览需运行 Phi4 14B 模型,至少 16GB 内存和现代 CPU 或 GPU;GPU 加速仅支持 macOS Apple Silicon 和 Windows 上的 NVIDIA GPU,资源不足可改用 Microsoft Foundry。

支持 Apple Silicon
下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

用 MCP 与多智能体编排的旅行助手参考应用,演示三种框架如何协作

用 LangChain.js、LlamaIndex.TS 和微软 Agent Framework 编排多个 AI 智能体,通过 MCP 协作,演示可部署到 Azure 容器应用的企业级旅行应用。

核心能力

  • 用 LangChain.js、LlamaIndex.TS 和 Microsoft Agent Framework 三套编排器
  • 把各智能体工具封装成 MCP 服务器供客户端调用
  • 提供 Python、Node.js、Java、.NET 四种语言的 MCP 服务器示例
  • 用 Docker 容器化并通过 Azure Container Apps 无服务器部署
  • 集成 OpenTelemetry 与 Aspire Dashboard 做监控

容易踩的坑

本地预览脚本会下载约 7.80 GB 的 Phi4 14B 模型,耗时较长;需在 Docker Desktop 设置中手动启用 Docker Model Runner;Windows 用户需 PowerShell 7+ 且能运行 pwsh.exe。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Join Microsoft Foundry Community Discord Join Microsoft Foundry Developer Forum Announcement blog post Open project in GitHub Codespaces Build Status Node version TypeScript Java .NET Python License

    :star: To stay updated and get notified about changes, star this repo on GitHub!

    GitHub Repo stars GitHub forks GitHub watchers

    Overview • Architecture • Features • Preview locally FOR FREE • Cost estimation • Join the Community

    Animation showing the chat app in action

    Preview the application locally for free

    Overview

    The AI Travel Agents is a modular reference application that leverages multiple AI agents to enhance travel agency operations. The application demonstrates how LangChain.js, LlamaIndex.TS, and Microsoft Agent Framework can orchestrate multiple AI agents to assist employees in handling customer queries, providing destination recommendations, and planning itineraries. Multiple MCP (Model Context Protocol) servers, built with Python, Node.js, Java and .NET, are used to provide various tools and services to the agents, enabling them to work together seamlessly.

    Agent NamePurpose
    Customer Query UnderstandingExtracts key preferences from customer inquiries.
    Destination RecommendationSuggests destinations based on customer preferences.
    Itinerary PlanningCreates a detailed itinerary and travel plan.
    Echo PingEchoes back any received input (used as an MCP server example).

    High-Level Architecture

    The architecture of the AI Travel Agents application is designed to be modular and scalable:

    • All components are containerized using Docker so that they can be easily deployed and managed by Azure Container Apps.
    • All agents tools are available as MCP (Model Context Protocol) servers and are called by the MCP clients.
    • MCP servers are implemented independently using variant technologies, such as Python, Node.js, Java, and .NET.
    • Three orchestration options are available as standalone services: LangChain.js (TypeScript/Node.js), LlamaIndex.TS (TypeScript/Node.js), and Microsoft Agent Framework (Python).
    • Each orchestrator coordinates the interaction between the agents and MCP clients, allowing them to work together seamlessly.
    • The Aspire Dashboard is used to monitor the application, providing insights into the performance and behavior of the agents (through the OpenTelemetry integration).

    [!NOTE] New to the Model Context Protocol (MCP)? Check out our free MCP for Beginners guide.

    Features

    Preview the application locally for FREE

    To run and preview the application locally, we will use Docker Model Runner.

    [!IMPORTANT] The Phi4 14B model requires significant resources (at least 16GB RAM and a modern CPU or GPU) to run efficiently. GPU acceleration is only supported on macOS Apple Silicon and NVIDIA GPUs on Windows). If your machine does not have enough resources to run LLMs locally, you can still run the application using Microsoft Foundry. Please refer to the Advanced Setup documentation for more information.

    One setup script

    The script will do the following:

    • Run a check for the required tools and dependencies
    • Clone the current repository to your local machine
    • Install npm dependencies for the API and web app
    • Download the Phi4 14B model
      • This will take a while, as the model is large (around 7.80 GB)
    • Build the Docker images for all the MCP servers
    • Configure all the .env files with the correct settings for local AX

    In order to run the application locally, ensure you have the following installed before running the preview script:

    • Git (for cloning the repository)
    • Node.js (for the UI and API services)
    • Docker (for the MCP servers and using DMR - Docker Model Runner)
      • Make sure to enable the DMR in Docker Desktop settings.
    • Powershell 7+ (pwsh) - For Windows users only.
      • Important: Ensure you can run pwsh.exe from a PowerShell terminal. If this fails, you likely need to upgrade PowerShell
    /bin/bash <(curl -fsSL https://aka.ms/azure-ai-travel-agents-preview)
    
    iex "& { $(irm https://aka.ms/azure-ai-travel-agents-preview-win) }"
    

    Cost estimation

    When provisioning resources in Azure, it's important to consider the costs associated with running the application. The AI Travel Agents sample uses several Azure services, and the costs can vary based on your usage and configuration.

    Pricing varies per region and usage, so it isn't possible to predict exact costs for your usage. However, you can use the Azure pricing calculator for the resources below to get an estimate.

    • Azure Container Apps: Consumption plan, Free for the first 2M executions. Pricing per execution and memory used. Pricing
    • Azure Container Registry: Free for the first 2GB of storage. Pricing per GB stored and per GB data transferred. Pricing
    • Azure OpenAI: Standard tier, GPT model. Pricing per 1M tokens used, and at least 1K tokens are used per query. Pricing
    • Azure Monitor: Free for the first 5GB of data ingested. Pricing per GB ingested after that. Pricing

    [!IMPORTANT] To avoid unnecessary costs, remember to take down your app if it's no longer in use, either by deleting the resource group in the Portal or running azd down --purge (see Clean up).

    Quick deploy the sample to Azure

    1. Open a terminal and navigate to the root of the project.
    2. Authenticate with Azure by running azd auth login.
    3. Run azd up to deploy the application to Azure. This will provision Azure resources, deploy this sample, with all the containers, and set up the necessary configurations.
      • You will be prompted to select a base location for the resources. If you're unsure of which location to choose, select swedencentral.
      • By default, the OpenAI resource will be deployed to swedencentral. You can set a different location with azd env set AZURE_LOCATION <location>. Currently only a short list of locations is accepted. That location list is based on the OpenAI model availability table and may become outdated as availability changes.

    The deployment process will take a few minutes. Once it's done, you'll see the URL of the web app in the terminal.

    You can now open the web app in your browser and start chatting with the bot.

    Clean up

    To clean up all the Azure resources created by this sample:

    1. Run azd down --purge
    2. When asked if you are sure you want to continue, enter y

    The resource group and all the resources will be deleted.

    Advanced Setup

    To run the application in a more advanced local setup or deploy to Azure, please refer to the troubleshooting guide in the Advanced Setup documentation. This includes setting up the Azure Container Apps environment, using local LLM providers, configuring the services, and deploying the application to Azure.

    Contributing

    We welcome contributions to the AI Travel Agents project! If you have suggestions, bug fixes, or new features, please feel free to submit a pull request. For more information on contributing, please refer to the CONTRIBUTING.md file.

    Join the Community

    We encourage you to join our Microsoft Foundry Developer Community​ to share your experiences, ask questions, and get support: