Update tool parser and related documentation (#11223)

This commit is contained in:
Xinyuan Tong
2025-10-07 11:03:40 -07:00
committed by GitHub
parent 6f1e03a456
commit e3c7f09146
3 changed files with 25 additions and 13 deletions

View File

@@ -35,17 +35,19 @@ class FunctionCallParser:
"""
ToolCallParserEnum: Dict[str, Type[BaseFormatDetector]] = {
"llama3": Llama32Detector,
"qwen25": Qwen25Detector,
"mistral": MistralDetector,
"deepseekv3": DeepSeekV3Detector,
"deepseekv31": DeepSeekV31Detector,
"pythonic": PythonicDetector,
"kimi_k2": KimiK2Detector,
"qwen3_coder": Qwen3CoderDetector,
"glm": Glm4MoeDetector,
"glm45": Glm4MoeDetector,
"step3": Step3Detector,
"gpt-oss": GptOssDetector,
"kimi_k2": KimiK2Detector,
"llama3": Llama32Detector,
"mistral": MistralDetector,
"pythonic": PythonicDetector,
"qwen": Qwen25Detector,
"qwen25": Qwen25Detector,
"qwen3_coder": Qwen3CoderDetector,
"step3": Step3Detector,
}
def __init__(self, tools: List[Tool], tool_call_parser: str):