Skip to content

Commit c745fe1

Browse files
committed
feat: add documentation for agent visualization using Graphviz
1 parent 6f2f729 commit c745fe1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/visualizations.md renamed to docs/visualization.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Agent visualization allows you to generate a structured graphical representation
77
The visualization functionality relies on the **Graphviz** package. To use it, ensure you have Graphviz installed and add it as a dependency in `pyproject.toml`. Alternatively, install it directly via pip:
88

99
```bash
10-
pip install graphviz
10+
pip install openai-agents[visualization]
1111
```
1212

1313
## Generating a Graph
@@ -22,7 +22,7 @@ You can generate an agent visualization using the `draw_graph` function. This fu
2222

2323
```python
2424
from agents import Agent, function_tool
25-
from agents.visualizations import draw_graph
25+
from agents.extensions.visualization import draw_graph
2626

2727
@function_tool
2828
def get_weather(city: str) -> str:

0 commit comments

Comments
 (0)