This sample demonstrates a LangGraph Agent application deployed with Defang. You can customize the agent's tools as needed. For example, it includes a Tavily Search tool for performing search queries, which requires a TAVILY_API_KEY
(see Configuration for setup details).
- Download Defang CLI
- (Optional) If you are using Defang BYOC authenticate with your cloud provider account
- (Optional for local development) Docker CLI
To run the application locally, you can use the following command:
docker compose -f compose.dev.yaml up --build
For this sample, you will need to provide the following configuration:
Note that if you are using the 1-click deploy option, you can set these values as secrets in your GitHub repository and the action will automatically deploy them for you.
A Tavily API key for accessing Tavily Search.
defang config set TAVILY_API_KEY
Note
Download Defang CLI
Deploy your application to the Defang Playground by opening up your terminal and typing:
defang compose up
If you want to deploy to your own cloud account, you can use Defang BYOC.
Title: Agentic LangGraph
Short Description: A LangGraph Agent application that can use tools, deployed with Defang.
Tags: Agent, LangGraph, LangChain, AI, OpenAI, Tavily
Languages: TypeScript