sarch7040 commited on
Commit
3486cf3
·
verified ·
1 Parent(s): da9137a

Update langchain_logic/agent_setup.py

Browse files
Files changed (1) hide show
  1. langchain_logic/agent_setup.py +2 -1
langchain_logic/agent_setup.py CHANGED
@@ -1,3 +1,4 @@
 
1
  from langchain.agents import AgentExecutor, create_tool_calling_agent
2
  from langchain_core.prompts import ChatPromptTemplate
3
  from langchain_google_genai import ChatGoogleGenerativeAI
@@ -16,7 +17,7 @@ def create_agent_executor():
16
  update_appointment_record
17
  ]
18
 
19
- llm = ChatGoogleGenerativeAI(model="gemini-2.5-flash-lite-preview-06-17", temperature=0)
20
 
21
  # You can optionally update the prompt to mention the new capability
22
  prompt = ChatPromptTemplate.from_messages([
 
1
+ import os
2
  from langchain.agents import AgentExecutor, create_tool_calling_agent
3
  from langchain_core.prompts import ChatPromptTemplate
4
  from langchain_google_genai import ChatGoogleGenerativeAI
 
17
  update_appointment_record
18
  ]
19
 
20
+ llm = ChatGoogleGenerativeAI(model="gemini-2.5-flash-lite-preview-06-17", temperature=0, google_api_key=os.getenv("GOOGLE_API_KEY"))
21
 
22
  # You can optionally update the prompt to mention the new capability
23
  prompt = ChatPromptTemplate.from_messages([