LangGraph.Agent.Templates
1.0.0
dotnet new install LangGraph.Agent.Templates@1.0.0
LangGraph Agent Templates for .NET
This repository provides a native .NET Template for bootstrapping LangGraph agents. It allows you to scaffold high-quality Python agents with built-in visualization and testing using familiar dotnet new commands.
✨ Features
- Multi-Agent Support: Choose between different agent types (e.g.,
calculator,chatbot). - Local HTML Visualization: Automatically generates an interactive
graph.htmlusing Mermaid.js. - Integrated Testing: Every scaffolded project includes a pre-configured
pytestsuite. - Mock LLM Included: Start developing and testing locally without requiring an API key.
🚀 Getting Started
1. Installation
Install the template package from this repository:
# From the root of this repository
dotnet new install ./Agent.Templates
Note: The package identity is now LangGraph.Agent.Templates.
2. Scaffold an Agent
Create a new agent project:
Calculator Agent (Default)
dotnet new agent -n MyMathAgent
Simple ChatBot
dotnet new agent -n MyBot --AgentType chatbot
3. Run and Visualize
cd MyMathAgent
python main.py
This will run the agent logic, execute the automated tests, and automatically open the Local HTML Visualization in your browser.
🛠️ Development
To update the template locally:
- Modify files in
Agent.Templates/Python/LangGraph/content/. - Re-pack and install:
dotnet new uninstall Agent.Templates dotnet new install ./Agent.Templates
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 243 | 2/1/2026 |