FunctionCallParser class
Unified parser for function calls in all formats:
- Direct JSON: {"name": "function_name", "parameters": {...}}
- Markdown blocks:
json\n{"name": ...}\n
- Tool code blocks: <tool_code>{"name": ...}</tool_code>
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
isDefinitelyText(
String buffer) → bool - Checks if buffer looks definitely like text (not JSON)
-
isJsonComplete(
String buffer) → bool - Checks if JSON structure appears complete
-
isJsonStart(
String buffer) → bool - Checks if buffer starts with JSON/function indicators
-
parse(
String text) → FunctionCallResponse? - Attempts to parse function call from text in any supported format