Files
ekzamen-samokorrektiruyusch…/README.md
T

26 lines
703 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# SelfCorrecting Agent
This repository demonstrates a minimal setup for a selfcorrecting agent using **langgraph** and **langchainopenai**.
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
```bash
# 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.
```bash
export OPENAI_API_KEY=your_api_key_here
npm start
```
The script will log the loaded modules and the response from the LLM.