Class Qwen3XmlToolCallParser
java.lang.Object
smile.llm.tool.Qwen3XmlToolCallParser
- All Implemented Interfaces:
ToolCallParser
Parses Qwen3 / Qwen3.5 / Qwen3.8 XML tool-call blocks:
<tool_call> <function=name> <parameter=key> value </parameter> </function> </tool_call>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionParses a complete assistant response.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ToolCallParser
parse
-
Constructor Details
-
Qwen3XmlToolCallParser
public Qwen3XmlToolCallParser()Creates a Qwen3 XML tool-call parser.
-
-
Method Details
-
parse
Description copied from interface:ToolCallParserParses a complete assistant response.- Specified by:
parsein interfaceToolCallParser- Parameters:
assistantText- decoded generation text.- Returns:
- parse result with optional tool calls.
-