|
60 | 60 | "\n", |
61 | 61 | "We'll walk you through how to achieve this.\n", |
62 | 62 | "\n", |
63 | | - "To demonstrate this, let's say that you have the following simple LangChain/LangGraph agent that answers generic user queries about current events by performing a web search using Tavily. We will show you how to bring this agent into the NeMo-Agent-Toolkit and benefit from the configurability, resuability, and easy user experience.\n", |
| 63 | + "To demonstrate this, let's say that you have the following simple LangChain/LangGraph agent that answers generic user queries about current events by performing a web search using Tavily. We will show you how to bring this agent into the NeMo-Agent-Toolkit and benefit from the configurability, reusability, and easy user experience.\n", |
64 | 64 | "\n", |
65 | 65 | "Run the following two cells to create the LangChain/LangGraph agent and run it with an example input." |
66 | 66 | ] |
|
182 | 182 | "\n", |
183 | 183 | "The NeMo Agent toolkit provides several ways to run/host an workflow. These are called `front_end` plugins. Some examples are:\n", |
184 | 184 | "\n", |
185 | | - "console: `nat run` (or long version nat start console …). This is useful when performing local testing and debugging. It allows you to pass inputs defined as arguments directly into the workflow. This is show already in the notebook.\n", |
| 185 | + "console: `nat run` (or long version `nat start console …`). This is useful when performing local testing and debugging. It allows you to pass inputs defined as arguments directly into the workflow. This is show already in the notebook.\n", |
186 | 186 | "\n", |
187 | | - "Fastapi: `nat serve`(or long version nat start fastapi …). This is useful when hosting your workflow as a REST and websockets endpoint.\n", |
| 187 | + "FastAPI: `nat serve`(or long version `nat start fastapi …`). This is useful when hosting your workflow as a REST and WebSockets endpoint.\n", |
188 | 188 | "\n", |
189 | | - "MCP: `nat mcp` (or long version nat start mcp …). This is useful when hosting the workflow and/or any function as an MCP server\n", |
| 189 | + "MCP: `nat mcp` (or long version `nat start mcp …`). This is useful when hosting the workflow and/or any function as an MCP server\n", |
190 | 190 | "\n", |
191 | 191 | "While these are the built in front-end components, the system is extensible with new user defined front-end plugins.\n", |
192 | 192 | "\n", |
|
256 | 256 | "```python\n", |
257 | 257 | "tools = await builder.get_tools(config.tool_names, wrapper_type=LLMFrameworkEnum.LANGCHAIN)\n", |
258 | 258 | "```\n", |
259 | | - "> **Note**: This allows you to bring in tools from other frameworks like llama index as well and wrap them with langchain since you are implementing your agent in langchain.\n", |
| 259 | + "> **Note**: This allows you to bring in tools from other frameworks like LlamaIndex as well and wrap them with LangChain since you are implementing your agent in LangChain.\n", |
260 | 260 | "\n", |
261 | | - "In a similar way, you can initialize your llm by utilizing the parameters from the configuration object in the following way:\n", |
| 261 | + "In a similar way, you can initialize your LLM by utilizing the parameters from the configuration object in the following way:\n", |
262 | 262 | "```python\n", |
263 | 263 | "llm = await builder.get_llm(config.llm_name, wrapper_type=LLMFrameworkEnum.LANGCHAIN)\n", |
264 | 264 | "```" |
|
268 | 268 | "cell_type": "markdown", |
269 | 269 | "metadata": {}, |
270 | 270 | "source": [ |
271 | | - "For each tool or reusable plugin, there are potentially multiple optional parameters with default values that can be overridden. The `nat info components` command can be used to list all available parameters. For example, to list all available parameters for the LLM nim type run:\n", |
| 271 | + "For each tool or reusable plugin, there are potentially multiple optional parameters with default values that can be overridden. The `nat info components` command can be used to list all available parameters. For example, to list all available parameters for the LLM NIM type run:\n", |
272 | 272 | "\n", |
273 | 273 | "```bash\n", |
274 | 274 | "nat info components -t llm_provider -q nim\n", |
|
281 | 281 | "source": [ |
282 | 282 | "#### Reusing the Inbuilt Tavily Search Function\n", |
283 | 283 | "\n", |
284 | | - "We can also make use of some of many example functions that the toolkit provides for common use cases. In this agent example, rather than reimplementing the tavily search, we will use the inbuilt function for internet search which is built on top of LangChain/LangGraph's tavily search API. You can list available functions using the following:" |
| 284 | + "We can also make use of some of many example functions that the toolkit provides for common use cases. In this agent example, rather than reimplementing the Tavily search, we will use the inbuilt function for internet search which is built on top of LangChain/LangGraph's Tavily search API. You can list available functions using the following:" |
285 | 285 | ] |
286 | 286 | }, |
287 | 287 | { |
|
0 commit comments