Skip to content

Commit 4a411cc

Browse files
Add notebooks to show users how to get started with the toolkit and build agents (#656)
This PR introduces a series of notebooks along with a few simple tool and agent examples to show new users how to bring an agent into the toolkit and develop new tools and agents using the toolkit. ## By Submitting this PR I confirm: - I am familiar with the [Contributing Guidelines](https://github.com/NVIDIA/NeMo-Agent-Toolkit/blob/develop/docs/source/resources/contributing.md). - We require that all contributors "sign-off" on their commits. This certifies that the contribution is your original work, or you have rights to submit it under the same license, or a compatible license. - Any contribution which contains commits that are not Signed-Off will not be accepted. - When the PR is ready for review, new or existing tests cover these changes. - When the PR is ready for review, the documentation is up to date with these changes. Authors: - https://github.com/cdgamarose-nv - Matthew Penn (https://github.com/mpenn) - Will Killian (https://github.com/willkill07) Approvers: - Matthew Penn (https://github.com/mpenn) - Will Killian (https://github.com/willkill07) URL: #656
1 parent 20e64c9 commit 4a411cc

39 files changed

+3524
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ tags
214214
deploy/compose/volumes
215215
examples/RAG/simple_rag/deploy/volumes
216216
examples/RAG/compose/volumes
217+
examples/notebooks/examples/retail_sales_agent/deploy/volumes/
217218

218219
# Mac Metadata
219220
**/*.DS_Store

ci/scripts/copyright.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
re.compile(r"PULL_REQUEST_TEMPLATE.md"), # Ignore the PR template,
5353
re.compile(r"[^ \/\n]*conda/environments/.*\.yaml$"), # Ignore generated environment files
5454
re.compile(r"^LICENSE\.md$"), # Ignore the license file itself
55+
re.compile(r"^examples/.*/data/.*.md$"), # Ignore data files in examples
5556
]
5657

5758
# this will break starting at year 10000, which is probably OK :)

ci/scripts/github/checks.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ set -e
1919
GITHUB_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
2020

2121
source ${GITHUB_SCRIPT_DIR}/common.sh
22+
get_lfs_files
2223

2324
create_env group:dev group:docs extra:examples
2425

ci/scripts/path_checks.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,20 @@
9494
"copy/paste",
9595
"edit/score",
9696
"file/console",
97+
"files/functions",
9798
"I/O",
9899
"Input/Observation",
99100
"input/output",
100101
"inputs/outputs",
101102
"JavaScript/TypeScript",
102103
"JSON/YAML",
104+
"LTE/5G",
103105
"output/jobs/job_",
104106
"predictions/forecasts",
105107
"provider/method.",
106108
"RagaAI/Catalyst",
107109
"read/write",
110+
"run/host",
108111
"run/serve",
109112
"search/edit/score/select",
110113
"size/time",
@@ -141,6 +144,11 @@
141144
r"^examples/evaluation_and_profiling/simple_web_query_eval/.*configs/eval_upload.yml",
142145
r"^input/langsmith.json",
143146
),
147+
# ignore notebook-relative paths
148+
(
149+
r"^examples/notebooks/retail_sales_agent/.*configs/",
150+
r"^\./retail_sales_agent/data/",
151+
),
144152
# ignore generated files
145153
(
146154
r"^docs/",
@@ -209,7 +217,7 @@
209217
}
210218

211219
# File extensions to check paths
212-
EXTENSIONS: tuple[str, ...] = ('.md', '.rst', '.yml', '.yaml', '.json', '.toml', '.ini', '.conf', '.cfg')
220+
EXTENSIONS: tuple[str, ...] = ('.ipynb', '.md', '.rst', '.yml', '.yaml', '.json', '.toml', '.ini', '.conf', '.cfg')
213221

214222
URI_OR_PATH_REGEX = re.compile(r'((([^:/?# ]+):)?(//([^/?# ]*))([^?# ]*)(\?([^# ]*))?(#([^ ]*))?'
215223
r'|(\.?\.?/?)(([^ \t`=\'"]+/)+[^ \t`=\'"]+))')

examples/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Each NVIDIA NeMo Agent toolkit example demonstrates a particular feature or use
3333
- [Human In The Loop (HITL)](#human-in-the-loop-hitl)
3434
- [Memory](#memory)
3535
- [Model Context Protocol (MCP)](#model-context-protocol-mcp)
36+
- [Notebooks](#notebooks)
3637
- [Object Store](#object-store)
3738
- [Observability](#observability)
3839
- [Retrieval Augmented Generation (RAG)](#retrieval-augmented-generation-rag)
@@ -92,6 +93,10 @@ To run the examples, install the NeMo Agent toolkit from source, if you haven't
9293
### Model Context Protocol (MCP)
9394
- **[`simple_calculator_mcp`](MCP/simple_calculator_mcp/README.md)**: Demonstrates Model Context Protocol support using the basic simple calculator example
9495

96+
### Notebooks
97+
- **[`first_search_agent`](notebooks/first_search_agent/)**: Demonstrates how to bring an existing agent from a framework like LangChain into this toolkit
98+
- **[`retail_sales_agent`](notebooks/retail_sales_agent/)**: A simple retail agent that showcases how to incrementally add tools and agents to build a multi-agent system
99+
95100
### Object Store
96101
- **[`user_report`](object_store/user_report/README.md)**: User report generation and storage system using object store (S3, MySQL, and/or memory)
97102

0 commit comments

Comments
 (0)