aiqtoolkit-semantic-kernel 1.2.0a20250707__py3-none-any.whl → 1.2.0a20250730__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aiqtoolkit-semantic-kernel might be problematic. Click here for more details.
- aiq/plugins/semantic_kernel/llm.py +8 -0
- {aiqtoolkit_semantic_kernel-1.2.0a20250707.dist-info → aiqtoolkit_semantic_kernel-1.2.0a20250730.dist-info}/METADATA +2 -2
- {aiqtoolkit_semantic_kernel-1.2.0a20250707.dist-info → aiqtoolkit_semantic_kernel-1.2.0a20250730.dist-info}/RECORD +6 -6
- {aiqtoolkit_semantic_kernel-1.2.0a20250707.dist-info → aiqtoolkit_semantic_kernel-1.2.0a20250730.dist-info}/WHEEL +0 -0
- {aiqtoolkit_semantic_kernel-1.2.0a20250707.dist-info → aiqtoolkit_semantic_kernel-1.2.0a20250730.dist-info}/entry_points.txt +0 -0
- {aiqtoolkit_semantic_kernel-1.2.0a20250707.dist-info → aiqtoolkit_semantic_kernel-1.2.0a20250730.dist-info}/top_level.txt +0 -0
|
@@ -16,7 +16,9 @@
|
|
|
16
16
|
from aiq.builder.builder import Builder
|
|
17
17
|
from aiq.builder.framework_enum import LLMFrameworkEnum
|
|
18
18
|
from aiq.cli.register_workflow import register_llm_client
|
|
19
|
+
from aiq.data_models.retry_mixin import RetryMixin
|
|
19
20
|
from aiq.llm.openai_llm import OpenAIModelConfig
|
|
21
|
+
from aiq.utils.exception_handlers.automatic_retries import patch_with_retry
|
|
20
22
|
|
|
21
23
|
|
|
22
24
|
@register_llm_client(config_type=OpenAIModelConfig, wrapper_type=LLMFrameworkEnum.SEMANTIC_KERNEL)
|
|
@@ -30,4 +32,10 @@ async def openai_semantic_kernel(llm_config: OpenAIModelConfig, builder: Builder
|
|
|
30
32
|
|
|
31
33
|
llm = OpenAIChatCompletion(ai_model_id=config_obj.get("model"))
|
|
32
34
|
|
|
35
|
+
if isinstance(llm_config, RetryMixin):
|
|
36
|
+
llm = patch_with_retry(llm,
|
|
37
|
+
retries=llm_config.num_retries,
|
|
38
|
+
retry_codes=llm_config.retry_on_status_codes,
|
|
39
|
+
retry_on_messages=llm_config.retry_on_errors)
|
|
40
|
+
|
|
33
41
|
yield llm
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aiqtoolkit-semantic-kernel
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.0a20250730
|
|
4
4
|
Summary: Subpackage for Semantic-Kernel integration in AIQtoolkit
|
|
5
5
|
Keywords: ai,rag,agents
|
|
6
6
|
Classifier: Programming Language :: Python
|
|
7
7
|
Requires-Python: <3.13,>=3.11
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
|
-
Requires-Dist: aiqtoolkit==v1.2.
|
|
9
|
+
Requires-Dist: aiqtoolkit==v1.2.0a20250730
|
|
10
10
|
Requires-Dist: semantic-kernel~=1.24.0
|
|
11
11
|
|
|
12
12
|
<!--
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
aiq/meta/pypi.md,sha256=Fz0ye_uf6risEpiRBtYo301nUqmAuVCSquYhJMZQlzQ,1092
|
|
2
2
|
aiq/plugins/semantic_kernel/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
aiq/plugins/semantic_kernel/llm.py,sha256=
|
|
3
|
+
aiq/plugins/semantic_kernel/llm.py,sha256=l13R5Wv50iQ8OQ2juAFCoPoll6ZtIbojTnWjyGjepGI,1744
|
|
4
4
|
aiq/plugins/semantic_kernel/register.py,sha256=RKXyuaXy4ftA5IL2RrCofIBjpie_-2lP9YZoHAiyPU0,863
|
|
5
5
|
aiq/plugins/semantic_kernel/tool_wrapper.py,sha256=miogE5cp3o5H-KxaKp1dMqqJZnV-UMsYb1PQ4ox-xKY,7175
|
|
6
|
-
aiqtoolkit_semantic_kernel-1.2.
|
|
7
|
-
aiqtoolkit_semantic_kernel-1.2.
|
|
8
|
-
aiqtoolkit_semantic_kernel-1.2.
|
|
9
|
-
aiqtoolkit_semantic_kernel-1.2.
|
|
10
|
-
aiqtoolkit_semantic_kernel-1.2.
|
|
6
|
+
aiqtoolkit_semantic_kernel-1.2.0a20250730.dist-info/METADATA,sha256=WaRGFGi9aaOrym7UsQCp655rxD-HShJTZIQ4pFVJsvw,1457
|
|
7
|
+
aiqtoolkit_semantic_kernel-1.2.0a20250730.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
+
aiqtoolkit_semantic_kernel-1.2.0a20250730.dist-info/entry_points.txt,sha256=qGCOsf9tkWvc5EUonXrUI96cDrTJ3qoueyy3DgClK3M,76
|
|
9
|
+
aiqtoolkit_semantic_kernel-1.2.0a20250730.dist-info/top_level.txt,sha256=fo7AzYcNhZ_tRWrhGumtxwnxMew4xrT1iwouDy_f0Kc,4
|
|
10
|
+
aiqtoolkit_semantic_kernel-1.2.0a20250730.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|