xgae 0.2.3__tar.gz → 0.3.0__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.
Potentially problematic release.
This version of xgae might be problematic. Click here for more details.
- {xgae-0.2.3 → xgae-0.3.0}/CHANGELOG.md +16 -5
- {xgae-0.2.3 → xgae-0.3.0}/PKG-INFO +2 -2
- {xgae-0.2.3/src/examples/agent/langgraph/react → xgae-0.3.0/examples/agent/langgraph/reflection}/agent_base.py +1 -0
- xgae-0.2.3/src/examples/agent/langgraph/react/react_agent.py → xgae-0.3.0/examples/agent/langgraph/reflection/reflection_agent.py +4 -4
- xgae-0.2.3/src/examples/agent/langgraph/react/run_react_agent.py → xgae-0.3.0/examples/agent/langgraph/reflection/run_agent_app.py +2 -2
- {xgae-0.2.3 → xgae-0.3.0}/pyproject.toml +2 -2
- {xgae-0.2.3 → xgae-0.3.0}/uv.lock +795 -3
- {xgae-0.2.3/src → xgae-0.3.0}/xgae/engine/task_engine.py +37 -2
- xgae-0.3.0/xgae/gaia2/are_engine.py +122 -0
- {xgae-0.2.3 → xgae-0.3.0}/.env +0 -0
- {xgae-0.2.3 → xgae-0.3.0}/.python-version +0 -0
- {xgae-0.2.3 → xgae-0.3.0}/README.md +0 -0
- {xgae-0.2.3/src/examples/agent/langgraph/react → xgae-0.3.0/examples/agent/langgraph/reflection}/custom_prompt_rag.py +0 -0
- {xgae-0.2.3/src/examples/agent/langgraph/react → xgae-0.3.0/examples/agent/langgraph/reflection}/result_eval_agent.py +0 -0
- {xgae-0.2.3/src → xgae-0.3.0}/examples/engine/run_custom_and_agent_tools.py +0 -0
- {xgae-0.2.3/src → xgae-0.3.0}/examples/engine/run_general_tools.py +0 -0
- {xgae-0.2.3/src → xgae-0.3.0}/examples/engine/run_human_in_loop.py +0 -0
- {xgae-0.2.3/src → xgae-0.3.0}/examples/engine/run_simple.py +0 -0
- {xgae-0.2.3/src → xgae-0.3.0}/examples/tools/custom_fault_tools_app.py +0 -0
- {xgae-0.2.3/src → xgae-0.3.0}/examples/tools/simu_a2a_tools_app.py +0 -0
- {xgae-0.2.3 → xgae-0.3.0}/mcpservers/custom_servers.json +0 -0
- {xgae-0.2.3 → xgae-0.3.0}/mcpservers/xga_server.json +0 -0
- {xgae-0.2.3 → xgae-0.3.0}/mcpservers/xga_server_sse.json +0 -0
- {xgae-0.2.3 → xgae-0.3.0}/templates/agent_tool_prompt_template.txt +0 -0
- {xgae-0.2.3 → xgae-0.3.0}/templates/custom_tool_prompt_template.txt +0 -0
- {xgae-0.2.3 → xgae-0.3.0}/templates/example/fault_user_prompt.txt +0 -0
- {xgae-0.2.3 → xgae-0.3.0}/templates/example/result_eval_template.txt +0 -0
- {xgae-0.2.3 → xgae-0.3.0}/templates/gemini_system_prompt_template.txt +0 -0
- {xgae-0.2.3 → xgae-0.3.0}/templates/general_tool_prompt_template.txt +0 -0
- {xgae-0.2.3 → xgae-0.3.0}/templates/system_prompt_response_sample.txt +0 -0
- {xgae-0.2.3 → xgae-0.3.0}/templates/system_prompt_template.txt +0 -0
- {xgae-0.2.3 → xgae-0.3.0}/test/test_chroma.py +0 -0
- {xgae-0.2.3 → xgae-0.3.0}/test/test_langfuse.py +0 -0
- {xgae-0.2.3 → xgae-0.3.0}/test/test_litellm_langfuse.py +0 -0
- {xgae-0.2.3/src → xgae-0.3.0}/xgae/__init__.py +0 -0
- {xgae-0.2.3/src → xgae-0.3.0}/xgae/engine/engine_base.py +0 -0
- {xgae-0.2.3/src → xgae-0.3.0}/xgae/engine/mcp_tool_box.py +0 -0
- {xgae-0.2.3/src → xgae-0.3.0}/xgae/engine/prompt_builder.py +0 -0
- {xgae-0.2.3/src → xgae-0.3.0}/xgae/engine/responser/non_stream_responser.py +0 -0
- {xgae-0.2.3/src → xgae-0.3.0}/xgae/engine/responser/responser_base.py +0 -0
- {xgae-0.2.3/src → xgae-0.3.0}/xgae/engine/responser/stream_responser.py +0 -0
- {xgae-0.2.3/src → xgae-0.3.0}/xgae/engine/task_langfuse.py +0 -0
- {xgae-0.2.3/src → xgae-0.3.0}/xgae/engine_cli_app.py +0 -0
- {xgae-0.2.3/src → xgae-0.3.0}/xgae/tools/without_general_tools_app.py +0 -0
- {xgae-0.2.3/src → xgae-0.3.0}/xgae/utils/__init__.py +0 -0
- {xgae-0.2.3/src → xgae-0.3.0}/xgae/utils/json_helpers.py +0 -0
- {xgae-0.2.3/src → xgae-0.3.0}/xgae/utils/llm_client.py +0 -0
- {xgae-0.2.3/src → xgae-0.3.0}/xgae/utils/misc.py +0 -0
- {xgae-0.2.3/src → xgae-0.3.0}/xgae/utils/setup_env.py +0 -0
- {xgae-0.2.3/src → xgae-0.3.0}/xgae/utils/xml_tool_parser.py +0 -0
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## [0.3.0] - 2025-10-24
|
|
2
|
+
### Added
|
|
3
|
+
- Support GAIA2 ARE Engine
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
## [0.2.4] - 2025-9-23
|
|
8
|
+
### Modified
|
|
9
|
+
- Project structure
|
|
10
|
+
|
|
11
|
+
|
|
1
12
|
## [0.2.3] - 2025-9-19
|
|
2
13
|
### Modified
|
|
3
14
|
- CustomPromptRag: remove FastEmbedEmbeddings, use 'text-embedding-v3' model for chinese, avoid download 'bge-small-zh-v1.5'
|
|
@@ -5,7 +16,7 @@
|
|
|
5
16
|
|
|
6
17
|
## [0.2.1] - 2025-9-17
|
|
7
18
|
### Added
|
|
8
|
-
- Example
|
|
19
|
+
- Example ReflectionAgent: add CustomPromptRag, use FastEmbedEmbeddings and 'BAAI/bge-small-zh-v1.5' model
|
|
9
20
|
### Modified
|
|
10
21
|
- pyproject.toml: add [project.optional-dependencies] 'examples'
|
|
11
22
|
|
|
@@ -13,20 +24,20 @@
|
|
|
13
24
|
## [0.2.0] - 2025-9-10
|
|
14
25
|
### Added
|
|
15
26
|
- Agent Engine release 0.2
|
|
16
|
-
- Example: Langgraph
|
|
27
|
+
- Example: Langgraph ReflectionAgent release 0.2
|
|
17
28
|
### Fixed
|
|
18
29
|
- Agent Engine: call mcp tool fail, call 'ask' tool again and again
|
|
19
|
-
- Example Langgraph
|
|
30
|
+
- Example Langgraph ReflectionAgent: retry on 'ask', user_input is ask answer
|
|
20
31
|
|
|
21
32
|
|
|
22
33
|
## [0.1.20] - 2025-9-9
|
|
23
34
|
### Added
|
|
24
|
-
- Example: Langgraph
|
|
35
|
+
- Example: Langgraph ReflectionAgent add final_result_agent
|
|
25
36
|
|
|
26
37
|
|
|
27
38
|
## [0.1.19] - 2025-9-8
|
|
28
39
|
### Added
|
|
29
|
-
- Example: Langgraph
|
|
40
|
+
- Example: Langgraph ReflectionAgent release V1, full logic but no final result agent and tool select agent
|
|
30
41
|
|
|
31
42
|
|
|
32
43
|
# Release Changelog
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: xgae
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: Extreme General Agent Engine
|
|
5
|
-
Requires-Python: >=3.
|
|
5
|
+
Requires-Python: >=3.11
|
|
6
6
|
Requires-Dist: colorlog==6.9.0
|
|
7
7
|
Requires-Dist: langchain-mcp-adapters==0.1.9
|
|
8
8
|
Requires-Dist: langfuse==2.60.9
|
|
@@ -19,12 +19,12 @@ from xgae.engine.engine_base import XGATaskResult
|
|
|
19
19
|
from xgae.engine.mcp_tool_box import XGAMcpToolBox
|
|
20
20
|
from xgae.engine.task_engine import XGATaskEngine
|
|
21
21
|
|
|
22
|
-
from examples.agent.langgraph.
|
|
23
|
-
from examples.agent.langgraph.
|
|
24
|
-
from examples.agent.langgraph.
|
|
22
|
+
from examples.agent.langgraph.reflection.agent_base import AgentContext, TaskState, EvaluateResult
|
|
23
|
+
from examples.agent.langgraph.reflection.result_eval_agent import TaskResultEvalAgent
|
|
24
|
+
from examples.agent.langgraph.reflection.custom_prompt_rag import CustomPromptRag
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
class
|
|
27
|
+
class ReflectiontAgent:
|
|
28
28
|
MAX_TASK_RETRY = 2
|
|
29
29
|
QUALIFIED_RESULT_SCORE = 0.7
|
|
30
30
|
|
|
@@ -4,7 +4,7 @@ from uuid import uuid4
|
|
|
4
4
|
|
|
5
5
|
from xgae.utils.setup_env import setup_logging
|
|
6
6
|
|
|
7
|
-
from examples.agent.langgraph.
|
|
7
|
+
from examples.agent.langgraph.reflection.reflection_agent import ReflectiontAgent, AgentContext
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
async def main():
|
|
@@ -17,7 +17,7 @@ async def main():
|
|
|
17
17
|
]
|
|
18
18
|
|
|
19
19
|
for user_input in user_inputs:
|
|
20
|
-
agent =
|
|
20
|
+
agent = ReflectiontAgent(use_prompt_rag=True)
|
|
21
21
|
task_no += 1
|
|
22
22
|
context: AgentContext = {
|
|
23
23
|
'task_id': f"agent_task_{uuid4()}", # can be set with request_id, must be unique
|