Posts

Showing posts with the label langraph

Tavily web search using Langraph agent

Image
 Hi, In this post, we will see how to do tavily web search using langraph  1, Run the below command to create a new repository and initiating a new project. mkdir langgraph-agent cd langgraph-agent npm init -y 2, Run the below command to install dependencies # runtime npm i @langchain/core @langchain/langgraph @langchain/openai @langchain/community dotenv # dev tooling npm i -D typescript tsx @types/node 3, Create tsconfig.json  {   "compilerOptions" : {     "target" : "ES2022" ,     "module" : "NodeNext" ,     "moduleResolution" : "NodeNext" ,     "esModuleInterop" : true ,     "forceConsistentCasingInFileNames" : true ,     "strict" : true ,     "skipLibCheck" : true   } } 4, Update package.json file 5, Create .env file in the root of the repository and update the open ai api key and tavily api key 6, In root of the repository, create a new file named agent.mts and paste the ...