xgae 0.3.1__py3-none-any.whl → 0.3.3__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 xgae might be problematic. Click here for more details.

@@ -167,12 +167,14 @@ class XGAMcpToolBox(XGAToolBox):
167
167
  param_properties.pop('title', None)
168
168
 
169
169
  metadata = tool.metadata or {}
170
- tool_schema = XGAToolSchema(tool_name=tool.name,
171
- tool_type=tool_type,
172
- server_name=server_name,
173
- description=tool.description,
174
- input_schema=input_schema,
175
- metadata=metadata)
170
+ tool_schema = XGAToolSchema(
171
+ tool_name = tool.name,
172
+ tool_type = tool_type,
173
+ server_name = server_name,
174
+ description = tool.description,
175
+ input_schema = input_schema,
176
+ metadata = metadata
177
+ )
176
178
  self.mcp_tool_schemas[server_name].append(tool_schema)
177
179
 
178
180
  self._is_loaded_mcp_tool_schemas = True
@@ -83,9 +83,10 @@ class XGAPromptBuilder():
83
83
  tool_info = ""
84
84
  for tool_schema in tool_schemas:
85
85
  description = tool_schema.description if tool_schema.description else 'No description available'
86
- tool_info += f"- **{tool_schema.tool_name}**: {description}\n"
86
+ tool_info += f"- {tool_schema.tool_name}: {description}\n"
87
87
  parameters = tool_schema.input_schema.get('properties', {})
88
- tool_info += f" Parameters: {parameters}\n"
88
+ tool_info += f" Parameters: {parameters}\n"
89
+ tool_info += "\n"
89
90
  tool_prompt = tool_prompt.replace("{tool_schemas}", tool_info)
90
91
 
91
92
  return tool_prompt
xgae/utils/llm_client.py CHANGED
@@ -51,6 +51,9 @@ class LLMClient:
51
51
  self._init_langfuse()
52
52
 
53
53
  llm_config = llm_config or LLMConfig()
54
+ if llm_config.get('model') and llm_config.get('model_name') is None:
55
+ llm_config['model_name'] = llm_config.get('model')
56
+
54
57
  self.max_retries = int(os.getenv('LLM_MAX_RETRIES', 1))
55
58
 
56
59
  env_llm_model = os.getenv('LLM_MODEL', "openai/qwen3-235b-a22b")
@@ -0,0 +1,36 @@
1
+ Metadata-Version: 2.4
2
+ Name: xgae
3
+ Version: 0.3.3
4
+ Summary: Extreme General Agent Engine
5
+ Requires-Python: >=3.11
6
+ Requires-Dist: colorlog>=6.9.0
7
+ Requires-Dist: langchain-mcp-adapters>=0.1.9
8
+ Requires-Dist: langfuse==2.60.9
9
+ Requires-Dist: litellm>=1.71.1
10
+ Requires-Dist: mcp>=1.11.0
11
+ Provides-Extra: examples
12
+ Requires-Dist: chromadb==1.1.0; extra == 'examples'
13
+ Requires-Dist: langchain-community==0.3.29; extra == 'examples'
14
+ Requires-Dist: langgraph==0.6.5; extra == 'examples'
15
+ Description-Content-Type: text/markdown
16
+
17
+ ## XGAE: Extreme General Agent Engine
18
+ ### Functional Features
19
+ - Support Custom prompt and external MCP Tools
20
+ - Support Langfuse
21
+ - Support Langgraph
22
+ - Support GAIA2 ARE agent and Custom MCP Apps
23
+ - Support Human-in-Loop in agent
24
+ - Can Use A2A protocol call A2A Agent as tool by 'xgaproxy' project
25
+ - Can Use E2B or Daytona Sandbox of 'xgatools' project
26
+
27
+ ### Non-Functional Features
28
+ - Faster than SUNA Engine's speed
29
+ - Architecture is lighter than SUNA Engine
30
+ - Separate tools from Agent Engine
31
+
32
+ ### Examples
33
+ - langgraph: Build React mode Langgraph Agent by XGA Engine
34
+ - are: Build GAIA2 ARE Agent by XGA Engine
35
+ - engine: Use XGA Engine in various scenarios
36
+ - tools: Simulation tools for example and test
@@ -1,8 +1,8 @@
1
1
  xgae/__init__.py,sha256=oBX_YzTliM-343BAlR-sD7BUZmsCJ7PY2oYrGBhsdLM,79
2
2
  xgae/engine_cli_app.py,sha256=FdmIpq8KDsgyZNfwCDgNX7FEZFeRFyGOt_H1oZF8aKs,2890
