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.
Files changed (27) hide show
  1. {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/tools.py +8 -6
  2. {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/version.py +1 -1
  3. {lightagent-0.6.2 → lightagent-0.6.3}/PKG-INFO +1 -1
  4. {lightagent-0.6.2 → lightagent-0.6.3}/pyproject.toml +1 -1
  5. {lightagent-0.6.2 → lightagent-0.6.3}/LICENSE +0 -0
  6. {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/.DS_Store +0 -0
  7. {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/__init__.py +0 -0
  8. {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/builtin_tools/__pycache__/nos.cpython-311.pyc +0 -0
  9. {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/builtin_tools/__pycache__/python_executor.cpython-311.pyc +0 -0
  10. {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/builtin_tools/nos.py +0 -0
  11. {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/builtin_tools/python_executor.py +0 -0
  12. {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/core.py +0 -0
  13. {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/core20260307.py.bak +0 -0
  14. {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/logger.py +0 -0
  15. {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/mcp_client_manager.py +0 -0
  16. {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/protocol.py +0 -0
  17. {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/skill_tools.py +0 -0
  18. {lightagent-0.6.2 → lightagent-0.6.3}/LightAgent/skills.py +0 -0
  19. {lightagent-0.6.2 → lightagent-0.6.3}/README.de.md +0 -0
  20. {lightagent-0.6.2 → lightagent-0.6.3}/README.es.md +0 -0
  21. {lightagent-0.6.2 → lightagent-0.6.3}/README.fr.md +0 -0
  22. {lightagent-0.6.2 → lightagent-0.6.3}/README.ja.md +0 -0
  23. {lightagent-0.6.2 → lightagent-0.6.3}/README.ko.md +0 -0
  24. {lightagent-0.6.2 → lightagent-0.6.3}/README.md +0 -0
  25. {lightagent-0.6.2 → lightagent-0.6.3}/README.pt.md +0 -0
  26. {lightagent-0.6.2 → lightagent-0.6.3}/README.ru.md +0 -0
  27. {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
- result = list(tool_call(**tool_params))
169
- if len(result) == 1:
170
- result = result[0]
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)
@@ -6,4 +6,4 @@
6
6
  最后更新: 2026-04-28
7
7
  """
8
8
 
9
- __version__ = "0.6.2"
9
+ __version__ = "0.6.3"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: LightAgent
3
- Version: 0.6.2
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.2"
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes