xgae 0.3.4__tar.gz → 0.3.5__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 (63) hide show
  1. {xgae-0.3.4 → xgae-0.3.5}/CHANGELOG.md +1 -1
  2. {xgae-0.3.4 → xgae-0.3.5}/PKG-INFO +1 -1
  3. {xgae-0.3.4 → xgae-0.3.5}/examples/agent/are/templates/general_tool_prompt_template.txt +20 -8
  4. {xgae-0.3.4 → xgae-0.3.5}/pyproject.toml +1 -1
  5. {xgae-0.3.4 → xgae-0.3.5}/.env +0 -0
  6. {xgae-0.3.4 → xgae-0.3.5}/.python-version +0 -0
  7. {xgae-0.3.4 → xgae-0.3.5}/README.md +0 -0
  8. {xgae-0.3.4 → xgae-0.3.5}/examples/agent/are/README.md +0 -0
  9. {xgae-0.3.4 → xgae-0.3.5}/examples/agent/are/are/simulation/agents/xga/are_agent.py +0 -0
  10. {xgae-0.3.4 → xgae-0.3.5}/examples/agent/are/are/simulation/agents/xga/are_agent_factory.py +0 -0
  11. {xgae-0.3.4 → xgae-0.3.5}/examples/agent/are/are/simulation/agents/xga/are_prompt_builder.py +0 -0
  12. {xgae-0.3.4 → xgae-0.3.5}/examples/agent/are/are/simulation/agents/xga/are_tool_box.py +0 -0
  13. {xgae-0.3.4 → xgae-0.3.5}/examples/agent/are/are/simulation/agents/xga/mcp_tool_executor.py +0 -0
  14. {xgae-0.3.4 → xgae-0.3.5}/examples/agent/are/are/simulation/scenarios/scenario_bomc_fault/scenario.py +0 -0
  15. /xgae-0.3.4/examples/agent/are/are_modify_files.zip → /xgae-0.3.5/examples/agent/are/are_modify_ref.zip +0 -0
  16. {xgae-0.3.4 → xgae-0.3.5}/examples/agent/are/env.example +0 -0
  17. {xgae-0.3.4 → xgae-0.3.5}/examples/agent/are/mcpservers/example_mcp_apps.json +0 -0
  18. {xgae-0.3.4 → xgae-0.3.5}/examples/agent/are/mcpservers/xga_server.json +0 -0
  19. {xgae-0.3.4 → xgae-0.3.5}/examples/agent/are/templates/custom_tool_prompt_template.txt +0 -0
  20. {xgae-0.3.4 → xgae-0.3.5}/examples/agent/langgraph/reflection/agent_base.py +0 -0
  21. {xgae-0.3.4 → xgae-0.3.5}/examples/agent/langgraph/reflection/custom_prompt_rag.py +0 -0
  22. {xgae-0.3.4 → xgae-0.3.5}/examples/agent/langgraph/reflection/reflection_agent.py +0 -0
  23. {xgae-0.3.4 → xgae-0.3.5}/examples/agent/langgraph/reflection/result_eval_agent.py +0 -0
  24. {xgae-0.3.4 → xgae-0.3.5}/examples/agent/langgraph/reflection/run_agent_app.py +0 -0
  25. {xgae-0.3.4 → xgae-0.3.5}/examples/engine/run_custom_and_agent_tools.py +0 -0
  26. {xgae-0.3.4 → xgae-0.3.5}/examples/engine/run_general_tools.py +0 -0
  27. {xgae-0.3.4 → xgae-0.3.5}/examples/engine/run_human_in_loop.py +0 -0
  28. {xgae-0.3.4 → xgae-0.3.5}/examples/engine/run_simple.py +0 -0
  29. {xgae-0.3.4 → xgae-0.3.5}/examples/tools/custom_fault_tools_app.py +0 -0
  30. {xgae-0.3.4 → xgae-0.3.5}/examples/tools/simu_a2a_tools_app.py +0 -0
  31. {xgae-0.3.4 → xgae-0.3.5}/mcpservers/custom_servers.json +0 -0
  32. {xgae-0.3.4 → xgae-0.3.5}/mcpservers/xga_server.json +0 -0
  33. {xgae-0.3.4 → xgae-0.3.5}/mcpservers/xga_server_sse.json +0 -0
  34. {xgae-0.3.4 → xgae-0.3.5}/templates/agent_tool_prompt_template.txt +0 -0
  35. {xgae-0.3.4 → xgae-0.3.5}/templates/custom_tool_prompt_template.txt +0 -0
  36. {xgae-0.3.4 → xgae-0.3.5}/templates/example/fault_user_prompt.txt +0 -0
  37. {xgae-0.3.4 → xgae-0.3.5}/templates/example/result_eval_template.txt +0 -0
  38. {xgae-0.3.4 → xgae-0.3.5}/templates/gemini_system_prompt_template.txt +0 -0
  39. {xgae-0.3.4 → xgae-0.3.5}/templates/general_tool_prompt_template.txt +0 -0
  40. {xgae-0.3.4 → xgae-0.3.5}/templates/system_prompt_response_sample.txt +0 -0
  41. {xgae-0.3.4 → xgae-0.3.5}/templates/system_prompt_template.txt +0 -0
  42. {xgae-0.3.4 → xgae-0.3.5}/test/test_chroma.py +0 -0
  43. {xgae-0.3.4 → xgae-0.3.5}/test/test_langfuse.py +0 -0
  44. {xgae-0.3.4 → xgae-0.3.5}/test/test_litellm_langfuse.py +0 -0
  45. {xgae-0.3.4 → xgae-0.3.5}/uv.lock +0 -0
  46. {xgae-0.3.4 → xgae-0.3.5}/xgae/__init__.py +0 -0
  47. {xgae-0.3.4 → xgae-0.3.5}/xgae/engine/engine_base.py +0 -0
  48. {xgae-0.3.4 → xgae-0.3.5}/xgae/engine/mcp_tool_box.py +0 -0
  49. {xgae-0.3.4 → xgae-0.3.5}/xgae/engine/prompt_builder.py +0 -0
  50. {xgae-0.3.4 → xgae-0.3.5}/xgae/engine/responser/non_stream_responser.py +0 -0
  51. {xgae-0.3.4 → xgae-0.3.5}/xgae/engine/responser/responser_base.py +0 -0
  52. {xgae-0.3.4 → xgae-0.3.5}/xgae/engine/responser/stream_responser.py +0 -0
  53. {xgae-0.3.4 → xgae-0.3.5}/xgae/engine/task_engine.py +0 -0
  54. {xgae-0.3.4 → xgae-0.3.5}/xgae/engine/task_langfuse.py +0 -0
  55. {xgae-0.3.4 → xgae-0.3.5}/xgae/engine_cli_app.py +0 -0
  56. {xgae-0.3.4 → xgae-0.3.5}/xgae/gaia2/are_engine.py +0 -0
  57. {xgae-0.3.4 → xgae-0.3.5}/xgae/tools/without_general_tools_app.py +0 -0
  58. {xgae-0.3.4 → xgae-0.3.5}/xgae/utils/__init__.py +0 -0
  59. {xgae-0.3.4 → xgae-0.3.5}/xgae/utils/json_helpers.py +0 -0
  60. {xgae-0.3.4 → xgae-0.3.5}/xgae/utils/llm_client.py +0 -0
  61. {xgae-0.3.4 → xgae-0.3.5}/xgae/utils/misc.py +0 -0
  62. {xgae-0.3.4 → xgae-0.3.5}/xgae/utils/setup_env.py +0 -0
  63. {xgae-0.3.4 → xgae-0.3.5}/xgae/utils/xml_tool_parser.py +0 -0
