These examples use LangChain and LangGraph with the API.
Run the API locally instructions
Install the SDK locally from a separate github repo:
pip3 install swcpy@git+https://github.com/handsonapibook/api-book-part-one#
subdirectory=chapter7/complete/sdk .
Install the requirements for this project:
pip3 install -r requirements.txt
Save the value of the API key somewhere secure.
SWC_API_BASE_URL - put the value your API runs locally, probably http://0.0.0.0:8000 if it's in the Codespace
ANTHROPIC_API_KEY - put the API key from Anthropic in here.