You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs_en/examples/other/create_flow_image_demo.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ This example builds an interactive flowchart assistant that generates and displa
13
13
14
14
- Environment variables: `OPENAI_API_KEY`, `OPENAI_BASE_URL`, `OPENAI_MODEL_NAME` (note: this example uses OpenAI-style variable names, not the default `DEFAULT_LLM_*` names)
15
15
- Python packages listed in `requirements.txt`
16
-
- The `oxygent.chart` module (provides `flow_image_gen_tools`, `open_chart_tools`, `create_static_files`, and `flowchart_api`)
16
+
- The `function_hubs.chart` module (provides `flow_image_gen_tools`, `open_chart_tools`, `create_static_files`, and `flowchart_api`)
17
17
- A web browser for viewing generated flowcharts
18
18
19
19
## How to Run
@@ -58,8 +58,8 @@ The `MASTER_AGENT_PROMPT` is a detailed Chinese-language system prompt that inst
58
58
| Component | Type | Key Parameters |
59
59
|-----------|------|----------------|
60
60
|`default_llm`|`HttpLLM`|`OPENAI_API_KEY`, `OPENAI_BASE_URL`, `OPENAI_MODEL_NAME` from env vars |
61
-
|`flow_image_gen_tools`| FunctionHub | Imported from `oxygent.chart.flow_image_gen_tools`; generates Mermaid flowcharts |
62
-
|`open_chart_tools`| FunctionHub | Imported from `oxygent.chart.open_chart_tools`; opens HTML files in browser |
61
+
|`flow_image_gen_tools`| FunctionHub | Imported from `function_hubs.chart.flow_image_gen_tools`; generates Mermaid flowcharts |
62
+
|`open_chart_tools`| FunctionHub | Imported from `function_hubs.chart.open_chart_tools`; opens HTML files in browser |
|`open_chart_agent`|`ReActAgent`|`tools=["open_chart_tools"]`, desc: open flowchart in browser |
65
65
|`master_agent`|`ReActAgent`|`is_master=True`, `sub_agents=["image_gen_agent", "open_chart_agent"]`, `prompt_template=MASTER_AGENT_PROMPT`, also has direct tool access to both tool sets |
@@ -69,19 +69,19 @@ The `MASTER_AGENT_PROMPT` is a detailed Chinese-language system prompt that inst
69
69
The script creates a custom FastAPI application alongside the OxyGent MAS:
70
70
71
71
1.**CORS middleware** -- Allows all origins for development convenience.
72
-
2.**Flowchart API router** -- Mounted at `/api` from `oxygent.chart.flowchart_api`.
72
+
2.**Flowchart API router** -- Mounted at `/api` from `function_hubs.chart.flowchart_api`.
73
73
3.**Root redirect** -- `GET /` redirects to `/static/index.html`.
74
-
4.**Static files** -- The web UI is served from `oxygent/chart/web/` at the `/static` path.
74
+
4.**Static files** -- The web UI is served from `function_hubs/chart/web/` at the `/static` path.
0 commit comments