Skip to content

langwatch/create-agent-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create Agent App

PRs Welcome

This repository contains the same agent examples written in several different frameworks, so you can compare them side by side and use it as a template for starting a new project.

Running the examples

Clone this repo and navigate to any of the examples:

git clone https://github.com/langwatch/create-agent-app.git
cd create-agent-app
cd inspect_ai_example # or any other example

Install the dependencies:

# Python Agent
uv sync --all-groups

# TypeScript Agent
npm install

Run the tests to see the agent in action:

# Python Agent
uv run pytest -s tests/test_customer_support_agent.py

# TypeScript Agent
npm test

Or enter the debug mode to chat with the agent yourself:

# Python Agent
uv run pytest -s tests/test_customer_support_agent.py --debug

# TypeScript Agent
npm run dev

Frameworks

In alphabetical order:

Python Python

Framework Customer Support Agent Vibe Coding Agent
Agno Code | Test | Trace
DSPy Code | Test
Google ADK Code | Test
InspectAI Code | Test
LangGraph (High-level API) Code | Test
Letta Code
No Framework (litellm, function_schema utility and a loop) Code | Test
Pydantic AI Code | Test Code | Test
smolagents Code | Test

TypeScript TypeScript

Framework Customer Support Agent Vibe Coding Agent
Ax Code | Test
Inngest AgentKit Code | Test
LangGraph.js Code | Test | UI | Trace
Mastra Code | Test | UI | Trace
Pure JavaScript, zero dependencies (Cloudflare Workers) Code

Coming up soon (help wanted!):

  • CrewAI
  • AutoGen
  • Atomic Agents
  • OpenAI Agent SDK

All examples are using the same gemini-2.5-flash-preview-04-17 model from Google and pass the same Scenario tests which uses the same model for verification.

Feel free to open an issue and request others!

Agent Examples

The goal is to have examples that cover all the LLM workflows and Agent examples listed on the Building Effective Agents guide by Anthropic, as those are real practical examples of what's actually mostly being built with LLMs right now.

  • Agent: Tools Loop
    • Customer Support Agent (all frameworks)
    • Vibe Coding Agent (implemented in: pydantic ai, others pending)
    • Deep Search MCP Agent
  • Workflow: Prompt Chaining
    • Marketing Copy with Translation
    • Document Outline Writing
  • Workflow: Routing
    • Customer Service Querying
    • Hard/easy question routing
  • Workflow: Parallelization
    • Code Vulnerability Voting
    • Content Flagging Voting
  • Workflow: Orchestrator-workers
    • Architect-Developer Code Changes
    • Multi-Source Searching
  • Workflow: Evaluator-optimizer
    • Literaly Translation
    • Multi-Round Searching

Looking for Contributions

I am looking for contributors to help me expand this repo, both for adding new examples and new frameworks.

If you want to add a new framework example, copy one of the existing ones (e.g. langgraph_highlevel_api_example) and adapt the as much use cases you can to the new framework. They just need to follow a couple rules:

  • The example are made to be completely self-contained, and the code readable without jumping through hoops, so we copy and paste the prompts and the tests to each. The only code in the common package are those simulating external system connections and data that need to be replaced by the user's own system anyway.

  • The examples should look as close to each other as possible, with the same features, changing only in the philosophical approach that each framework has. The examples are not meant to advertise features.

If you want to add a new use case example, pick one of the list and start with a framework that you are most familiar with, try to follow the same simplicity approach as the other examples, if it's a brand new use case, this will define how all the other framework examples will be written, so it's good to have in mind what valuable distinct complexities this use case will show. Join our Discord if you want to debate the idea.

If you have a request open an issue so contributors can help!

License

MIT

About

Helping you select an AI agent framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 8