Self‑Correcting Agent

This repository demonstrates a minimal setup for a self‑correcting agent using langgraph and langchain‑openai.
The project includes:

  • package.json – declares the required dependencies and a start script.
  • src/index.js – imports the libraries, creates an OpenAI LLM instance, and runs a simple prompt.

Setup

# Install dependencies
npm install

# Run the example
npm start

Note

: To get a real response from the OpenAI API, set the OPENAI_API_KEY environment variable before running the script.

export OPENAI_API_KEY=your_api_key_here
npm start

The script will log the loaded modules and the response from the LLM.

S
Description
BroJS: Повторный экзамен: Граф с рефлексией и доработкой
Readme MIT
673 KiB
0 Stars 1 Watchers 0 Forks
Languages
Python 51.9%
JavaScript 39.3%
TypeScript 8.8%