Paperbag commited on
Commit
55f8ad2
·
1 Parent(s): e75d735

Add .cursorignore to .gitignore and load environment variables in agent.py

Browse files
Files changed (2) hide show
  1. .gitignore +2 -1
  2. agent.py +3 -0
.gitignore CHANGED
@@ -1 +1,2 @@
1
- .env
 
 
1
+ .env
2
+ .cursorignore
agent.py CHANGED
@@ -3,6 +3,9 @@ from typing import TypedDict, List, Dict, Any, Optional
3
  from langgraph.graph import StateGraph, START, END
4
  from langchain_huggingface import ChatHuggingFace, HuggingFaceEndpoint, HuggingFacePipeline
5
  from langchain_core.messages import HumanMessage, AIMessage
 
 
 
6
 
7
  # Base Hugging Face LLM used by the chat wrapper
8
  base_llm = HuggingFaceEndpoint(
 
3
  from langgraph.graph import StateGraph, START, END
4
  from langchain_huggingface import ChatHuggingFace, HuggingFaceEndpoint, HuggingFacePipeline
5
  from langchain_core.messages import HumanMessage, AIMessage
6
+ from dotenv import load_dotenv
7
+
8
+ load_dotenv()
9
 
10
  # Base Hugging Face LLM used by the chat wrapper
11
  base_llm = HuggingFaceEndpoint(