Skip to content

Repository files navigation

nestjs-ai-examples

A collection of NestJS AI examples.

Projects

Observation

  • observation - OpenTelemetry observation sample

Agentic Patterns

  • agentic-patterns/chain-workflow - A chain workflow that processes steps sequentially
  • agentic-patterns/parallelization-workflow - A workflow that runs independent work in parallel
  • agentic-patterns/routing-workflow - A workflow that classifies input and routes it to the right path
  • agentic-patterns/orchestrator-workers - A workflow where an orchestrator breaks work apart and workers run in parallel
  • agentic-patterns/evaluator-optimizer - A workflow that repeats generation and evaluation

Advisors

  • advisors/recursive-advisor-demo - A recursive tool-calling workflow using the built-in ToolCallAdvisor with a custom logging advisor
  • advisors/evaluation-recursive-advisor-demo - A recursive judge-and-refine workflow with Anthropic and Ollama

Model Context Protocol

  • model-context-protocol/sampling/mcp-sampling-server - An MCP server that fetches weather data and delegates poem generation through sampling
  • model-context-protocol/sampling/mcp-sampling-client - An MCP sampling client that routes server sampling requests to OpenAI and Anthropic
  • model-context-protocol/sampling/annotations - Decorator-based MCP sampling examples with runnable server and client variants
  • model-context-protocol/sampling/annotations/mcp-sampling-server-annotations - A decorator-based MCP sampling server that uses @McpTool
  • model-context-protocol/sampling/annotations/mcp-sampling-client-annotations - A decorator-based MCP sampling client that routes requests by model hint
  • model-context-protocol/sqlite/simple - A predefined-question SQLite sample that runs through the database analysis flow
  • model-context-protocol/sqlite/chatbot - An interactive SQLite chatbot that discovers MCP tools from a local SQLite server
  • model-context-protocol/brave - A predefined-question Brave Search sample that discovers MCP tools from stdio config
  • model-context-protocol/brave-docker-agents-gateway - A predefined-question Brave Search sample that connects through Docker MCP Gateway
  • model-context-protocol/client-starter/starter-default-client - A starter MCP client sample that asks a predefined question through stdio tools

Notes

  • Each sample runs independently from its own directory.
  • The examples in this repository were adapted from the original spring-ai-examples repository.

About

A collection of practical NestJS AI examples

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages