FetchedTranscript(snippets=[FetchedTranscriptSnippet(text='Deep agents are a type of agent that', start=0.32, duration=3.599), FetchedTranscriptSnippet(text='complete tasks over longer time', start=2.159, duration=3.921), FetchedTranscriptSnippet(text='horizons. This is the architecture that', start=3.919, duration=4.801), FetchedTranscriptSnippet(text='agents like Claude Code, Manis, and Deep', start=6.08, duration=5.04), FetchedTranscriptSnippet(text='Research use to complete their task. In', start=8.72, duration=4.48), FetchedTranscriptSnippet(text="this video, we'll be creating a research", start=11.12, duration=4.88), FetchedTranscriptSnippet(text='deep agent in Typescript. One that can', start=13.2, duration=5.52), FetchedTranscriptSnippet(text='go out, do web searches, and synthesize', start=16.0, duration=5.439), FetchedTranscriptSnippet(text='that information in a cohesive report.', start=18.72, duration=5.04), FetchedTranscriptSnippet(text='All done through our new deep research', start=21.439, duration=5.121), FetchedTranscriptSnippet(text='typescript library. And so in this video', start=23.76, duration=5.359), FetchedTranscriptSnippet(text='we will be creating a TypeScriptbased', start=26.56, duration=5.44), FetchedTranscriptSnippet(text='research agent and connect it to this', start=29.119, duration=5.841), FetchedTranscriptSnippet(text='deep agent UI. We will see the agent', start=32.0, duration=6.64), FetchedTranscriptSnippet(text='populate with tools, tasks and different', start=34.96, duration=6.4), FetchedTranscriptSnippet(text='sub aents as well.', start=38.64, duration=4.48), FetchedTranscriptSnippet(text='Before we start jumping into the code, I', start=41.36, duration=3.68), FetchedTranscriptSnippet(text='want to talk about how deep agents are', start=43.12, duration=3.599), FetchedTranscriptSnippet(text='different from the agent structures that', start=45.04, duration=3.999), FetchedTranscriptSnippet(text="you've seen in the past. So deep agents", start=46.719, duration=5.201), FetchedTranscriptSnippet(text='are built on top of the React agent', start=49.039, duration=4.561), FetchedTranscriptSnippet(text="structure that you've probably heard", start=51.92, duration=4.319), FetchedTranscriptSnippet(text='about in the past. In a React agent, an', start=53.6, duration=5.599), FetchedTranscriptSnippet(text='LLM performs an action on an input and', start=56.239, duration=5.361), FetchedTranscriptSnippet(text='uses the observation to reason and act', start=59.199, duration=5.04), FetchedTranscriptSnippet(text='again in a loop. Now this works', start=61.6, duration=4.24), FetchedTranscriptSnippet(text='brilliantly when you have a short', start=64.239, duration=4.081), FetchedTranscriptSnippet(text='execution sessions. But as context and', start=65.84, duration=4.88), FetchedTranscriptSnippet(text='planning gets larger, we need a', start=68.32, duration=4.72), FetchedTranscriptSnippet(text='different framework. Now this is where', start=70.72, duration=4.719), FetchedTranscriptSnippet(text='deep agents come into play. Deep agents', start=73.04, duration=4.16), FetchedTranscriptSnippet(text='are different due to four primary', start=75.439, duration=4.401), FetchedTranscriptSnippet(text='components. The first is that they have', start=77.2, duration=4.48), FetchedTranscriptSnippet(text='a planning tool. They have an overall', start=79.84, duration=4.4), FetchedTranscriptSnippet(text='tool that helps them plan and understand', start=81.68, duration=5.04), FetchedTranscriptSnippet(text='what needs to happen next. The next is', start=84.24, duration=4.48), FetchedTranscriptSnippet(text='that they have access to a file system', start=86.72, duration=4.719), FetchedTranscriptSnippet(text='to offload context and information at an', start=88.72, duration=4.96), FetchedTranscriptSnippet(text='organized manner. It prevents the agent', start=91.439, duration=4.0), FetchedTranscriptSnippet(text='from accumulating too much information', start=93.68, duration=3.92), FetchedTranscriptSnippet(text='in its context window. We saw that', start=95.439, duration=4.32), FetchedTranscriptSnippet(text='earlier in our deep agents UI. And the', start=97.6, duration=4.479), FetchedTranscriptSnippet(text='last two is that the first is that it', start=99.759, duration=5.761), FetchedTranscriptSnippet(text='has access to sub aents. Sub agents are', start=102.079, duration=5.601), FetchedTranscriptSnippet(text='specialized agents that can carry out a', start=105.52, duration=4.959), FetchedTranscriptSnippet(text='specific task. So, as shown earlier, a', start=107.68, duration=4.64), FetchedTranscriptSnippet(text='sub agent could be a research sub agent', start=110.479, duration=4.401), FetchedTranscriptSnippet(text='or a critique sub agent. And the last is', start=112.32, duration=5.04), FetchedTranscriptSnippet(text='that it has a very detailed system', start=114.88, duration=4.08), FetchedTranscriptSnippet(text="prompt that you'll see later in this", start=117.36, duration=3.119), FetchedTranscriptSnippet(text='video.', start=118.96, duration=3.199), FetchedTranscriptSnippet(text="Let's dive into the code. So, we can", start=120.479, duration=3.121), FetchedTranscriptSnippet(text='start by heading over to the deep', start=122.159, duration=3.92), FetchedTranscriptSnippet(text='agents.js repository and cloning it', start=123.6, duration=5.04), FetchedTranscriptSnippet(text='locally.', start=126.079, duration=4.24), FetchedTranscriptSnippet(text="Now that we're in the terminal, we can", start=128.64, duration=3.599), FetchedTranscriptSnippet(text="clone the repository that we've fetched", start=130.319, duration=4.801), FetchedTranscriptSnippet(text='earlier. We can head into it and in the', start=132.239, duration=5.36), FetchedTranscriptSnippet(text="repository we've created an examples", start=135.12, duration=4.72), FetchedTranscriptSnippet(text='folder. In the examples folder we can', start=137.599, duration=4.801), FetchedTranscriptSnippet(text='head into research where we have our', start=139.84, duration=4.96), FetchedTranscriptSnippet(text='langraph.json file which will be used to', start=142.4, duration=5.199), FetchedTranscriptSnippet(text='run our langraph server later on. Now', start=144.8, duration=4.32), FetchedTranscriptSnippet(text='the first thing we want to do is we want', start=147.599, duration=4.081), FetchedTranscriptSnippet(text='to create a environment file. In the', start=149.12, duration=4.479), FetchedTranscriptSnippet(text='environment file we need to add two', start=151.68, duration=4.72), FetchedTranscriptSnippet(text='things for our example. We need to add a', start=153.599, duration=5.28), FetchedTranscriptSnippet(text='Tilli API key which is our web search', start=156.4, duration=6.24), FetchedTranscriptSnippet(text='provider and we need to add the LM', start=158.879, duration=6.961), FetchedTranscriptSnippet(text='provider which is the anthropic API key.', start=162.64, duration=6.0), FetchedTranscriptSnippet(text='Now add your own keys there. And once', start=165.84, duration=5.44), FetchedTranscriptSnippet(text="that's done, exit. And now what you're", start=168.64, duration=4.72), FetchedTranscriptSnippet(text='ready to do is actually install and', start=171.28, duration=6.48), FetchedTranscriptSnippet(text="build. So let's yarn install and yarn", start=173.36, duration=6.0), FetchedTranscriptSnippet(text='build.', start=177.76, duration=4.88), FetchedTranscriptSnippet(text='And you are ready to go.', start=179.36, duration=5.36), FetchedTranscriptSnippet(text="So let's dive into the code. This is the", start=182.64, duration=4.319), FetchedTranscriptSnippet(text='research agent.ts file that I mentioned', start=184.72, duration=4.96), FetchedTranscriptSnippet(text='in the examples research folder earlier.', start=186.959, duration=4.481), FetchedTranscriptSnippet(text='Now everything in this file is built', start=189.68, duration=4.479), FetchedTranscriptSnippet(text='around the create deep agent function.', start=191.44, duration=5.2), FetchedTranscriptSnippet(text='This is what instantiates the deep agent', start=194.159, duration=4.401), FetchedTranscriptSnippet(text='which you can then either invoke or', start=196.64, duration=3.679), FetchedTranscriptSnippet(text='start the langraph server and connect', start=198.56, duration=4.24), FetchedTranscriptSnippet(text='to. Now when you create a deep agent you', start=200.319, duration=4.801), FetchedTranscriptSnippet(text='need to provide it a list of tools, a', start=202.8, duration=4.799), FetchedTranscriptSnippet(text='list of instructions and optionally a', start=205.12, duration=5.6), FetchedTranscriptSnippet(text='list of sub aents. Now the instructions', start=207.599, duration=5.041), FetchedTranscriptSnippet(text='is what I had mentioned earlier about', start=210.72, duration=4.239), FetchedTranscriptSnippet(text='the detailed research instructions that', start=212.64, duration=5.28), FetchedTranscriptSnippet(text='guide all of the agents and sub aents.', start=214.959, duration=4.801), FetchedTranscriptSnippet(text='So in it we obviously have the', start=217.92, duration=3.28), FetchedTranscriptSnippet(text='description. So we are telling it that', start=219.76, duration=3.44), FetchedTranscriptSnippet(text="it's an expert researcher and then we", start=221.2, duration=3.759), FetchedTranscriptSnippet(text='have guidelines about creating that', start=223.2, duration=4.64), FetchedTranscriptSnippet(text='overall research brief and we even have', start=224.959, duration=5.84), FetchedTranscriptSnippet(text='ways to answer questions and list', start=227.84, duration=6.8), FetchedTranscriptSnippet(text='topics. Now above it what we have is we', start=230.799, duration=6.401), FetchedTranscriptSnippet(text='have the list of sub aents. So the', start=234.64, duration=4.959), FetchedTranscriptSnippet(text='research sub aent can be found here and', start=237.2, duration=4.48), FetchedTranscriptSnippet(text='what you need to create any sub aent is', start=239.599, duration=5.441), FetchedTranscriptSnippet(text='a name, a description, a prompt and a', start=241.68, duration=5.68), FetchedTranscriptSnippet(text='list of tools it has access to. So this', start=245.04, duration=4.88), FetchedTranscriptSnippet(text='is a prompt for the researcher sub aent', start=247.36, duration=4.959), FetchedTranscriptSnippet(text='which is a dedicated researcher and has', start=249.92, duration=4.959), FetchedTranscriptSnippet(text='access to the internet search tool to', start=252.319, duration=5.841), FetchedTranscriptSnippet(text='use to villi. Now beneath it we have the', start=254.879, duration=5.6), FetchedTranscriptSnippet(text='subcritique prompt which is the prompt', start=258.16, duration=5.44), FetchedTranscriptSnippet(text='that is given to the sub agent in order', start=260.479, duration=6.321), FetchedTranscriptSnippet(text='to go and critique that final report', start=263.6, duration=6.08), FetchedTranscriptSnippet(text='once it has been created. So now now', start=266.8, duration=4.88), FetchedTranscriptSnippet(text="that you have this structure we're ready", start=269.68, duration=4.0), FetchedTranscriptSnippet(text='to run the langraph server. So we can', start=271.68, duration=4.0), FetchedTranscriptSnippet(text='come over here to our terminal and we', start=273.68, duration=5.12), FetchedTranscriptSnippet(text='can run the command to run our langraph', start=275.68, duration=5.76), FetchedTranscriptSnippet(text='server which is npx langchain langraph', start=278.8, duration=5.92), FetchedTranscriptSnippet(text='cli dev. Now once we run it, the', start=281.44, duration=5.44), FetchedTranscriptSnippet(text='langraph server is running and we are', start=284.72, duration=5.6), FetchedTranscriptSnippet(text='ready to create the deep agents UI. We', start=286.88, duration=5.2), FetchedTranscriptSnippet(text='can head over to the deep agents UI', start=290.32, duration=5.12), FetchedTranscriptSnippet(text='GitHub package and get the link to clone', start=292.08, duration=5.92), FetchedTranscriptSnippet(text='here as well. So back in the terminal,', start=295.44, duration=4.72), FetchedTranscriptSnippet(text='we can start by cloning the repository', start=298.0, duration=4.8), FetchedTranscriptSnippet(text='for the deep agents UI. We can head into', start=300.16, duration=5.44), FetchedTranscriptSnippet(text='the repo here. And the first thing we', start=302.8, duration=4.64), FetchedTranscriptSnippet(text='want to do is we actually want a yard', start=305.6, duration=4.0), FetchedTranscriptSnippet(text='install. So we can install all of the', start=307.44, duration=4.4), FetchedTranscriptSnippet(text='required dependencies. After this what', start=309.6, duration=3.52), FetchedTranscriptSnippet(text="we're going to do is that we are going", start=311.84, duration=3.84), FetchedTranscriptSnippet(text='to create a environment file and in that', start=313.12, duration=5.519), FetchedTranscriptSnippet(text='environment file we need to specify two', start=315.68, duration=5.12), FetchedTranscriptSnippet(text='different things. We need to specify', start=318.639, duration=4.481), FetchedTranscriptSnippet(text='where our langraph server is and we also', start=320.8, duration=4.64), FetchedTranscriptSnippet(text='need to specify the name of the agent', start=323.12, duration=4.079), FetchedTranscriptSnippet(text="that we're creating. So let's create", start=325.44, duration=4.8), FetchedTranscriptSnippet(text='that environment file right there. And', start=327.199, duration=5.84), FetchedTranscriptSnippet(text="let's get go into the environment file", start=330.24, duration=7.2), FetchedTranscriptSnippet(text="and let's do next public deployment URL", start=333.039, duration=7.201), FetchedTranscriptSnippet(text='so our next.js package can use it. For', start=337.44, duration=5.68), FetchedTranscriptSnippet(text='me that was on localhost 2024. And then', start=340.24, duration=5.76), FetchedTranscriptSnippet(text='we can also do next public agent ID', start=343.12, duration=4.56), FetchedTranscriptSnippet(text='which is the name of the agent that we', start=346.0, duration=4.4), FetchedTranscriptSnippet(text='created which is the research agent. Now', start=347.68, duration=5.359), FetchedTranscriptSnippet(text="that we've done that we can do npm", start=350.4, duration=5.04), FetchedTranscriptSnippet(text='rundev and our server will now be', start=353.039, duration=4.561), FetchedTranscriptSnippet(text='running on localhost 3000 ready for us', start=355.44, duration=4.4), FetchedTranscriptSnippet(text='to use. So now we have this running on', start=357.6, duration=4.48), FetchedTranscriptSnippet(text='localhost 3000 and this is the deep', start=359.84, duration=4.72), FetchedTranscriptSnippet(text='agents UI. So we can come and type that', start=362.08, duration=4.88), FetchedTranscriptSnippet(text='message. So, can you compare New York', start=364.56, duration=5.84), FetchedTranscriptSnippet(text='City in San Francisco? And we can send', start=366.96, duration=5.28), FetchedTranscriptSnippet(text="that message. So, now it's communicating", start=370.4, duration=3.76), FetchedTranscriptSnippet(text='to our Langraph server. Um, and what', start=372.24, duration=4.239), FetchedTranscriptSnippet(text="it's doing is it's writing a file. And", start=374.16, duration=4.56), FetchedTranscriptSnippet(text="so, it's using that file system to write", start=376.479, duration=4.241), FetchedTranscriptSnippet(text="what our actual question is. It's", start=378.72, duration=4.24), FetchedTranscriptSnippet(text='writing to-dos to list out the different', start=380.72, duration=5.039), FetchedTranscriptSnippet(text='tasks that needs to accomplish. And then', start=382.96, duration=5.04), FetchedTranscriptSnippet(text="it's creating these sub agents. Now,", start=385.759, duration=4.241), FetchedTranscriptSnippet(text="it's, as you can see, it's spun up that", start=388.0, duration=4.24), FetchedTranscriptSnippet(text='research sub agent that does a set of', start=390.0, duration=4.96), FetchedTranscriptSnippet(text='internal searches that goes out, finds', start=392.24, duration=4.959), FetchedTranscriptSnippet(text='different information and synthesizes', start=394.96, duration=4.16), FetchedTranscriptSnippet(text='that information that will eventually be', start=397.199, duration=3.921), FetchedTranscriptSnippet(text='critiqued by that critique sub agent.', start=399.12, duration=4.56), FetchedTranscriptSnippet(text="And so, yeah, that's it. Just to recap,", start=401.12, duration=4.56), FetchedTranscriptSnippet(text='what you need to do to get this up and', start=403.68, duration=4.0), FetchedTranscriptSnippet(text='running is you need to clone the deep', start=405.68, duration=4.48), FetchedTranscriptSnippet(text='agents JS repo, run the research agent', start=407.68, duration=5.44), FetchedTranscriptSnippet(text='example, clone the deep agents UI, run', start=410.16, duration=5.84), FetchedTranscriptSnippet(text='that UI, connect them together using the', start=413.12, duration=4.72), FetchedTranscriptSnippet(text='environmental variables, and you should', start=416.0, duration=3.599), FetchedTranscriptSnippet(text="be ready to go. Cool. I'll see you", start=417.84, duration=4.16), FetchedTranscriptSnippet(text='later.', start=419.599, duration=2.401)], video_id='qMe7P8NU6BU', language='English (auto-generated)', language_code='en', is_generated=True)