adam-community 1.0.17__py3-none-any.whl → 1.0.19__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.
@@ -1 +1 @@
1
- __version__ = "1.0.17"
1
+ __version__ = "1.0.19"
@@ -260,9 +260,9 @@ def create_zip_package(directory: Path) -> str:
260
260
 
261
261
  # 根据类型添加不同的文件
262
262
  if config_type == "kit":
263
- other_files = ["long_description.md", "input.json"]
263
+ other_files = ["long_description.md", "long_description_en.md", "input.json"]
264
264
  else:
265
- other_files = ["initial_assistant_message.md", "initial_system_prompt.md", "long_description.md"]
265
+ other_files = ["initial_assistant_message.md", "initial_assistant_message_en.md", "initial_system_prompt.md", "initial_system_prompt_en.md", "long_description.md", "long_description_en.md"]
266
266
 
267
267
  for file in other_files:
268
268
  file_path = directory / "config" / file
@@ -79,6 +79,10 @@ def init(name: str, display_name: str, description: str, version: str, author: s
79
79
  render_and_save(env, 'long_description.md.j2', config_path / "long_description.md", template_vars)
80
80
  click.echo(f"生成描述文件: config/long_description.md")
81
81
 
82
+ # 生成描述文件 (英文版本)
83
+ render_and_save(env, 'long_description_en.md.j2', config_path / "long_description_en.md", template_vars)
84
+ click.echo(f"生成描述文件 (英文): config/long_description_en.md")
85
+
82
86
  if type == 'kit':
83
87
  generate_kit_files(env, project_path, config_path, template_vars)
84
88
  else: # agent
@@ -143,10 +147,18 @@ def generate_agent_files(env: Environment, project_path: Path, config_path: Path
143
147
  render_and_save(env, 'initial_system_prompt.md.j2', config_path / "initial_system_prompt.md", template_vars)
144
148
  click.echo(f"生成系统提示文件: config/initial_system_prompt.md")
145
149
 
150
+ # 生成 initial_system_prompt_en.md (英文版本)
151
+ render_and_save(env, 'initial_system_prompt_en.md.j2', config_path / "initial_system_prompt_en.md", template_vars)
152
+ click.echo(f"生成系统提示文件 (英文): config/initial_system_prompt_en.md")
153
+
146
154
  # 生成 initial_assistant_message.md
147
155
  render_and_save(env, 'initial_assistant_message.md.j2', config_path / "initial_assistant_message.md", template_vars)
148
156
  click.echo(f"生成助手消息文件: config/initial_assistant_message.md")
149
157
 
158
+ # 生成 initial_assistant_message_en.md (英文版本)
159
+ render_and_save(env, 'initial_assistant_message_en.md.j2', config_path / "initial_assistant_message_en.md", template_vars)
160
+ click.echo(f"生成助手消息文件 (英文): config/initial_assistant_message_en.md")
161
+
150
162
  # 生成主要的Python实现文件
151
163
  python_filename = f"{template_vars['name'].replace('-', '_')}.py"
152
164
  render_and_save(env, 'agent_python.py.j2', project_path / python_filename, template_vars)
@@ -0,0 +1,21 @@
1
+ ## Welcome to use {{ display_name }} tool!
2
+
3
+ I am your professional {{ display_name }} assistant and can help you complete the following tasks:
4
+
5
+ ### 🔧 Main Features
6
+ - Feature 1: Basic processing functionality
7
+ - Feature 2: Advanced analysis functionality
8
+ - Feature 3: Result export functionality
9
+
10
+ ### 🚀 Quick Start
11
+ 1. Describe your requirements
12
+ 2. Provide necessary input data
13
+ 3. I will execute the corresponding operations for you
14
+ 4. Get detailed analysis results
15
+
16
+ ### 💡 Usage Suggestions
17
+ - Please describe your requirements in detail
18
+ - If you have files to process, please upload relevant files
19
+ - I will provide you with detailed operation steps and result analysis
20
+
21
+ Now, please tell me what you would like me to do for you?
@@ -0,0 +1,22 @@
1
+ # Your Information
2
+ You are a professional {{ display_name }} expert with extensive experience and deep expertise. Your task is to assist users in completing various related tasks using the {{ display_name }} tool.
3
+
4
+ # Your Task Scope
5
+ 1. Understand user needs and questions
6
+ 2. Select appropriate tools and methods
7
+ 3. Execute relevant operations and generate results
8
+ 4. Provide detailed analysis and recommendations
9
+ 5. Generate standardized report documents
10
+
11
+ # Workflow
12
+ 1. Carefully analyze user requirements
13
+ 2. Develop processing steps and plans
14
+ 3. Execute corresponding tool calls
15
+ 4. Analyze processing results
16
+ 5. Generate detailed reports
17
+
18
+ # Important Notes
19
+ - Always maintain professionalism and accuracy
20
+ - Fully verify results
21
+ - Report anomalies and issues promptly
22
+ - Provide clear explanations
@@ -0,0 +1,61 @@
1
+ <!-- Overview/Features/Metrics These three headings are fixed, you can leave them empty, please start your content from the second-level heading -->
2
+
3
+ <!-- Must be retained -->
4
+ # Overview
5
+
6
+ ## {{ display_name }}
7
+ {{ description }}
8
+
9
+ This is a tool developed based on Adam Tool Protocol (ATP), providing complete functionality and user interface.
10
+
11
+ ## Main Features
12
+ - Feature 1: Describe main functionality
13
+ - Feature 2: Describe auxiliary functionality
14
+ - Feature 3: Describe extended functionality
15
+
16
+ <!-- Suggested to retain -->
17
+ # Features
18
+
19
+ ## Core Features
20
+
21
+ ### Usability
22
+ - Simple and intuitive operation interface
23
+ - Detailed operation documentation
24
+ - Complete error handling mechanism
25
+
26
+ ### Reliability
27
+ - Stable algorithm implementation
28
+ - Complete test coverage
29
+ - Detailed logging
30
+
31
+ ### Extensibility
32
+ - Modular code structure
33
+ - Flexible configuration options
34
+ - Good interface design
35
+
36
+ <!-- Suggested to retain -->
37
+ # Metrics
38
+
39
+ ## Performance Metrics
40
+
41
+ | Metric | Value | Description |
42
+ |--------|-------|-------------|
43
+ | Processing Speed | To be tested | Average processing time |
44
+ | Accuracy | To be tested | Processing accuracy |
45
+ | Stability | To be tested | System stability |
46
+
47
+ ## Usage Statistics
48
+
49
+ | Category | Percentage | Details |
50
+ |----------|------------|---------|
51
+ | Academic Research | 40% | Universities and research institutes |
52
+ | Industrial Applications | 35% | Enterprise production environment |
53
+ | Personal Projects | 25% | Personal learning and research |
54
+
55
+ ## System Requirements
56
+
57
+ | Component | Requirement | Description |
58
+ |-----------|-------------|-------------|
59
+ | Python Version | >= 3.8 | Runtime environment requirement |
60
+ | Memory | >= 2GB | Recommended configuration |
61
+ | Storage Space | >= 1GB | Installation space |
adam_community/util.py CHANGED
@@ -64,7 +64,20 @@ class RAG:
64
64
  return e.stderr.strip()
65
65
 
66
66
  try:
67
- return "\n".join(json.loads(result.stdout))
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,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: adam_community
3
- Version: 1.0.17
3
+ Version: 1.0.19
4
4
  Summary: Adam Community Tools and Utilities
5
5
  Home-page: https://github.com/yourusername/adam-community
6
6
  Author: Adam Community
@@ -1,11 +1,11 @@
1
1
  adam_community/__init__.py,sha256=vAmF9VQR6D4peppH0hnrHDmZK5cFeFPh11GIsTKUXhE,429
2
- adam_community/__version__.py,sha256=b5lrc3KBf8Kc2uTga-yZSnLhmkk2ipb-eWAaq7t4W1M,23
2
+ adam_community/__version__.py,sha256=3HJlki3WDXw4aYwHo9LB3tzME44RgDb7PUJ_5NVNfA4,23
3
3
  adam_community/tool.py,sha256=CCzWosxtuZ0yk7mupmnlgMpO59jr1hl-a_brSGIqhDI,4867
4
- adam_community/util.py,sha256=CAyMS-UNFjDcdSRWNCIOseAvprP0GEpfJzhO3l5VY1U,11051
4
+ adam_community/util.py,sha256=VJVXOWbnwmYAL3K0i4X_yItdmxEnC-IgyuVW74kTU4U,11664
5
5
  adam_community/cli/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
6
- adam_community/cli/build.py,sha256=RyXAK62RBwV2XnXw3B5YCs6AQi7wvnDA8lKTudLbM38,12461
6
+ adam_community/cli/build.py,sha256=R9Lj9FOCI1-GASlyRyp_hX7_spPxgenTSMduXYYAmmE,12579
7
7
  adam_community/cli/cli.py,sha256=xlPvn0aq3TpAPjA7z9shsCqR1aHDVtZuhvtc_SNA_cQ,2811
8
- adam_community/cli/init.py,sha256=hzzz5Tus9_L5YKE10ii7s2x9znDxfqBvjDOmPn-0KvY,8632
8
+ adam_community/cli/init.py,sha256=ryfS4BmkaPZkMuPXCSKwboEuMXtZkZ170J--yh9L3i0,9418
9
9
  adam_community/cli/parser.py,sha256=LWYVW69z4ICFXgvD5Vtcy1P-rEUxV_Rs4X96n34i3gE,17732
10
10
  adam_community/cli/updater.py,sha256=zN521c-G20MKz63wm7h16quBxiEZp4vQ6AbyV-IqtXk,6304
11
11
  adam_community/cli/templates/Makefile.j2,sha256=arpo9AzOZTmjxIYiya9S_G_ldHYVVvf4cVOxNooQeGs,113
@@ -16,14 +16,17 @@ adam_community/cli/templates/__init__.py,sha256=43rU9rFkpsVrWjxR-brDnT2eakgRtb4X
16
16
  adam_community/cli/templates/agent_python.py.j2,sha256=EOnmsJUvQRrcO7K7c88kI42gMmcM0Z4ab46qwOJXbH8,4192
17
17
  adam_community/cli/templates/configure.json.j2,sha256=HWhhFGEZsXxDJCkciehY8SqaV7kSPQ4588TR9WN__cI,354
18
18
  adam_community/cli/templates/initial_assistant_message.md.j2,sha256=R17qhco2Ds5es2HMlAPcinVi5Z-vLfyyu1lY9HMBFk4,595
19
+ adam_community/cli/templates/initial_assistant_message_en.md.j2,sha256=o1nPDF_DBOA0pjnrxYCIjFWPLaNmE8G07OA-DMA5uNo,733
19
20
  adam_community/cli/templates/initial_system_prompt.md.j2,sha256=mF7wdVVfvPmPgoskSv4tnLrnyDC4WOrhSx1Ud7mn0Pk,679
21
+ adam_community/cli/templates/initial_system_prompt_en.md.j2,sha256=zdSS4Tdh46gAg5vYpzaBJvBIaYzHF7llhU3W3vDudnc,795
20
22
  adam_community/cli/templates/input.json.j2,sha256=LRkIhPln3BnmPRrFebsjUa5t9vcED_7Uimp1Esb1ThU,607
21
23
  adam_community/cli/templates/kit_python.py.j2,sha256=fVQ8EVDMaxPCv9CzYjjoV8NLJMmtVCx5tFaM9eO7f8M,2788
22
24
  adam_community/cli/templates/long_description.md.j2,sha256=Rj6hcuNzEL0Sp17GQVCRJyNytxO22KcKFvEnZlGpevE,1385
25
+ adam_community/cli/templates/long_description_en.md.j2,sha256=xSbahwGarXlWopZqHw7lrcv1dQuvwj2ChhZv5pJmUy4,1725
23
26
  adam_community/cli/templates/rag_python.py.j2,sha256=YJL7-WIx-Dumt7lHuUGxl3Rbaw0kpkh8hpcCJ5lz9lA,2494
24
27
  adam_community/cli/templates/toolbox_python.py.j2,sha256=EOnmsJUvQRrcO7K7c88kI42gMmcM0Z4ab46qwOJXbH8,4192
25
- adam_community-1.0.17.dist-info/METADATA,sha256=O0ERNe8KzBq0XeeTuW5q-nLJIZasP5MOtOhNO3-w-jM,2172
26
- adam_community-1.0.17.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
27
- adam_community-1.0.17.dist-info/entry_points.txt,sha256=4I7yRkn7cHwPY8-fWQLeAvKjc24zUy8Z65VsZNs0Wos,56
28
- adam_community-1.0.17.dist-info/top_level.txt,sha256=MS8jbePXKZChih9kGizNVX0I1MFZFGWBMCIW_r86qhU,15
29
- adam_community-1.0.17.dist-info/RECORD,,
28
+ adam_community-1.0.19.dist-info/METADATA,sha256=KUkh2oew3a2Q7EMRyIW9XIn__bR5CURp1Td0k2C3c_o,2172
29
+ adam_community-1.0.19.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
30
+ adam_community-1.0.19.dist-info/entry_points.txt,sha256=4I7yRkn7cHwPY8-fWQLeAvKjc24zUy8Z65VsZNs0Wos,56
31
+ adam_community-1.0.19.dist-info/top_level.txt,sha256=MS8jbePXKZChih9kGizNVX0I1MFZFGWBMCIW_r86qhU,15
32
+ adam_community-1.0.19.dist-info/RECORD,,