Skip to content

Commit 024ff87

Browse files
committed
fix errors by check
Signed-off-by: jsun-m <91754185+jsun-m@users.noreply.github.com>
1 parent 61c375e commit 024ff87

File tree

1 file changed

+7
-50
lines changed

1 file changed

+7
-50
lines changed

examples/frameworks/nat_ag2_demo/README.md

Lines changed: 7 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,14 @@ A quick example using the AG2 framework (formerly AutoGen), showcasing a multi-a
3636
- [Expected Output](#expected-output)
3737
- [Async Workflow](#async-workflow)
3838
- [Research Team Example](#research-team-example)
39-
- [Observability with Phoenix](#observability-with-phoenix)
40-
- [Start Phoenix Server](#start-phoenix-server)
41-
- [Run with Tracing Enabled](#run-with-tracing-enabled)
42-
- [View Traces in Phoenix](#view-traces-in-phoenix)
4339
- [Evaluate the Workflow](#evaluate-the-workflow)
4440
- [Evaluation Dataset](#evaluation-dataset)
4541
- [Run the Evaluation](#run-the-evaluation)
4642
- [Understanding Evaluation Results](#understanding-evaluation-results)
4743
- [Architecture](#architecture)
4844
- [Async Execution](#async-execution)
4945
- [Tool Integration](#tool-integration)
50-
- [Available Configs](#available-configs)
46+
- [Available Configurations](#available-configurations)
5147

5248
## Key Features
5349

@@ -81,10 +77,6 @@ uv pip install -e examples/frameworks/nat_ag2_demo
8177
# Required to run the current_datetime MCP tool used in the example workflow
8278
uv pip install -e examples/getting_started/simple_calculator
8379

84-
# Optional: Install Phoenix for observability and tracing
85-
uv pip install -e '.[phoenix]'
86-
uv pip install arize-phoenix
87-
8880
uv pip install matplotlib
8981
```
9082

@@ -153,38 +145,6 @@ nat run --config_file examples/frameworks/nat_ag2_demo/configs/config-research.y
153145

154146
This config uses the `ag2_research_team` workflow type directly as the workflow, with prompts configured inline.
155147

156-
## Observability with Phoenix
157-
158-
This section demonstrates how to enable distributed tracing using Phoenix to monitor and analyze the AG2 workflow execution.
159-
160-
### Start Phoenix Server
161-
162-
In a separate terminal, start Phoenix:
163-
164-
```bash
165-
phoenix serve
166-
```
167-
168-
Phoenix runs on `http://localhost:6006` with the tracing endpoint at `http://localhost:6006/v1/traces`.
169-
170-
### Run with Tracing Enabled
171-
172-
With Phoenix running, execute the workflow using the evaluation config which has tracing enabled:
173-
174-
```bash
175-
nat run --config_file examples/frameworks/nat_ag2_demo/configs/config-eval.yml \
176-
--input "What is the current traffic on the 10 West?"
177-
```
178-
179-
### View Traces in Phoenix
180-
181-
Open your browser to `http://localhost:6006` to explore traces in the Phoenix UI. You can see:
182-
183-
- **Agent execution flow**: Track the conversation between TrafficAgent and FinalResponseAgent
184-
- **Tool invocations**: Monitor calls to `traffic_status_tool` and `current_datetime`
185-
- **LLM interactions**: View prompts, completions, and token usage
186-
- **Timing metrics**: Analyze latency across different workflow components
187-
188148
## Evaluate the Workflow
189149

190150
NeMo Agent Toolkit provides a comprehensive evaluation framework to assess your workflow's performance against a test dataset.
@@ -209,16 +169,13 @@ Traffic status varies by time period:
209169

210170
### Run the Evaluation
211171

212-
Ensure both the MCP server and Phoenix are running, then execute the evaluation:
172+
Ensure the MCP server is running, then execute the evaluation:
213173

214174
```bash
215175
# Terminal 1: Start MCP server (if not already running)
216176
# nat mcp serve --config_file examples/getting_started/simple_calculator/configs/config.yml --tool_names current_datetime
217177

218-
# Terminal 2: Start Phoenix server (if not already running)
219-
# phoenix serve
220-
221-
# Terminal 3: Run evaluation
178+
# Terminal 2: Run evaluation
222179
nat eval --config_file examples/frameworks/nat_ag2_demo/configs/config-eval.yml
223180
```
224181

@@ -265,17 +222,17 @@ This replaces the previous approach of running async tool calls through a `Threa
265222

266223
This example demonstrates the unified approach to tool integration provided by NeMo Agent Toolkit:
267224

268-
- **Local tools** (like `traffic_status_tool`) are defined as NAT functions and provide time-aware traffic data for Los Angeles highways
225+
- **Local tools** (like `traffic_status_tool`) are defined as NeMo Agent Toolkit functions and provide time-aware traffic data for Los Angeles highways
269226
- **MCP tools** (like `current_datetime`) are configured in YAML using the `mcp_client` function group provided by the toolkit
270227

271228
Both types of tools are passed to AG2 agents through the `builder.get_tools()` method, which automatically wraps them for the AG2 framework. This eliminates the need for framework-specific MCP integration code and provides a consistent interface across all supported frameworks (AG2, AutoGen, LangChain, Semantic Kernel, and others).
272229

273-
## Available Configs
230+
## Available Configurations
274231

275-
| Config | Workflow Type | Description |
232+
| config | Workflow Type | Description |
276233
|--------|--------------|-------------|
277234
| `config.yml` | `ag2_team` | Default traffic workflow with async group chat |
278235
| `config-async.yml` | `ag2_async_team` | Explicit async variant of the traffic workflow |
279236
| `config-research.yml` | `ag2_research_team` | Research team with researcher + writer agents |
280-
| `config-eval.yml` | `ag2_team` | Traffic workflow with Phoenix tracing and evaluation |
237+
| `config-eval.yml` | `ag2_team` | Traffic workflow with evaluation |
281238

0 commit comments

Comments
 (0)