@@ -1,4 +1,4 @@
1
- ## [0.3.4] - 2025-11-1
1
+ ## [0.3.5] - 2025-11-1
2
2
  - GAIA2 ARE Example: XGAArePromptBuilder, Use MCP tool format general tool construct prompt
3
3
  ### Modified
4
4
  - GAIA2 ARE Example: Refact code struct and class name
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xgae
3
- Version: 0.3.4
3
+ Version: 0.3.5
4
4
  Summary: Extreme General Agent Engine
5
5
  Requires-Python: >=3.11
6
6
  Requires-Dist: colorlog>=6.9.0
@@ -6,6 +6,12 @@
6
6
  5. INFORMATION: Use available tools to gather missing information before asking user.
7
7
  6. AMBIGUITY: Execute all clear and unambiguous parts of a request immediately. When you encounter ambiguities, contradictions, or impossible elements, finish unambiguous subtasks and then stop and explicitly ask the user for clarification before proceeding with those specific parts.
8
8
 
9
+ # TOOL EXECUTION CYCLE
10
+ Follow this exact sequence for each step:
11
+ 1. THOUGHT: Analyze what needs to be done and which tool to call
12
+ 2. ACTION: Call exactly ONE tool with required parameters
13
+ 3. OBSERVATION: Wait for system to provide tool results
14
+ 4. Repeat until task is complete
9
15
 
10
16
  # FORMAT SPECIFICATION
11
17
  ## RESPONSE FORMAT SPECIFICATION
@@ -13,30 +19,36 @@
13
19
  [Your reasoning in plain text]
14
20
  </thought>
15
21
 
16
- <function_calls>
17
- <invoke name="function_name">
18
- <parameter name="param_name">param_value</parameter>
22
+ <function_calls>
23
+ # Only include one <invoke> element each step
24
+ <invoke name="function_name">
25
+ <parameter name="param_name">param_value</parameter>
19
26
  ...
20
27
  </invoke>
21
28
  </function_calls>
22
29
 
30
+
23
31
  String and scalar parameters should be specified as-is, while lists and objects should use JSON format.
24
32
 
25
33
  ## THOUGHT RULES
26
34
  - Always explain your reasoning in natural language before the Action.
27
35
  - Never include tool call details inside the Thought, only in the Action.
28
36
 
29
- ## RESPONSE EXAMPLE
37
+ ## OBSERVATION RULES
38
+ - Do NOT generate Observation; the system will insert it.
39
+
40
+ ## EXAMPLE CYCLE
30
41
  <thought>
31
42
  I need to look up the current weather before answering, so I will call the weather tool with the city name.
32
- <thought>
43
+ </thought>
33
44
 
34
45
  <function_calls>
35
- <invoke name="query_weather">
36
- <parameter name="city_name">Beijing</parameter>
46
+ <invoke name="get_weather">
47
+ <parameter name="city_name"> Paris </parameter>
37
48
  </invoke>
38
- <function_calls>
49
+ </function_calls>
39
50
 
51
+ Observation: The current temperature in Paris is 20 degrees Celsius and the weather is sunny.
40
52
 
41
53
  # AVAILABLE SYSTEM TOOLS
42
54
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "xgae"
3
- version = "0.3.4"
3
+ version = "0.3.5"
4
4
  description = "Extreme General Agent Engine"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes