LightAgent 0.6.2__tar.gz → 0.6.3__tar.gz
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.
- {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/tools.py +8 -6
- {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/version.py +1 -1
- {lightagent-0.6.2 → lightagent-0.6.3}/PKG-INFO +1 -1
- {lightagent-0.6.2 → lightagent-0.6.3}/pyproject.toml +1 -1
- {lightagent-0.6.2 → lightagent-0.6.3}/LICENSE +0 -0
- {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/.DS_Store +0 -0
- {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/__init__.py +0 -0
- {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/builtin_tools/__pycache__/nos.cpython-311.pyc +0 -0
- {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/builtin_tools/__pycache__/python_executor.cpython-311.pyc +0 -0
- {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/builtin_tools/nos.py +0 -0
- {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/builtin_tools/python_executor.py +0 -0
- {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/core.py +0 -0
- {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/core20260307.py.bak +0 -0
- {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/logger.py +0 -0
- {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/mcp_client_manager.py +0 -0
- {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/protocol.py +0 -0
- {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/skill_tools.py +0 -0
- {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/skills.py +0 -0
- {lightagent-0.6.2 → lightagent-0.6.3}/README.de.md +0 -0
- {lightagent-0.6.2 → lightagent-0.6.3}/README.es.md +0 -0
- {lightagent-0.6.2 → lightagent-0.6.3}/README.fr.md +0 -0
- {lightagent-0.6.2 → lightagent-0.6.3}/README.ja.md +0 -0
- {lightagent-0.6.2 → lightagent-0.6.3}/README.ko.md +0 -0
- {lightagent-0.6.2 → lightagent-0.6.3}/README.md +0 -0
- {lightagent-0.6.2 → lightagent-0.6.3}/README.pt.md +0 -0
- {lightagent-0.6.2 → lightagent-0.6.3}/README.ru.md +0 -0
- {lightagent-0.6.2 → lightagent-0.6.3}/README.zh-CN.md +0 -0
|
@@ -153,9 +153,7 @@ class AsyncToolDispatcher:
|
|
|
153
153
|
if inspect.iscoroutinefunction(tool_call):
|
|
154
154
|
# 异步函数 - 直接 await 获取结果
|
|
155
155
|
result = await tool_call(**tool_params)
|
|
156
|
-
elif inspect.isasyncgenfunction(tool_call):
|
|
157
|
-
# 返回异步生成器对象,不做消费
|
|
158
|
-
result = tool_call(**tool_params)
|
|
156
|
+
# elif inspect.isasyncgenfunction(tool_call):
|
|
159
157
|
# 异步生成器 - 需要收集所有结果
|
|
160
158
|
# result = []
|
|
161
159
|
# async for chunk in tool_call(**tool_params):
|
|
@@ -163,11 +161,15 @@ class AsyncToolDispatcher:
|
|
|
163
161
|
# # 如果只有一个结果,直接返回;否则返回列表
|
|
164
162
|
# if len(result) == 1:
|
|
165
163
|
# result = result[0]
|
|
164
|
+
elif inspect.isasyncgenfunction(tool_call):
|
|
165
|
+
# 返回异步生成器对象,不做消费
|
|
166
|
+
return tool_call(**tool_params)
|
|
166
167
|
elif inspect.isgeneratorfunction(tool_call):
|
|
167
168
|
# 同步生成器 - 收集所有结果
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
return tool_call(**tool_params)
|
|
170
|
+
# result = list(tool_call(**tool_params))
|
|
171
|
+
# if len(result) == 1:
|
|
172
|
+
# result = result[0]
|
|
171
173
|
else:
|
|
172
174
|
# 普通函数 - 直接调用
|
|
173
175
|
result = tool_call(**tool_params)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: LightAgent
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.3
|
|
4
4
|
Summary: LightAgent: Lightweight AI agent framework with memory, tools & tree-of-thought. Supports multi-agent collaboration, self-learning, and major LLMs (OpenAI/DeepSeek/Qwen). Open-source with MCP/SSE protocol integration.
|
|
5
5
|
Home-page: https://github.com/wxai-space/LightAgent
|
|
6
6
|
License: Apache 2.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "LightAgent"
|
|
3
|
-
version = "0.6.
|
|
3
|
+
version = "0.6.3"
|
|
4
4
|
description = "LightAgent: Lightweight AI agent framework with memory, tools & tree-of-thought. Supports multi-agent collaboration, self-learning, and major LLMs (OpenAI/DeepSeek/Qwen). Open-source with MCP/SSE protocol integration."
|
|
5
5
|
authors = ["caiweige <caiweige@qq.com>"]
|
|
6
6
|
license = "Apache 2.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/builtin_tools/__pycache__/nos.cpython-311.pyc
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|