This example demonstrates how to connect a LangChain/LangGraph agent to ArkSim using the custom agent connector.
-
Install LangGraph and the OpenAI integration:
pip install langgraph langchain-openai
-
Set your API key:
export OPENAI_API_KEY="<your-key>"
From this example directory, run:
arksim simulate-evaluate config.yaml| File | Description |
|---|---|
custom_agent.py |
LangChain/LangGraph integration |
config.yaml |
Simulator configuration |
scenarios.json |
Simulation scenarios |