xgae 0.3.1__py3-none-any.whl → 0.3.2__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.
- xgae/engine/mcp_tool_box.py +8 -6
- xgae/engine/prompt_builder.py +3 -2
- xgae/utils/llm_client.py +3 -0
- xgae-0.3.2.dist-info/METADATA +36 -0
- {xgae-0.3.1.dist-info → xgae-0.3.2.dist-info}/RECORD +7 -7
- xgae-0.3.1.dist-info/METADATA +0 -14
- {xgae-0.3.1.dist-info → xgae-0.3.2.dist-info}/WHEEL +0 -0
- {xgae-0.3.1.dist-info → xgae-0.3.2.dist-info}/entry_points.txt +0 -0
xgae/engine/mcp_tool_box.py
CHANGED
|
@@ -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(
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
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
|
xgae/engine/prompt_builder.py
CHANGED
|
@@ -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"-
|
|
86
|
+
tool_info += f"- {tool_schema.tool_name}: {description}\n"
|
|
87
87
|
parameters = tool_schema.input_schema.get('properties', {})
|
|
88
|
-
tool_info += f"
|
|
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.2
|
|
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
|
|
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=
|
|
5
|
-
xgae/engine/prompt_builder.py,sha256=
|
|
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=
|
|
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.
|
|
20
|
-
xgae-0.3.
|
|
21
|
-
xgae-0.3.
|
|
22
|
-
xgae-0.3.
|
|
19
|
+
xgae-0.3.2.dist-info/METADATA,sha256=fISH_3RDhy23BvVjZFzxrv3B71Jbo24sjO5xTqEu2cg,1193
|
|
20
|
+
xgae-0.3.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
21
|
+
xgae-0.3.2.dist-info/entry_points.txt,sha256=wmvgtMQbtzTbDPETS-tbQJD7jVlcs4hp0w6wOB0ooCc,229
|
|
22
|
+
xgae-0.3.2.dist-info/RECORD,,
|
xgae-0.3.1.dist-info/METADATA
DELETED
|
@@ -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
|
|
File without changes
|