Skip to content

fix issues #17, #18 - #20

Merged
jiangchangyue merged 1 commit into
WhitzardAgent:mainfrom
jiangchangyue:main
Jun 25, 2026
Merged

fix issues #17, #18#20
jiangchangyue merged 1 commit into
WhitzardAgent:mainfrom
jiangchangyue:main

Conversation

@jiangchangyue

Copy link
Copy Markdown
Collaborator

Summary

Fixes two QitOS bugs reported in #17 and #18. Native OpenAI-compatible tool schema export no longer emits invalid {"type": "any"} entries for DeepSeek/OpenAI-compatible tools= payloads. ReAct parsing is also more tolerant of common real-world action formats, including LangChain-style action blocks, XML-style tool calls, and fenced JSON snippets.

What Changed

Why

This solves DeepSeek/OpenAI-compatible model requests failing with HTTP 400 before the first step because QitOS exported invalid native tool schemas. It also fixes parser compatibility gaps where valid-looking ReAct outputs from common agent/model workflows were not parsed into actions. Together these fixes make QitOS more reliable with native tool calling and real-world model output formats.

Validation

  • pytest -q
  • relevant lint / type checks
  • examples or manual verification, if applicable

Commands run:

conda run -n qitos pytest tests/test_tool_registry_and_toolset.py tests/test_model_protocols.py tests/test_native_tool_calling_runtime.py tests/test_advanced_tools_and_executor.py tests/test_memory_and_parser_and_critic.py -q
# 40 passed

conda run -n qitos pytest tests/test_memory_and_parser_and_critic.py::test_react_parser_accepts_common_action_variants_from_issue_18 tests/test_memory_and_parser_and_critic.py::test_json_decision_parser_salvages_wrapped_json_like_blocks -q
# 2 passed

conda run -n qitos python -m compileall qitos/core tests/test_tool_registry_and_toolset.py

git diff --check

INF_API_KEY=<redacted> conda run -n qitos python -c "<live DeepSeek ds-v4-pro request using QitOS-exported CodingToolSet schemas>"
# HTTP 200, no schema error

INF_API_KEY=<redacted> conda run -n qitos python -c "<live QitOS OpenAICompatibleModel call against ds-v4-pro>"
# returned OK, api_error=False

@jiangchangyue
jiangchangyue merged commit c318efd into WhitzardAgent:main Jun 25, 2026
7 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant