adam-community 1.0.18__tar.gz → 1.0.19__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.
- {adam_community-1.0.18 → adam_community-1.0.19}/PKG-INFO +1 -1
- adam_community-1.0.19/adam_community/__version__.py +1 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community/util.py +14 -1
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community.egg-info/PKG-INFO +1 -1
- adam_community-1.0.18/adam_community/__version__.py +0 -1
- {adam_community-1.0.18 → adam_community-1.0.19}/README.md +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community/__init__.py +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community/cli/__init__.py +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community/cli/build.py +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community/cli/cli.py +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community/cli/init.py +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community/cli/parser.py +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community/cli/templates/Makefile.j2 +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community/cli/templates/README_agent.md.j2 +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community/cli/templates/README_kit.md.j2 +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community/cli/templates/__init__.py +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community/cli/templates/agent_python.py.j2 +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community/cli/templates/configure.json.j2 +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community/cli/templates/initial_assistant_message.md.j2 +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community/cli/templates/initial_assistant_message_en.md.j2 +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community/cli/templates/initial_system_prompt.md.j2 +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community/cli/templates/initial_system_prompt_en.md.j2 +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community/cli/templates/input.json.j2 +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community/cli/templates/kit_python.py.j2 +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community/cli/templates/long_description.md.j2 +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community/cli/templates/long_description_en.md.j2 +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community/cli/templates/rag_python.py.j2 +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community/cli/updater.py +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community/tool.py +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community.egg-info/SOURCES.txt +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community.egg-info/dependency_links.txt +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community.egg-info/entry_points.txt +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community.egg-info/requires.txt +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/adam_community.egg-info/top_level.txt +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/setup.cfg +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/setup.py +0 -0
- {adam_community-1.0.18 → adam_community-1.0.19}/test/test_util_tool.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.0.19"
|
|
@@ -64,7 +64,20 @@ class RAG:
|
|
|
64
64
|
return e.stderr.strip()
|
|
65
65
|
|
|
66
66
|
try:
|
|
67
|
-
|
|
67
|
+
parsed_data = json.loads(result.stdout)
|
|
68
|
+
# 如果返回的是数组,直接使用
|
|
69
|
+
if isinstance(parsed_data, list):
|
|
70
|
+
return "\n".join(parsed_data)
|
|
71
|
+
# 如果返回的是对象且包含 text 字段,使用 text 字段
|
|
72
|
+
elif isinstance(parsed_data, dict) and "text" in parsed_data:
|
|
73
|
+
text_array = parsed_data["text"]
|
|
74
|
+
if isinstance(text_array, list):
|
|
75
|
+
return "\n".join(text_array)
|
|
76
|
+
else:
|
|
77
|
+
return str(text_array)
|
|
78
|
+
else:
|
|
79
|
+
# 其他情况返回原始输出
|
|
80
|
+
return result.stdout
|
|
68
81
|
except Exception as e:
|
|
69
82
|
logger.error(e)
|
|
70
83
|
return result.stdout
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.0.18"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{adam_community-1.0.18 → adam_community-1.0.19}/adam_community/cli/templates/README_agent.md.j2
RENAMED
|
File without changes
|
{adam_community-1.0.18 → adam_community-1.0.19}/adam_community/cli/templates/README_kit.md.j2
RENAMED
|
File without changes
|
|
File without changes
|
{adam_community-1.0.18 → adam_community-1.0.19}/adam_community/cli/templates/agent_python.py.j2
RENAMED
|
File without changes
|
{adam_community-1.0.18 → adam_community-1.0.19}/adam_community/cli/templates/configure.json.j2
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{adam_community-1.0.18 → adam_community-1.0.19}/adam_community/cli/templates/kit_python.py.j2
RENAMED
|
File without changes
|
{adam_community-1.0.18 → adam_community-1.0.19}/adam_community/cli/templates/long_description.md.j2
RENAMED
|
File without changes
|
|
File without changes
|
{adam_community-1.0.18 → adam_community-1.0.19}/adam_community/cli/templates/rag_python.py.j2
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{adam_community-1.0.18 → adam_community-1.0.19}/adam_community.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|