A collection of NestJS AI examples.
observation- OpenTelemetry observation sample
agentic-patterns/chain-workflow- A chain workflow that processes steps sequentiallyagentic-patterns/parallelization-workflow- A workflow that runs independent work in parallelagentic-patterns/routing-workflow- A workflow that classifies input and routes it to the right pathagentic-patterns/orchestrator-workers- A workflow where an orchestrator breaks work apart and workers run in parallelagentic-patterns/evaluator-optimizer- A workflow that repeats generation and evaluation
advisors/recursive-advisor-demo- A recursive tool-calling workflow using the built-inToolCallAdvisorwith a custom logging advisoradvisors/evaluation-recursive-advisor-demo- A recursive judge-and-refine workflow with Anthropic and Ollama
model-context-protocol/sampling/mcp-sampling-server- An MCP server that fetches weather data and delegates poem generation through samplingmodel-context-protocol/sampling/mcp-sampling-client- An MCP sampling client that routes server sampling requests to OpenAI and Anthropicmodel-context-protocol/sampling/annotations- Decorator-based MCP sampling examples with runnable server and client variantsmodel-context-protocol/sampling/annotations/mcp-sampling-server-annotations- A decorator-based MCP sampling server that uses@McpToolmodel-context-protocol/sampling/annotations/mcp-sampling-client-annotations- A decorator-based MCP sampling client that routes requests by model hintmodel-context-protocol/sqlite/simple- A predefined-question SQLite sample that runs through the database analysis flowmodel-context-protocol/sqlite/chatbot- An interactive SQLite chatbot that discovers MCP tools from a local SQLite servermodel-context-protocol/brave- A predefined-question Brave Search sample that discovers MCP tools from stdio configmodel-context-protocol/brave-docker-agents-gateway- A predefined-question Brave Search sample that connects through Docker MCP Gatewaymodel-context-protocol/client-starter/starter-default-client- A starter MCP client sample that asks a predefined question through stdio tools
- Each sample runs independently from its own directory.
- The examples in this repository were adapted from the original spring-ai-examples repository.