|
1 | 1 | # Examples |
2 | 2 |
|
3 | | -Runnable pipeline configs and supporting assets. Start here to run the repo's main example. |
| 3 | +Runnable configs and sample agents for Adaptive Eval. |
| 4 | + |
| 5 | +Start with the OTel-traced LangGraph travel planner. It is the customer-preview flagship because it exercises the real agent path: spec-driven test generation, `target.callable`, Phoenix/OpenInference spans, transcripts, and judge evidence. |
4 | 6 |
|
5 | 7 | ## First run |
6 | 8 |
|
7 | | -```bash |
8 | | -uv venv && uv sync |
9 | | -cp .env.example .env |
10 | | -source .env |
| 9 | +```powershell |
| 10 | +uv venv |
| 11 | +uv sync |
| 12 | +Copy-Item .env.example .env |
| 13 | +# Edit .env with your Azure OpenAI settings. |
11 | 14 |
|
12 | | -uv run p2m run --config examples/pipes/health_assistant.yaml |
| 15 | +uv run p2m run --config examples\travel_planner_langgraph\eval_config.yaml |
| 16 | +uv run p2m results status travel-planner-langgraph-v1 demo-1 |
13 | 17 | ``` |
14 | 18 |
|
15 | | -## Which config to start with |
16 | | - |
17 | | -| Goal | Config | |
18 | | -|---|---| |
19 | | -| Plain chat model, no tools | `pipes/health_assistant.yaml` | |
20 | | -| Hosted target with sandbox-backed tools | `pipes/health_assistant_sandbox.yaml` (requires Docker) | |
21 | | -| Hosted target with simulated tools from a fixed schema | `pipes/health_assistant_simulated_tools.yaml` | |
22 | | -| Hosted target with per-seed tool definitions | `pipes/health_assistant_generated_tools.yaml` | |
23 | | -| External agent via connector | `pipes/health_assistant_external.yaml` (requires Docker Compose and Azure model env vars) | |
| 19 | +## Which example to start with |
24 | 20 |
|
25 | | -See [pipes/README.md](pipes/README.md) for what each config demonstrates. |
| 21 | +| Goal | Example | Notes | |
| 22 | +|---|---|---| |
| 23 | +| Evaluate a real framework agent with OTel traces | `travel_planner_langgraph\eval_config.yaml` | Recommended starting point. Uses `target.callable` and `target.trace.backend: phoenix`. | |
| 24 | +| Understand framework instrumentation breadth | `phoenix_auto_trace\README.md` | Shows the same travel-planner idea across multiple framework integration paths. | |
| 25 | +| Run a simple hosted-model eval | `pipes\health_assistant.yaml` | Good smoke test for a single LLM target with a system prompt. | |
| 26 | +| Evaluate a prompt agent with planned tools but no backend | `pipes\health_assistant_simulated_tools.yaml` | Uses a fixed tool schema and simulated tool responses. | |
| 27 | +| Evaluate a hosted target with Python tool functions | `pipes\health_assistant_sandbox.yaml` | Requires Docker. Use when you want actual tool execution around a hosted model. | |
26 | 28 |
|
27 | 29 | ## Layout |
28 | 30 |
|
29 | 31 | ```text |
30 | 32 | examples/ |
31 | | -├── pipes/ pipeline configs |
32 | | -├── concepts/ concept definitions loaded by `concept: <name>` |
33 | | -└── agents/ tool modules, toolsets, and external connectors |
| 33 | +├── travel_planner_langgraph/ flagship OTel/callable agent example |
| 34 | +├── phoenix_auto_trace/ framework instrumentation gallery |
| 35 | +├── pipes/ simple hosted-model and model+tools configs |
| 36 | +├── concepts/ reusable eval spec definitions |
| 37 | +└── agents/ simple tool modules and tool schemas |
34 | 38 | ``` |
35 | 39 |
|
36 | | -See [concepts/README.md](concepts/README.md) for available concept definitions. |
| 40 | +See [`concepts\README.md`](concepts/README.md) for reusable concept definitions. |
0 commit comments