Skip to content

Commit 04bc01c

Browse files
Parallel Agent Execution (#115)
1 parent 111d898 commit 04bc01c

17 files changed

+627
-243
lines changed

text_2_sql/autogen/Iteration 5 - Agentic Vector Based Text2SQL.ipynb

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,20 @@
99
"Licensed under the MIT License."
1010
]
1111
},
12+
{
13+
"cell_type": "code",
14+
"execution_count": null,
15+
"metadata": {},
16+
"outputs": [],
17+
"source": [
18+
"# This is only needed for this notebook to work\n",
19+
"import sys\n",
20+
"from pathlib import Path\n",
21+
"\n",
22+
"# Add the parent directory of `src` to the path\n",
23+
"sys.path.append(str(Path.cwd() / \"src\"))"
24+
]
25+
},
1226
{
1327
"cell_type": "markdown",
1428
"metadata": {},
@@ -28,20 +42,6 @@
2842
"`uv add --editable text_2_sql_core`"
2943
]
3044
},
31-
{
32-
"cell_type": "code",
33-
"execution_count": null,
34-
"metadata": {},
35-
"outputs": [],
36-
"source": [
37-
"# This is only needed for this notebook to work\n",
38-
"import sys\n",
39-
"from pathlib import Path\n",
40-
"\n",
41-
"# Add the parent directory of `src` to the path\n",
42-
"sys.path.append(str(Path.cwd() / \"src\"))"
43-
]
44-
},
4545
{
4646
"cell_type": "code",
4747
"execution_count": null,
@@ -50,8 +50,7 @@
5050
"source": [
5151
"import dotenv\n",
5252
"import logging\n",
53-
"from autogen_agentchat.ui import Console\n",
54-
"from autogen_text_2_sql.autogen_text_2_sql import AutoGenText2Sql"
53+
"from autogen_text_2_sql import AutoGenText2Sql"
5554
]
5655
},
5756
{
@@ -101,8 +100,8 @@
101100
"metadata": {},
102101
"outputs": [],
103102
"source": [
104-
"result = await agentic_text_2_sql.process_question(task=\"What total number of orders in June 2008?\")\n",
105-
"await Console(result)\n"
103+
"async for message in agentic_text_2_sql.process_question(question=\"What total number of orders in June 2008?\"):\n",
104+
" logging.info(\"Received %s Message from Text2SQL System\", message)"
106105
]
107106
},
108107
{

text_2_sql/autogen/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ description = "AutoGen Based Implementation"
55
readme = "README.md"
66
requires-python = ">=3.12"
77
dependencies = [
8+
"aiostream>=0.6.4",
89
"autogen-agentchat==0.4.0.dev11",
910
"autogen-core==0.4.0.dev11",
1011
"autogen-ext[azure,openai]==0.4.0.dev11",

text_2_sql/autogen/src/__init__.py

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from autogen_text_2_sql.autogen_text_2_sql import AutoGenText2Sql
2+
3+
__all__ = ["AutoGenText2Sql"]

0 commit comments

Comments
 (0)