Skip to content

Commit 23bd0e2

Browse files
committed
fix module resolution and config for research agent
Signed-off-by: jsun-m <91754185+jsun-m@users.noreply.github.com>
1 parent 7f9dfc0 commit 23bd0e2

3 files changed

Lines changed: 15 additions & 16 deletions

File tree

examples/frameworks/nat_ag2_demo/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ nat run --config_file examples/frameworks/nat_ag2_demo/configs/config-research.y
151151
--input "What are the latest advances in quantum computing?"
152152
```
153153

154-
This config uses the `ag2_research_team` workflow type which wraps the AG2 research agents as a NAT tool, invoked by a `react_agent` orchestrator.
154+
This config uses the `ag2_research_team` workflow type directly as the workflow, with prompts configured inline.
155155

156156
## Observability with Phoenix
157157

examples/frameworks/nat_ag2_demo/configs/config-research.yml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,14 @@ llms:
2525
temperature: 0.0
2626
max_tokens: 2048
2727

28-
functions:
29-
ag2_research:
30-
_type: nat_ag2_demo/ag2_research_team
31-
llm_name: nim_llm
32-
max_rounds: 6
33-
researcher_instructions: |
34-
You are a research specialist. Investigate the topic thoroughly.
35-
Present key facts, data, and sources in a structured format.
36-
writer_instructions: |
37-
You are a technical writer. Synthesize the researcher's findings into a
38-
clear, structured summary with: Key Findings, Analysis, and
39-
Recommendations. Keep it under 500 words.
40-
4128
workflow:
42-
_type: react_agent
29+
_type: nat_ag2_demo/ag2_research_team
4330
llm_name: nim_llm
44-
tool_names: [ag2_research]
31+
max_rounds: 6
32+
researcher_instructions: |
33+
You are a research specialist. Investigate the topic thoroughly.
34+
Present key facts, data, and sources in a structured format.
35+
writer_instructions: |
36+
You are a technical writer. Synthesize the researcher's findings into a
37+
clear, structured summary with: Key Findings, Analysis, and
38+
Recommendations. Keep it under 500 words.

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ dependencies = [
5252
# Keep sorted!!!
5353
a2a = ["nvidia-nat-a2a == {version}"]
5454
adk = ["nvidia-nat-adk == {version}"]
55+
ag2 = ["nvidia-nat-ag2 == {version}"]
5556
agno = ["nvidia-nat-agno == {version}"]
5657
app = ["nvidia-nat-app == {version}"]
5758
autogen = ["nvidia-nat-autogen == {version}"]
@@ -93,6 +94,7 @@ pii-defense = [ "nvidia-nat-core[pii-defense] == {version}" ]
9394
most = [
9495
"nvidia-nat-a2a == {version}",
9596
"nvidia-nat-adk == {version}",
97+
"nvidia-nat-ag2 == {version}",
9698
"nvidia-nat-agno == {version}",
9799
"nvidia-nat-app == {version}",
98100
"nvidia-nat-autogen == {version}",
@@ -129,6 +131,7 @@ examples = [
129131
"nat_agno_personal_finance",
130132
"nat_agents_examples",
131133
"nat_alert_triage_agent",
134+
"nat_ag2_demo",
132135
"nat_autogen_demo",
133136
"nat_automated_description_generation",
134137
"nat_currency_agent_a2a",
@@ -230,6 +233,7 @@ managed = true
230233
# Packages
231234
nvidia-nat-a2a = { path = "packages/nvidia_nat_a2a", editable = true }
232235
nvidia-nat-adk = { path = "packages/nvidia_nat_adk", editable = true }
236+
nvidia-nat-ag2 = { path = "packages/nvidia_nat_ag2", editable = true }
233237
nvidia-nat-agno = { path = "packages/nvidia_nat_agno", editable = true }
234238
nvidia-nat-app = { path = "packages/nvidia_nat_app", editable = true }
235239
nvidia-nat-autogen = { path = "packages/nvidia_nat_autogen", editable = true }
@@ -268,6 +272,7 @@ nat_adk_demo = { path = "examples/frameworks/adk_demo", editable = true }
268272
nat_agno_personal_finance = { path = "examples/frameworks/agno_personal_finance", editable = true }
269273
nat_agents_examples = { path = "examples/agents", editable = true }
270274
nat_alert_triage_agent = { path = "examples/advanced_agents/alert_triage_agent", editable = true }
275+
nat_ag2_demo = { path = "examples/frameworks/nat_ag2_demo", editable = true }
271276
nat_autogen_demo = { path = "examples/frameworks/nat_autogen_demo", editable = true }
272277
nat_automated_description_generation = { path = "examples/custom_functions/automated_description_generation", editable = true }
273278
nat_currency_agent_a2a = { path = "examples/A2A/currency_agent_a2a", editable = true }

0 commit comments

Comments
 (0)