3
3
  xgae/engine/engine_base.py,sha256=bXwLxli7CK7JndAcOu-Rx4uTuy0pJDh_ZOGyhym76WY,1796
4
- xgae/engine/mcp_tool_box.py,sha256=7dOiP9cfBU8TfAxzbdw0V31ISF-o2TgdTVUqEemz004,11044
5
- xgae/engine/prompt_builder.py,sha256=6I5rjgvNJ27QJ8DDuBTplutoPZdGs9LYFv3TSgT7zmc,5045
4
+ xgae/engine/mcp_tool_box.py,sha256=vIVF-tDEqAkMkjexqjUTlJwS5q11MNGeNtcog3ww-SE,11012
5
+ xgae/engine/prompt_builder.py,sha256=wA1R4Be7Plg3TRnRK2ZfoMR9DNCMFVNLx1BwmsSIOQI,5076
6
6
  xgae/engine/task_engine.py,sha256=QhjTPQ_aREsT19QfT1nQwNLKUMwWdSgqlfjfCNq_dho,23470
7
7
  xgae/engine/task_langfuse.py,sha256=ifkGrPBv2daLTKE-fCfEtOoI0n4Pd-lCwhyRRL0h308,2850
8
8
  xgae/engine/responser/non_stream_responser.py,sha256=WFzrT0tHGVLi_AR1IrIPPvpQ94ne7slwbFyXaoTpCQc,5318
@@ -12,11 +12,11 @@ xgae/gaia2/are_engine.py,sha256=QPvyWEydeiOECQ7WfxjMIurQHD_ET7uWQCnXVCh_ZQk,5094
12
12
  xgae/tools/without_general_tools_app.py,sha256=KqsdhxD3hvTpiygaGUVHysRFjvv_1A8zOwMKN1J0J0U,3821
13
13
  xgae/utils/__init__.py,sha256=ElaGS-zdeZeu6is41u3Ny7lkvhg7BDSK-jMNg9j6K5A,499
14
14
  xgae/utils/json_helpers.py,sha256=WD4G5U9Dh8N6J9O0L5wGyqj-NHi09kcXHGdLD_26nlc,3607
15
- xgae/utils/llm_client.py,sha256=rqnu_NYXBC0hl4aozP5UOSyf0q-ONB5ywtnrXzA88OE,15055
15
+ xgae/utils/llm_client.py,sha256=Mr5XUexGzNcbsqjn5Vfgin0Rm9jeR3cEPCIm79q46EM,15196
16
16
  xgae/utils/misc.py,sha256=aMWOvJ9VW52q-L9Lkjl1hvXqLwpJAmyxA-Z8jzqFG0U,907
17
17
  xgae/utils/setup_env.py,sha256=MqNG0c2QQBDFU1kI8frxr9kB5d08Mmi3QZ1OoorgIa0,2662
18
18
  xgae/utils/xml_tool_parser.py,sha256=Mb0d8kBrfyAEvUwW1Nqir-3BgxZRr0ZX3WymQouuFSo,4859
19
- xgae-0.3.1.dist-info/METADATA,sha256=vOaoxeqkHDKwSuRUscc9--4KpuOTqM5BwEXqsCPUQ1I,470
20
- xgae-0.3.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
21
- xgae-0.3.1.dist-info/entry_points.txt,sha256=wmvgtMQbtzTbDPETS-tbQJD7jVlcs4hp0w6wOB0ooCc,229
22
- xgae-0.3.1.dist-info/RECORD,,
19
+ xgae-0.3.3.dist-info/METADATA,sha256=ttEvft5B66L8KiKmz04dLi9f7O0cwwe2L0QbUdHC0rU,1213
20
+ xgae-0.3.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
21
+ xgae-0.3.3.dist-info/entry_points.txt,sha256=wmvgtMQbtzTbDPETS-tbQJD7jVlcs4hp0w6wOB0ooCc,229
22
+ xgae-0.3.3.dist-info/RECORD,,
@@ -1,14 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: xgae
3
- Version: 0.3.1
4
- Summary: Extreme General Agent Engine
5
- Requires-Python: >=3.11
6
- Requires-Dist: colorlog==6.9.0
7
- Requires-Dist: langchain-mcp-adapters==0.1.9
8
- Requires-Dist: langfuse==2.60.9
9
- Requires-Dist: litellm==1.71.1
10
- Requires-Dist: mcp==1.11.0
11
- Provides-Extra: examples
12
- Requires-Dist: chromadb==1.1.0; extra == 'examples'
13
- Requires-Dist: langchain-community==0.3.29; extra == 'examples'
14
- Requires-Dist: langgraph==0.6.5; extra == 'examples'
File without changes