|
622 | 622 | "metadata": {}, |
623 | 623 | "outputs": [], |
624 | 624 | "source": [ |
625 | | - "!nat workflow create retail_sales_agent" |
| 625 | + "!nat workflow create retail_sales_agent_nb5" |
626 | 626 | ] |
627 | 627 | }, |
628 | 628 | { |
|
648 | 648 | }, |
649 | 649 | "outputs": [], |
650 | 650 | "source": [ |
651 | | - "%%writefile retail_sales_agent/src/retail_sales_agent/total_product_sales_data_tool.py\n", |
| 651 | + "%%writefile retail_sales_agent_nb5/src/retail_sales_agent_nb5/total_product_sales_data_tool.py\n", |
652 | 652 | "from pydantic import Field\n", |
653 | 653 | "\n", |
654 | 654 | "from nat.builder.builder import Builder\n", |
|
707 | 707 | }, |
708 | 708 | "outputs": [], |
709 | 709 | "source": [ |
710 | | - "%%writefile retail_sales_agent/src/retail_sales_agent/sales_per_day_tool.py\n", |
| 710 | + "%%writefile retail_sales_agent_nb5/src/retail_sales_agent_nb5/sales_per_day_tool.py\n", |
711 | 711 | "from pydantic import Field\n", |
712 | 712 | "\n", |
713 | 713 | "from nat.builder.builder import Builder\n", |
|
769 | 769 | }, |
770 | 770 | "outputs": [], |
771 | 771 | "source": [ |
772 | | - "%%writefile retail_sales_agent/src/retail_sales_agent/detect_outliers_tool.py\n", |
| 772 | + "%%writefile retail_sales_agent_nb5/src/retail_sales_agent_nb5/detect_outliers_tool.py\n", |
773 | 773 | "from pydantic import Field\n", |
774 | 774 | "\n", |
775 | 775 | "from nat.builder.builder import Builder\n", |
|
834 | 834 | }, |
835 | 835 | "outputs": [], |
836 | 836 | "source": [ |
837 | | - "%%writefile retail_sales_agent/src/retail_sales_agent/retail_sales_rag_tool.py\n", |
| 837 | + "%%writefile retail_sales_agent_nb5/src/retail_sales_agent_nb5/retail_sales_rag_tool.py\n", |
838 | 838 | "import logging\n", |
839 | 839 | "import os\n", |
840 | 840 | "\n", |
|
928 | 928 | "metadata": {}, |
929 | 929 | "outputs": [], |
930 | 930 | "source": [ |
931 | | - "%%writefile retail_sales_agent/src/retail_sales_agent/data_visualization_tools.py\n", |
| 931 | + "%%writefile retail_sales_agent_nb5/src/retail_sales_agent_nb5/data_visualization_tools.py\n", |
932 | 932 | "from pydantic import Field\n", |
933 | 933 | "\n", |
934 | 934 | "from nat.builder.builder import Builder\n", |
|
1059 | 1059 | "metadata": {}, |
1060 | 1060 | "outputs": [], |
1061 | 1061 | "source": [ |
1062 | | - "%%writefile -a retail_sales_agent/src/retail_sales_agent/register.py\n", |
| 1062 | + "%%writefile -a retail_sales_agent_nb5/src/retail_sales_agent_nb5/register.py\n", |
1063 | 1063 | "\n", |
1064 | 1064 | "from . import sales_per_day_tool\n", |
1065 | 1065 | "from . import detect_outliers_tool\n", |
|
1123 | 1123 | "metadata": {}, |
1124 | 1124 | "outputs": [], |
1125 | 1125 | "source": [ |
1126 | | - "%%writefile retail_sales_agent/configs/config_multi_agent.yml\n", |
| 1126 | + "%%writefile retail_sales_agent_nb5/configs/config_multi_agent.yml\n", |
1127 | 1127 | "llms:\n", |
1128 | 1128 | " nim_llm:\n", |
1129 | 1129 | " _type: nim\n", |
|
1261 | 1261 | "metadata": {}, |
1262 | 1262 | "outputs": [], |
1263 | 1263 | "source": [ |
1264 | | - "!nat run --config_file retail_sales_agent/configs/config_multi_agent.yml \\\n", |
| 1264 | + "!nat run --config_file retail_sales_agent_nb5/configs/config_multi_agent.yml \\\n", |
1265 | 1265 | " --input \"What is the Ark S12 Ultra tablet and what are its specifications?\" \\\n", |
1266 | 1266 | " --input \"How do laptop sales compare to phone sales?\" \\\n", |
1267 | 1267 | " --input \"Plot average daily revenue\"" |
|
1314 | 1314 | "metadata": {}, |
1315 | 1315 | "outputs": [], |
1316 | 1316 | "source": [ |
1317 | | - "%%writefile retail_sales_agent/src/retail_sales_agent/retail_hitl_approval.py\n", |
| 1317 | + "%%writefile retail_sales_agent_nb5/src/retail_sales_agent_nb5/retail_hitl_approval.py\n", |
1318 | 1318 | "import logging\n", |
1319 | 1319 | "\n", |
1320 | 1320 | "from pydantic import Field\n", |
|
1370 | 1370 | "metadata": {}, |
1371 | 1371 | "outputs": [], |
1372 | 1372 | "source": [ |
1373 | | - "%%writefile -a retail_sales_agent/src/retail_sales_agent/register.py\n", |
| 1373 | + "%%writefile -a retail_sales_agent_nb5/src/retail_sales_agent_nb5/register.py\n", |
1374 | 1374 | "\n", |
1375 | 1375 | "from . import retail_hitl_approval" |
1376 | 1376 | ] |
|
1391 | 1391 | "metadata": {}, |
1392 | 1392 | "outputs": [], |
1393 | 1393 | "source": [ |
1394 | | - "%%writefile retail_sales_agent/src/retail_sales_agent/graph_summarizer_tool.py\n", |
| 1394 | + "%%writefile retail_sales_agent_nb5/src/retail_sales_agent_nb5/graph_summarizer_tool.py\n", |
1395 | 1395 | "from pydantic import Field\n", |
1396 | 1396 | "\n", |
1397 | 1397 | "from nat.builder.builder import Builder\n", |
|
1457 | 1457 | "metadata": {}, |
1458 | 1458 | "outputs": [], |
1459 | 1459 | "source": [ |
1460 | | - "%%writefile -a retail_sales_agent/src/retail_sales_agent/register.py\n", |
| 1460 | + "%%writefile -a retail_sales_agent_nb5/src/retail_sales_agent_nb5/register.py\n", |
1461 | 1461 | "\n", |
1462 | 1462 | "from . import graph_summarizer_tool" |
1463 | 1463 | ] |
|
1478 | 1478 | "metadata": {}, |
1479 | 1479 | "outputs": [], |
1480 | 1480 | "source": [ |
1481 | | - "%%writefile retail_sales_agent/src/retail_sales_agent/data_visualization_agent.py\n", |
| 1481 | + "%%writefile retail_sales_agent_nb5/src/retail_sales_agent_nb5/data_visualization_agent.py\n", |
1482 | 1482 | "import logging\n", |
1483 | 1483 | "\n", |
1484 | 1484 | "from pydantic import Field\n", |
|
1666 | 1666 | "metadata": {}, |
1667 | 1667 | "outputs": [], |
1668 | 1668 | "source": [ |
1669 | | - "%%writefile -a retail_sales_agent/src/retail_sales_agent/register.py\n", |
| 1669 | + "%%writefile -a retail_sales_agent_nb5/src/retail_sales_agent_nb5/register.py\n", |
1670 | 1670 | "\n", |
1671 | 1671 | "from . import data_visualization_agent" |
1672 | 1672 | ] |
|
1697 | 1697 | "metadata": {}, |
1698 | 1698 | "outputs": [], |
1699 | 1699 | "source": [ |
1700 | | - "%%writefile retail_sales_agent/configs/config_multi_agent_hitl.yml\n", |
| 1700 | + "%%writefile retail_sales_agent_nb5/configs/config_multi_agent_hitl.yml\n", |
1701 | 1701 | "llms:\n", |
1702 | 1702 | " nim_llm:\n", |
1703 | 1703 | " _type: nim\n", |
|
1864 | 1864 | "metadata": {}, |
1865 | 1865 | "outputs": [], |
1866 | 1866 | "source": [ |
1867 | | - "! echo \"yes\" | nat run --config_file retail_sales_agent/configs/config_multi_agent_hitl.yml \\\n", |
| 1867 | + "! echo \"yes\" | nat run --config_file retail_sales_agent_nb5/configs/config_multi_agent_hitl.yml \\\n", |
1868 | 1868 | " --input \"Plot average daily revenue\"" |
1869 | 1869 | ] |
1870 | 1870 | }, |
|
0 commit comments