xgae 0.2.3__tar.gz → 0.3.1__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.

Files changed (50) hide show
  1. {xgae-0.2.3 → xgae-0.3.1}/CHANGELOG.md +16 -5
  2. {xgae-0.2.3 → xgae-0.3.1}/PKG-INFO +4 -4
  3. {xgae-0.2.3/src/examples/agent/langgraph/react → xgae-0.3.1/examples/agent/langgraph/reflection}/agent_base.py +1 -0
  4. {xgae-0.2.3/src/examples/agent/langgraph/react → xgae-0.3.1/examples/agent/langgraph/reflection}/custom_prompt_rag.py +2 -1
  5. xgae-0.2.3/src/examples/agent/langgraph/react/react_agent.py → xgae-0.3.1/examples/agent/langgraph/reflection/reflection_agent.py +4 -4
  6. xgae-0.2.3/src/examples/agent/langgraph/react/run_react_agent.py → xgae-0.3.1/examples/agent/langgraph/reflection/run_agent_app.py +2 -2
  7. {xgae-0.2.3 → xgae-0.3.1}/pyproject.toml +4 -4
  8. {xgae-0.2.3 → xgae-0.3.1}/uv.lock +817 -11
  9. {xgae-0.2.3/src → xgae-0.3.1}/xgae/engine/engine_base.py +5 -1
  10. {xgae-0.2.3/src → xgae-0.3.1}/xgae/engine/mcp_tool_box.py +14 -8
  11. {xgae-0.2.3/src → xgae-0.3.1}/xgae/engine/responser/non_stream_responser.py +2 -1
  12. {xgae-0.2.3/src → xgae-0.3.1}/xgae/engine/responser/stream_responser.py +3 -2
  13. {xgae-0.2.3/src → xgae-0.3.1}/xgae/engine/task_engine.py +42 -5
  14. xgae-0.3.1/xgae/gaia2/are_engine.py +123 -0
  15. {xgae-0.2.3 → xgae-0.3.1}/.env +0 -0
  16. {xgae-0.2.3 → xgae-0.3.1}/.python-version +0 -0
  17. {xgae-0.2.3 → xgae-0.3.1}/README.md +0 -0
  18. {xgae-0.2.3/src/examples/agent/langgraph/react → xgae-0.3.1/examples/agent/langgraph/reflection}/result_eval_agent.py +0 -0
  19. {xgae-0.2.3/src → xgae-0.3.1}/examples/engine/run_custom_and_agent_tools.py +0 -0
  20. {xgae-0.2.3/src → xgae-0.3.1}/examples/engine/run_general_tools.py +0 -0
  21. {xgae-0.2.3/src → xgae-0.3.1}/examples/engine/run_human_in_loop.py +0 -0
  22. {xgae-0.2.3/src → xgae-0.3.1}/examples/engine/run_simple.py +0 -0
  23. {xgae-0.2.3/src → xgae-0.3.1}/examples/tools/custom_fault_tools_app.py +0 -0
  24. {xgae-0.2.3/src → xgae-0.3.1}/examples/tools/simu_a2a_tools_app.py +0 -0
  25. {xgae-0.2.3 → xgae-0.3.1}/mcpservers/custom_servers.json +0 -0
  26. {xgae-0.2.3 → xgae-0.3.1}/mcpservers/xga_server.json +0 -0
  27. {xgae-0.2.3 → xgae-0.3.1}/mcpservers/xga_server_sse.json +0 -0
  28. {xgae-0.2.3 → xgae-0.3.1}/templates/agent_tool_prompt_template.txt +0 -0
  29. {xgae-0.2.3 → xgae-0.3.1}/templates/custom_tool_prompt_template.txt +0 -0
  30. {xgae-0.2.3 → xgae-0.3.1}/templates/example/fault_user_prompt.txt +0 -0
  31. {xgae-0.2.3 → xgae-0.3.1}/templates/example/result_eval_template.txt +0 -0
  32. {xgae-0.2.3 → xgae-0.3.1}/templates/gemini_system_prompt_template.txt +0 -0
  33. {xgae-0.2.3 → xgae-0.3.1}/templates/general_tool_prompt_template.txt +0 -0
  34. {xgae-0.2.3 → xgae-0.3.1}/templates/system_prompt_response_sample.txt +0 -0
  35. {xgae-0.2.3 → xgae-0.3.1}/templates/system_prompt_template.txt +0 -0
  36. {xgae-0.2.3 → xgae-0.3.1}/test/test_chroma.py +0 -0
  37. {xgae-0.2.3 → xgae-0.3.1}/test/test_langfuse.py +0 -0
  38. {xgae-0.2.3 → xgae-0.3.1}/test/test_litellm_langfuse.py +0 -0
  39. {xgae-0.2.3/src → xgae-0.3.1}/xgae/__init__.py +0 -0
  40. {xgae-0.2.3/src → xgae-0.3.1}/xgae/engine/prompt_builder.py +0 -0
  41. {xgae-0.2.3/src → xgae-0.3.1}/xgae/engine/responser/responser_base.py +0 -0
  42. {xgae-0.2.3/src → xgae-0.3.1}/xgae/engine/task_langfuse.py +0 -0
  43. {xgae-0.2.3/src → xgae-0.3.1}/xgae/engine_cli_app.py +0 -0
  44. {xgae-0.2.3/src → xgae-0.3.1}/xgae/tools/without_general_tools_app.py +0 -0
  45. {xgae-0.2.3/src → xgae-0.3.1}/xgae/utils/__init__.py +0 -0
  46. {xgae-0.2.3/src → xgae-0.3.1}/xgae/utils/json_helpers.py +0 -0
  47. {xgae-0.2.3/src → xgae-0.3.1}/xgae/utils/llm_client.py +0 -0
  48. {xgae-0.2.3/src → xgae-0.3.1}/xgae/utils/misc.py +0 -0
  49. {xgae-0.2.3/src → xgae-0.3.1}/xgae/utils/setup_env.py +0 -0
  50. {xgae-0.2.3/src → xgae-0.3.1}/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 ReactAgent: add CustomPromptRag, use FastEmbedEmbeddings and 'BAAI/bge-small-zh-v1.5' model
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 ReactAgent release 0.2
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 ReactAgent: retry on 'ask', user_input is ask answer
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 ReactAgent add final_result_agent
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 ReactAgent release V1, full logic but no final result agent and tool select agent
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,13 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xgae
3
- Version: 0.2.3
3
+ Version: 0.3.1
4
4
  Summary: Extreme General Agent Engine
