Skip to content

prettywiredbuilds/naive-memory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Naive Memory

A basic Python agent built with the Anthropic SDK that maintains conversation history across turns. Each user message is appended to a running history list, giving the model full context of prior exchanges within a session.

Prerequisites

Install the required package:

pip install anthropic

Set your API key as an environment variable:

export ANTHROPIC_API_KEY="your-api-key-here"

Run the Sample

python chat.py

Once running, type a message and press Enter to get a response. The full conversation history is printed after each turn. Type quit to exit.

Issues & Questions

If you run into any problems or have questions, please file an issue.

About

A basic conversational AI agent that maintains chat history in memory for multi-turn interactions using the Anthropic API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages