Skip to content

Commit 4f38fae

Browse files
committed
rename workflows to avoid name conflcit during integration testing
Signed-off-by: Bryan Bednarski <[email protected]>
1 parent 749879a commit 4f38fae

File tree

5 files changed

+70
-63
lines changed

5 files changed

+70
-63
lines changed

examples/notebooks/adding_tools_to_agents.ipynb

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@
612612
"metadata": {},
613613
"outputs": [],
614614
"source": [
615-
"!nat workflow create retail_sales_agent"
615+
"!nat workflow create retail_sales_agent_nb3"
616616
]
617617
},
618618
{
@@ -645,7 +645,7 @@
645645
"metadata": {},
646646
"outputs": [],
647647
"source": [
648-
"%%writefile retail_sales_agent/src/retail_sales_agent/total_product_sales_data_tool.py\n",
648+
"%%writefile retail_sales_agent_nb3/src/retail_sales_agent_nb3/total_product_sales_data_tool.py\n",
649649
"from pydantic import Field\n",
650650
"\n",
651651
"from nat.builder.builder import Builder\n",
@@ -706,7 +706,7 @@
706706
"metadata": {},
707707
"outputs": [],
708708
"source": [
709-
"%%writefile retail_sales_agent/src/retail_sales_agent/sales_per_day_tool.py\n",
709+
"%%writefile retail_sales_agent_nb3/src/retail_sales_agent_nb3/sales_per_day_tool.py\n",
710710
"from pydantic import Field\n",
711711
"\n",
712712
"from nat.builder.builder import Builder\n",
@@ -770,7 +770,7 @@
770770
"metadata": {},
771771
"outputs": [],
772772
"source": [
773-
"%%writefile retail_sales_agent/src/retail_sales_agent/detect_outliers_tool.py\n",
773+
"%%writefile retail_sales_agent_nb3/src/retail_sales_agent_nb3/detect_outliers_tool.py\n",
774774
"from pydantic import Field\n",
775775
"\n",
776776
"from nat.builder.builder import Builder\n",
@@ -837,7 +837,7 @@
837837
"metadata": {},
838838
"outputs": [],
839839
"source": [
840-
"%%writefile -a retail_sales_agent/src/retail_sales_agent/register.py\n",
840+
"%%writefile -a retail_sales_agent_nb3/src/retail_sales_agent_nb3/register.py\n",
841841
"\n",
842842
"from . import sales_per_day_tool\n",
843843
"from . import detect_outliers_tool\n",
@@ -855,7 +855,7 @@
855855
"\n",
856856
"Below we show how to update the default configuration file for this new tool-calling retail sales agent with the new tools (python methods) that have been defined and registered properly.\n",
857857
"\n",
858-
"Take a moment to analyze the new `retail_sales_agent/configs/config.yml` file below, where a `functions` header has been defined and each registered tool from the previous section is listed. "
858+
"Take a moment to analyze the new `retail_sales_agent_nb3/configs/config.yml` file below, where a `functions` header has been defined and each registered tool from the previous section is listed. "
859859
]
860860
},
861861
{
@@ -864,7 +864,7 @@
864864
"metadata": {},
865865
"outputs": [],
866866
"source": [
867-
"%%writefile retail_sales_agent/configs/config.yml\n",
867+
"%%writefile retail_sales_agent_nb3/configs/config.yml\n",
868868
"llms:\n",
869869
" nim_llm:\n",
870870
" _type: nim\n",
@@ -915,7 +915,7 @@
915915
"outputs": [],
916916
"source": [
917917
"%%bash\n",
918-
"nat workflow reinstall retail_sales_agent"
918+
"nat workflow reinstall retail_sales_agent_nb3"
919919
]
920920
},
921921
{
@@ -935,7 +935,7 @@
935935
"metadata": {},
936936
"outputs": [],
937937
"source": [
938-
"!nat run --config_file=retail_sales_agent/configs/config.yml --input \"How do laptop sales compare to phone sales?\""
938+
"!nat run --config_file=retail_sales_agent_nb3/configs/config.yml --input \"How do laptop sales compare to phone sales?\""
939939
]
940940
},
941941
{
@@ -955,7 +955,7 @@
955955
"metadata": {},
956956
"outputs": [],
957957
"source": [
958-
"!nat run --config_file=retail_sales_agent/configs/config.yml --input \"What were the laptop sales on February 16th 2024?\""
958+
"!nat run --config_file=retail_sales_agent_nb3/configs/config.yml --input \"What were the laptop sales on February 16th 2024?\""
959959
]
960960
},
961961
{
@@ -975,7 +975,7 @@
975975
"metadata": {},
976976
"outputs": [],
977977
"source": [
978-
"!nat run --config_file=retail_sales_agent/configs/config.yml --input \"What were the outliers in 'Revenue'?\""
978+
"!nat run --config_file=retail_sales_agent_nb3/configs/config.yml --input \"What were the outliers in 'Revenue'?\""
979979
]
980980
},
981981
{
@@ -1012,7 +1012,7 @@
10121012
"metadata": {},
10131013
"outputs": [],
10141014
"source": [
1015-
"%%writefile retail_sales_agent/src/retail_sales_agent/retail_sales_rag_tool.py\n",
1015+
"%%writefile retail_sales_agent_nb3/src/retail_sales_agent_nb3/retail_sales_rag_tool.py\n",
10161016
"import logging\n",
10171017
"import os\n",
10181018
"\n",
@@ -1103,7 +1103,7 @@
11031103
"metadata": {},
11041104
"outputs": [],
11051105
"source": [
1106-
"%%writefile -a retail_sales_agent/src/retail_sales_agent/register.py\n",
1106+
"%%writefile -a retail_sales_agent_nb3/src/retail_sales_agent_nb3/register.py\n",
11071107
"\n",
11081108
"from . import retail_sales_rag_tool"
11091109
]
@@ -1148,7 +1148,7 @@
11481148
"metadata": {},
11491149
"outputs": [],
11501150
"source": [
1151-
"%%writefile retail_sales_agent/configs/config_rag.yml\n",
1151+
"%%writefile retail_sales_agent_nb3/configs/config_rag.yml\n",
11521152
"llms:\n",
11531153
" nim_llm:\n",
11541154
" _type: nim\n",
@@ -1216,7 +1216,7 @@
12161216
"metadata": {},
12171217
"outputs": [],
12181218
"source": [
1219-
"!nat run --config_file=retail_sales_agent/configs/config_rag.yml \\\n",
1219+
"!nat run --config_file=retail_sales_agent_nb3/configs/config_rag.yml \\\n",
12201220
" --input \"What is the Ark S12 Ultra tablet and what are its specifications?\""
12211221
]
12221222
},

examples/notebooks/mcp_setup_and_integration.ipynb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,12 @@
303303
" print(\" - Enter a branch name (e.g., 'develop', 'main') to clone and install\")\n",
304304
" print(\"=\" * 60)\n",
305305
"\n",
306-
" branch_name = os.getenv(\"NAT_NOTEBOOK_INSTALL_MODE\", \"\").strip()\n",
307-
" if not branch_name:\n",
306+
" from IPython.core.error import StdinNotImplementedError\n",
307+
" try:\n",
308308
" branch_name = input(\"\\nEnter your choice: \").strip()\n",
309+
" except StdinNotImplementedError:\n",
310+
" branch_name = 'local'\n",
311+
" print(f\"\\nNo input available. Defaulting to branch: {branch_name}\")\n",
309312
"\n",
310313
" # Default to 'main' if empty\n",
311314
" if not branch_name:\n",

examples/notebooks/multi_agent_orchestration.ipynb

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@
622622
"metadata": {},
623623
"outputs": [],
624624
"source": [
625-
"!nat workflow create retail_sales_agent"
625+
"!nat workflow create retail_sales_agent_nb5"
626626
]
627627
},
628628
{
@@ -648,7 +648,7 @@
648648
},
649649
"outputs": [],
650650
"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",
652652
"from pydantic import Field\n",
653653
"\n",
654654
"from nat.builder.builder import Builder\n",
@@ -707,7 +707,7 @@
707707
},
708708
"outputs": [],
709709
"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",
711711
"from pydantic import Field\n",
712712
"\n",
713713
"from nat.builder.builder import Builder\n",
@@ -769,7 +769,7 @@
769769
},
770770
"outputs": [],
771771
"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",
773773
"from pydantic import Field\n",
774774
"\n",
775775
"from nat.builder.builder import Builder\n",
@@ -834,7 +834,7 @@
834834
},
835835
"outputs": [],
836836
"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",
838838
"import logging\n",
839839
"import os\n",
840840
"\n",
@@ -928,7 +928,7 @@
928928
"metadata": {},
929929
"outputs": [],
930930
"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",
932932
"from pydantic import Field\n",
933933
"\n",
934934
"from nat.builder.builder import Builder\n",
@@ -1059,7 +1059,7 @@
10591059
"metadata": {},
10601060
"outputs": [],
10611061
"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",
10631063
"\n",
10641064
"from . import sales_per_day_tool\n",
10651065
"from . import detect_outliers_tool\n",
@@ -1123,7 +1123,7 @@
11231123
"metadata": {},
11241124
"outputs": [],
11251125
"source": [
1126-
"%%writefile retail_sales_agent/configs/config_multi_agent.yml\n",
1126+
"%%writefile retail_sales_agent_nb5/configs/config_multi_agent.yml\n",
11271127
"llms:\n",
11281128
" nim_llm:\n",
11291129
" _type: nim\n",
@@ -1261,7 +1261,7 @@
12611261
"metadata": {},
12621262
"outputs": [],
12631263
"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",
12651265
" --input \"What is the Ark S12 Ultra tablet and what are its specifications?\" \\\n",
12661266
" --input \"How do laptop sales compare to phone sales?\" \\\n",
12671267
" --input \"Plot average daily revenue\""
@@ -1314,7 +1314,7 @@
13141314
"metadata": {},
13151315
"outputs": [],
13161316
"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",
13181318
"import logging\n",
13191319
"\n",
13201320
"from pydantic import Field\n",
@@ -1370,7 +1370,7 @@
13701370
"metadata": {},
13711371
"outputs": [],
13721372
"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",
13741374
"\n",
13751375
"from . import retail_hitl_approval"
13761376
]
@@ -1391,7 +1391,7 @@
13911391
"metadata": {},
13921392
"outputs": [],
13931393
"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",
13951395
"from pydantic import Field\n",
13961396
"\n",
13971397
"from nat.builder.builder import Builder\n",
@@ -1457,7 +1457,7 @@
14571457
"metadata": {},
14581458
"outputs": [],
14591459
"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",
14611461
"\n",
14621462
"from . import graph_summarizer_tool"
14631463
]
@@ -1478,7 +1478,7 @@
14781478
"metadata": {},
14791479
"outputs": [],
14801480
"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",
14821482
"import logging\n",
14831483
"\n",
14841484
"from pydantic import Field\n",
@@ -1666,7 +1666,7 @@
16661666
"metadata": {},
16671667
"outputs": [],
16681668
"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",
16701670
"\n",
16711671
"from . import data_visualization_agent"
16721672
]
@@ -1697,7 +1697,7 @@
16971697
"metadata": {},
16981698
"outputs": [],
16991699
"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",
17011701
"llms:\n",
17021702
" nim_llm:\n",
17031703
" _type: nim\n",
@@ -1864,7 +1864,7 @@
18641864
"metadata": {},
18651865
"outputs": [],
18661866
"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",
18681868
" --input \"Plot average daily revenue\""
18691869
]
18701870
},

0 commit comments

Comments
 (0)