5
- Requires-Python: >=3.13
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
9
- Requires-Dist: litellm==1.74.15
10
- Requires-Dist: mcp==1.13.0
9
+ Requires-Dist: litellm==1.71.1
10
+ Requires-Dist: mcp==1.11.0
11
11
  Provides-Extra: examples
12
12
  Requires-Dist: chromadb==1.1.0; extra == 'examples'
13
13
  Requires-Dist: langchain-community==0.3.29; extra == 'examples'
@@ -1,4 +1,5 @@
1
1
  from typing import Any, Dict, List, TypedDict, Optional
2
+
2
3
  from xgae.engine.engine_base import XGATaskResult
3
4
 
4
5
  class EvaluateResult(TypedDict, total=False):
@@ -1,6 +1,7 @@
1
1
  import logging
2
2
  import os
3
- from typing import override, List
3
+ from typing import List
4
+ from typing_extensions import override
4
5
 
5
6
  from langchain_core.documents import Document
6
7
  from langchain_core.embeddings import Embeddings
@@ -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.react.agent_base import AgentContext, TaskState, EvaluateResult
23
- from examples.agent.langgraph.react.result_eval_agent import TaskResultEvalAgent
24
- from examples.agent.langgraph.react.custom_prompt_rag import CustomPromptRag
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 XGAReactAgent:
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.react.react_agent import XGAReactAgent, AgentContext
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 = XGAReactAgent(use_prompt_rag=True)
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
@@ -1,13 +1,13 @@
1
1
  [project]
2
2
  name = "xgae"
3
- version = "0.2.3"
3
+ version = "0.3.1"
4
4
  description = "Extreme General Agent Engine"
5
5
  readme = "README.md"
6
- requires-python = ">=3.13"
6
+ requires-python = ">=3.11"
7
7
  dependencies = [
8
8
  "colorlog==6.9.0",
9
- "litellm==1.74.15",
10
- "mcp==1.13.0",
9
+ "litellm==1.71.1",
10
+ "mcp==1.11.0",
11
11
  "langfuse==2.60.9",
12
12
  "langchain-mcp-adapters==0.1.9",
13
13
  ]