Skip to content

Commit 3a34f5d

Browse files
Merge remote-tracking branch 'origin/update-modelid' into update-modelid
2 parents 7933961 + e582951 commit 3a34f5d

144 files changed

Lines changed: 2723 additions & 2751 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎python/DEV_SETUP.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,14 @@ You can also run all the tests together under the [tests](tests/) folder.
121121

122122
## Tools and scripts
123123

124+
## Implementation Decisions
125+
126+
### Asynchronous programming
127+
128+
It's important to note that most of this library is written with asynchronous in mind. The
129+
developer should always assume everything is asynchronous. One can use the function signature
130+
with either `async def` or `def` to understand if something is asynchronous or not.
131+
124132
## Pydantic and Serialization
125133

126134
[Pydantic Documentation](https://docs.pydantic.dev/1.10/)

‎python/notebooks/00-getting-started.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"metadata": {},
1717
"outputs": [],
1818
"source": [
19-
"!python -m pip install semantic-kernel==0.4.6.dev0"
19+
"!python -m pip install semantic-kernel==0.4.7.dev0"
2020
]
2121
},
2222
{

‎python/notebooks/01-basic-loading-the-kernel.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"metadata": {},
2626
"outputs": [],
2727
"source": [
28-
"!python -m pip install semantic-kernel==0.4.6.dev0"
28+
"!python -m pip install semantic-kernel==0.4.7.dev0"
2929
]
3030
},
3131
{

‎python/notebooks/02-running-prompts-from-file.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"metadata": {},
9090
"outputs": [],
9191
"source": [
92-
"!python -m pip install semantic-kernel==0.4.6.dev0"
92+
"!python -m pip install semantic-kernel==0.4.7.dev0"
9393
]
9494
},
9595
{

‎python/notebooks/03-semantic-function-inline.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"metadata": {},
5656
"outputs": [],
5757
"source": [
58-
"!python -m pip install semantic-kernel==0.4.6.dev0"
58+
"!python -m pip install semantic-kernel==0.4.7.dev0"
5959
]
6060
},
6161
{

‎python/notebooks/04-context-variables-chat.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"metadata": {},
2727
"outputs": [],
2828
"source": [
29-
"!python -m pip install semantic-kernel==0.4.6.dev0"
29+
"!python -m pip install semantic-kernel==0.4.7.dev0"
3030
]
3131
},
3232
{

‎python/notebooks/05-using-the-planner.ipynb‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
"metadata": {},
2424
"outputs": [],
2525
"source": [
26-
"!python -m pip install semantic-kernel==0.4.6.dev0"
26+
"!python -m pip install semantic-kernel==0.4.7.dev0"
2727
]
2828
},
2929
{
3030
"cell_type": "code",
31-
"execution_count": 1,
31+
"execution_count": null,
3232
"id": "11e59885",
3333
"metadata": {},
3434
"outputs": [],
@@ -41,7 +41,7 @@
4141
"\n",
4242
"kernel = sk.Kernel()\n",
4343
"\n",
44-
"useAzureOpenAI = False\n",
44+
"useAzureOpenAI = True\n",
4545
"\n",
4646
"# Configure AI backend used by the kernel\n",
4747
"if useAzureOpenAI:\n",
@@ -68,7 +68,7 @@
6868
},
6969
{
7070
"cell_type": "code",
71-
"execution_count": 2,
71+
"execution_count": null,
7272
"id": "93bc6103",
7373
"metadata": {},
7474
"outputs": [],
@@ -92,7 +92,7 @@
9292
},
9393
{
9494
"cell_type": "code",
95-
"execution_count": 3,
95+
"execution_count": null,
9696
"id": "ca0e7604",
9797
"metadata": {},
9898
"outputs": [],
@@ -131,7 +131,7 @@
131131
},
132132
{
133133
"cell_type": "code",
134-
"execution_count": 4,
134+
"execution_count": null,
135135
"id": "20d35ed0",
136136
"metadata": {},
137137
"outputs": [],
@@ -143,12 +143,12 @@
143143
},
144144
{
145145
"cell_type": "code",
146-
"execution_count": 5,
146+
"execution_count": null,
147147
"id": "d5697c09",
148148
"metadata": {},
149149
"outputs": [],
150150
"source": [
151-
"basic_plan = await planner.create_plan_async(ask, kernel)"
151+
"basic_plan = await planner.create_plan(ask, kernel)"
152152
]
153153
},
154154
{
@@ -220,7 +220,7 @@
220220
"She likes Shakespeare so write using his style. She speaks French so write it in French.\n",
221221
"Convert the text to uppercase.\"\"\"\n",
222222
"\n",
223-
"new_plan = await planner.create_plan_async(ask, kernel)"
223+
"new_plan = await planner.create_plan(ask, kernel)"
224224
]
225225
},
226226
{
@@ -256,7 +256,7 @@
256256
"metadata": {},
257257
"outputs": [],
258258
"source": [
259-
"results = await planner.execute_plan_async(new_plan, kernel)"
259+
"results = await planner.execute_plan(new_plan, kernel)"
260260
]
261261
},
262262
{
@@ -322,7 +322,7 @@
322322
"metadata": {},
323323
"outputs": [],
324324
"source": [
325-
"sequential_plan = await planner.create_plan_async(goal=ask)"
325+
"sequential_plan = await planner.create_plan(goal=ask)"
326326
]
327327
},
328328
{
@@ -445,7 +445,7 @@
445445
"metadata": {},
446446
"outputs": [],
447447
"source": [
448-
"plan = await planner.create_plan_async(goal=ask)"
448+
"plan = await planner.create_plan(goal=ask)"
449449
]
450450
},
451451
{
@@ -537,9 +537,9 @@
537537
" name=\"query\",\n",
538538
" description=\"The search query\",\n",
539539
" )\n",
540-
" async def search_async(self, query: str, context: KernelContext) -> str:\n",
540+
" async def search(self, query: str, context: KernelContext) -> str:\n",
541541
" query = query or context.variables.get(\"query\")[1]\n",
542-
" result = await self._connector.search_async(query, num_results=5, offset=0)\n",
542+
" result = await self._connector.search(query, num_results=5, offset=0)\n",
543543
" return str(result)"
544544
]
545545
},
@@ -669,7 +669,7 @@
669669
"name": "python",
670670
"nbconvert_exporter": "python",
671671
"pygments_lexer": "ipython3",
672-
"version": "3.10.12"
672+
"version": "3.9.13"
673673
}
674674
},
675675
"nbformat": 4,

0 commit comments

Comments
 (0)