This is a simple config for a Langchain agent. It is used to configure the agent and its tools.
- Python 3.10+
- Clone the repository
git clone https://github.com/MacsDickinson/langchain-agent-config.git cd langchain-agent-config
- Create a new virtual environment
python -m venv .venv source .venv/bin/activate
- Install the requirements
pip install -r requirements.txt
- Copy the
.env.example
file to.env
and add your API keyscp .env.example .env
- Run the agent
python src/agent.py
- Install Langgraph Studio from here
- Open the root directory of the project
- The agent is configured in
characters/agent-config.json
- The agent is run in
src/agent.py
- The agent uses the
langchain-community
library to create the agent and its tools - The agent uses the
langchain-openai
library to integrate with OpenAI gpt-4o - The agent uses the
langchain-anthropic
library to integrate with Anthropic claude-3-5-sonnet - The agent uses the
pygithub
library to create the GitHub tools - The agent uses the
atlassian-python-api
library to create the Jira tools