Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
{
"core.inference.tool_call_parser": {
"dir": [
"Any",
"BUDGET_EXHAUSTED_NUDGE",
"INTENT_SIGNAL",
"MAX_ACT_REPROMPTS",
"NUDGE_TOOL_CALLS_STATUS",
"Optional",
"RAG_MAX_SEARCHES_PER_TURN",
"RAG_SEARCH_CAP_NUDGE",
"RAG_SEARCH_TOOLS",
"RENDER_HTML_REPEAT_NUDGE",
"REPROMPT_MAX_CHARS",
"StreamingMarkupStripper",
"TOOL_ERROR_NUDGE",
"TOOL_ERROR_PREFIXES",
"TOOL_XML_SIGNALS",
"_ACTION_VERB",
"_ATTR_FUNC_OPEN_RE",
"_BACKTICK_RUN_RE",
"_BARE_JSON_ARGS_KEYS",
"_BARE_JSON_CLASSIFY_KEYS",
"_BARE_JSON_NAME_RE",
"_BLOCKED_BODY_MASK",
"_BLOCKED_BODY_MASK_RUN_RE",
"_CONTAINING_WRAPPERS",
"_DEEPSEEK_BEGIN_RE",
"_DEEPSEEK_CALL_BEGIN",
"_DEEPSEEK_CALL_END",
"_DEEPSEEK_END",
"_DEEPSEEK_GLUE_GAP_STOP_RE",
"_DEEPSEEK_OPEN_ALT",
"_DEEPSEEK_OPEN_RE_SRC",
"_DEEPSEEK_R1_CLOSE_RE",
"_DEEPSEEK_R1_FENCE",
"_DEEPSEEK_R1_FUNC_MARKER",
"_DEEPSEEK_SEP",
"_EMBEDDED_MARKER_RE",
"_EXECUTION_CLASS_HINTS",
"_EXTENSION_SAMPLE",
"_FENCE_ONLY_RE",
"_FUNC_CLOSE_TAG_RE",
"_GEMMA_ANCHOR_CLOSERS",
"_GEMMA_BARE_SENTINEL",
"_GEMMA_BARE_TC_PREFIX_RE",
"_GEMMA_BARE_TC_RE",
"_GEMMA_BODY_SCAN_MIN",
"_GEMMA_BODY_SCAN_SLOTS",
"_GEMMA_JSON_NUMBER_RE",
"_GEMMA_KEY_RE",
"_GEMMA_QUOTED_VALUE_RE",
"_GEMMA_SLOT",
"_GEMMA_SLOT_RE",
"_GEMMA_STR_BEGIN",
"_GEMMA_STR_END",
"_GEMMA_TC_END",
"_GEMMA_TC_RE",
"_GLM_ARG_KEY_CLOSE",
"_GLM_ARG_KEY_OPEN",
"_GLM_ARG_VAL_CLOSE",
"_GLM_ARG_VAL_OPEN",
"_GLM_JSON_NUMERIC_RE",
"_GLM_TC_CLOSE",
"_GLM_TC_OPEN_RE",
"_HELP_OFFER",
"_INFERENCE_WRAPPER_OPENERS",
"_KIMI_ARG_BEGIN",
"_KIMI_CALL_BEGIN",
"_KIMI_CALL_END",
"_KIMI_ID_RE",
"_KIMI_SECTION_BEGIN",
"_KIMI_SECTION_END",
"_LEADING_JSON_FENCE_RE",
"_LENGTH_PROGRESS_TAIL_CHARS",
"_LLAMA3_BARE_JSON_SENTINELS",
"_LLAMA3_CALL_CHAIN_RE",
"_LLAMA3_HEADER_ROLES",
"_LLAMA3_KEY_RE",
"_LLAMA3_LIT_RE",
"_LLAMA3_NUM_RE",
"_LLAMA3_PYTHON_TAG",
"_LLAMA3_PY_CALL_HEAD_RE",
"_LLAMA3_PY_CALL_RE",
"_LLAMA3_WS_RE",
"_MARKERLESS_TRUSTED_PREFIXES",
"_MARKUP_OPENERS",
"_MAX_FENCE_CHARS",
"_MAX_GEMMA_PREFIX_TAIL",
"_MINIMAX_BLOCK_CLOSE",
"_MINIMAX_BLOCK_OPEN",
"_MINIMAX_INVOKE_CLOSE",
"_MINIMAX_INVOKE_OPEN_RE",
"_MISTRAL_ARGS_MARKER",
"_MISTRAL_CALL_ID_MARKER",
"_MISTRAL_THINK_CLOSE",
"_MISTRAL_THINK_OPEN",
"_MISTRAL_TRIGGER",
"_MISTRAL_V11_NAME_RE",
"_MinimaxValueIndex",
"_ONE_STRING_ARG_CALL_RE",
"_OPEN_BODY_TRIGGERS",
"_OPEN_BODY_TRIGGER_MAX_LEN",
"_OPEN_CALL_OPENER",
"_OPEN_CALL_TRIGGERS",
"_OPEN_CALL_TRIGGER_MAX_LEN",
"_OPEN_CALL_WS_RE",
"_OPEN_FUNCTION_OPENER_RE",
"_OPEN_PARAMETER_TAGS",
"_OUTER_ENVELOPE_CLOSED_PATS",
"_OUTER_ENVELOPE_OPEN_RE",
"_REPEAT_LEAD_PUNCT",
"_REPEAT_TRAIL_PUNCT",
"_SECOND_KEY_RE",
"_SENTINEL_MAX_LEN",
"_SIGN_OFF",
"_STRIP_SENTINELS",
"_TC_END_TAG_RE",
"_TC_FUNC_CLOSE_RE",
"_TC_FUNC_START_RE",
"_TC_JSON_START_RE",
"_TC_PARAM_CLOSE_RE",
"_TC_PARAM_START_RE",
"_TOOL_ALL_PATS",
"_TOOL_CLOSED_PATS",
"_balanced_brace_end",
"_balanced_bracket_end",
"_balanced_paren_end",
"_bare_json_call_shaped",
"_blocked_markerless_body_spans",
"_call_object_end",
"_consume_mistral_call",
"_decoded_key",
"_disabled_gemma_call_end_containing_signal",
"_escape_bare_quotes",
"_escaped_string_content_spans",
"_find_outside_json_strings",
"_first_foreign_tool_signal",
"_first_sentinel",
"_gemma_balanced_brace_end",
"_gemma_bare_body_arguments",
"_gemma_body_brace_end",
"_gemma_body_scan_next",
"_gemma_body_scans",
"_gemma_call_is_anchored",
"_gemma_coerce_scalar",
"_gemma_parse_array",
"_gemma_parse_mapping",
"_gemma_parse_stripped_body",
"_gemma_parse_value",
"_gemma_strip_quoted_leaves",
"_glm_value_close",
"_has_execution_class_hint",
"_has_gemma_bare_trigger",
"_inference_wrapper_spans",
"_inside_leading_markerless_body",
"_inside_open_parameter",
"_is_provisional_call",
"_json_object_body",
"_last_bare_call_word",
"_leading_json_value_end",
"_llama3_kv_value",
"_loads_call_object",
"_marker_inside_leading_envelope",
"_markerless_blocked_execution",
"_markerless_execution_class",
"_markerless_promotable",
"_mask_blocked_bodies",
"_merge_spans",
"_minimax_block_spans",
"_mistral_region_end",
"_next_top_level_comma",
"_normalize_for_repeat",
"_only_a_code_fence",
"_open_inline_code_run",
"_parse_bare_rehearsals",
"_parse_closed_call_unescaped_quotes",
"_parse_deepseek_envelope",
"_parse_deepseek_tool_calls",
"_parse_function_xml",
"_parse_gemma_tool_calls",
"_parse_glm_tool_calls",
"_parse_glued_deepseek_envelopes",
"_parse_kimi_section_body",
"_parse_kimi_tool_calls",
"_parse_llama3_bare_json",
"_parse_llama3_kv_args",
"_parse_llama3_python_tag",
"_parse_minimax_tool_calls",
"_parse_mistral_array",
"_parse_mistral_tool_calls",
"_parse_tool_call_json",
"_partial_call_word_len",
"_promotable_gemma_call_pos",
"_safe_cut",
"_search_from_literal",
"_signal_inside_leading_wrapperless_gemma",
"_skip_mistral_call_id",
"_slot_gemma_values",
"_strictly_inside",
"_string_content_spans",
"_strip_function_xml_calls",
"_strip_gemma_wrapperless_calls",
"_strip_glm_calls",
"_strip_leading_code_fence",
"_strip_minimax_calls",
"_strip_mistral_closed_calls",
"_strip_mistral_reasoning",
"_tool_healing",
"_top_level_args_values",
"_top_level_bare_json_name",
"_top_level_maskable_values",
"_trim_param_value",
"_unmask_blocked_bodies",
"_unmatched_think_closer",
"_whole_content_is_json_value",
"_xml_signal_inside_leading_bare_json",
"_xml_signal_inside_leading_mistral",
"annotations",
"bisect",
"blocked_bare_json_chain_may_continue",
"blocked_gemma_chain_may_continue",
"blocked_markerless_prefix_end",
"continue_after_length_message",
"gemma_tail_may_hide_a_call",
"has_tool_signal",
"held_bare_gemma_tail_len",
"is_reprompt_repeat",
"is_reprompt_restatement",
"is_short_intent_without_action",
"json",
"leading_bare_gemma_call_is_promotable",
"parse_tool_calls_from_text",
"promotable_gemma_call_pos",
"re",
"reasoning_cap_spent_message",
"relaxed_allowed_at",
"relaxed_json_object",
"relaxed_object_end",
"repeated_result_message",
"reprompt_to_act_message",
"starved_result_message",
"strip_leading_bare_json_call",
"strip_llama3_leading_sentinels",
"strip_segment",
"strip_tool_markup",
"thinking_exhausted_message",
"unfinished_thought_progress"
],
"functions": {
"_balanced_brace_end": "core.tool_healing._balanced_brace_end(content: 'str', brace_start: 'int', *, gemma_quotes: 'bool' = False) -> 'int | None'",
"_balanced_bracket_end": "core.inference.tool_call_parser._balanced_bracket_end(src: 'str', start: 'int') -> \"'int | None'\"",
"_balanced_paren_end": "core.inference.tool_call_parser._balanced_paren_end(text: 'str', paren_start: 'int') -> \"'int | None'\"",
"_bare_json_call_shaped": "core.inference.tool_call_parser._bare_json_call_shaped(obj) -> 'bool'",
"_blocked_markerless_body_spans": "core.inference.tool_call_parser._blocked_markerless_body_spans(text: 'str', enabled_tool_names) -> 'list'",
"_call_object_end": "core.inference.tool_call_parser._call_object_end(text: 'str', start: 'int', relaxed: 'bool' = True) -> \"'tuple[int | None, bool]'\"",
"_consume_mistral_call": "core.inference.tool_call_parser._consume_mistral_call(obj_text: 'str', out: 'list[dict]', id_offset: 'int', *, relaxed: 'bool' = True) -> 'None'",
"_decoded_key": "core.inference.tool_call_parser._decoded_key(literal: 'str') -> \"'str | None'\"",
"_disabled_gemma_call_end_containing_signal": "core.inference.tool_call_parser._disabled_gemma_call_end_containing_signal(content: 'str', enabled_tool_names: 'Optional[set]') -> 'int | None'",
"_escape_bare_quotes": "core.inference.tool_call_parser._escape_bare_quotes(raw: 'str') -> 'str'",
"_escaped_string_content_spans": "core.inference.tool_call_parser._escaped_string_content_spans(text: 'str', start: 'int', end: 'int') -> 'list'",
"_find_outside_json_strings": "core.inference.tool_call_parser._find_outside_json_strings(text: 'str', needle: 'str', start: 'int') -> 'int'",
"_first_foreign_tool_signal": "core.inference.tool_call_parser._first_foreign_tool_signal(content: 'str') -> 'int | None'",
"_first_sentinel": "core.inference.tool_call_parser._first_sentinel(text: 'str', start: 'int', enabled_tool_names=None) -> 'int'",
"_gemma_balanced_brace_end": "core.inference.tool_call_parser._gemma_balanced_brace_end(text: 'str', brace_pos: 'int', hard_stop: 'int') -> 'int | None'",
"_gemma_bare_body_arguments": "core.inference.tool_call_parser._gemma_bare_body_arguments(body: 'str') -> 'dict[str, Any]'",
"_gemma_body_brace_end": "core.inference.tool_call_parser._gemma_body_brace_end(text: 'str', brace_pos: 'int') -> 'int | None'",
"_gemma_call_is_anchored": "core.inference.tool_call_parser._gemma_call_is_anchored(text: 'str', start: 'int', floor: 'int') -> 'bool'",
"_gemma_coerce_scalar": "core.inference.tool_call_parser._gemma_coerce_scalar(raw: 'str') -> 'Any'",
"_gemma_parse_array": "core.inference.tool_call_parser._gemma_parse_array(text: 'str', start: 'int')",
"_gemma_parse_mapping": "core.inference.tool_call_parser._gemma_parse_mapping(text: 'str', start: 'int')",
"_gemma_parse_stripped_body": "core.inference.tool_call_parser._gemma_parse_stripped_body(body: 'str') -> 'dict[str, Any]'",
"_gemma_parse_value": "core.inference.tool_call_parser._gemma_parse_value(text: 'str', i: 'int', *, in_mapping: 'bool' = False)",
"_gemma_strip_quoted_leaves": "core.inference.tool_call_parser._gemma_strip_quoted_leaves(value: 'Any') -> 'Any'",
"_glm_value_close": "core.inference.tool_call_parser._glm_value_close(text: 'str', vs: 'int', *, strict: 'bool' = False) -> 'int'",
"_has_execution_class_hint": "core.inference.tool_call_parser._has_execution_class_hint(text: 'str') -> 'bool'",
"_has_gemma_bare_trigger": "core.inference.tool_call_parser._has_gemma_bare_trigger(text: 'str') -> 'bool'",
"_inference_wrapper_spans": "core.inference.tool_call_parser._inference_wrapper_spans(text: 'str') -> 'list'",
"_inside_leading_markerless_body": "core.inference.tool_call_parser._inside_leading_markerless_body(content: 'str', signal: 'int', enabled_tool_names: 'Optional[set]') -> 'bool'",
"_inside_open_parameter": "core.inference.tool_call_parser._inside_open_parameter(text: 'str', pos: 'int') -> 'bool'",
"_is_provisional_call": "core.inference.tool_call_parser._is_provisional_call(text: 'str', found: 'int') -> 'bool'",
"_json_object_body": "core.tool_healing._json_object_body(body: 'str') -> 'dict | None'",
"_last_bare_call_word": "core.inference.tool_call_parser._last_bare_call_word(text: 'str') -> 'int'",
"_leading_json_value_end": "core.inference.tool_call_parser._leading_json_value_end(text: 'str') -> 'int | None'",
"_llama3_kv_value": "core.inference.tool_call_parser._llama3_kv_value(body: 'str', p: 'int', n: 'int') -> 'tuple[Any, int | None]'",
"_loads_call_object": "core.inference.tool_call_parser._loads_call_object(text: 'str', *, relaxed: 'bool' = True)",
"_marker_inside_leading_envelope": "core.inference.tool_call_parser._marker_inside_leading_envelope(content: 'str', enabled_tool_names: 'Optional[set]' = None) -> 'bool'",
"_markerless_blocked_execution": "core.tool_healing._markerless_blocked_execution(name, enabled_tool_names) -> 'bool'",
"_markerless_execution_class": "core.tool_healing._markerless_execution_class(name) -> 'bool'",
"_markerless_promotable": "core.tool_healing._markerless_promotable(name, enabled_tool_names) -> 'bool'",
"_mask_blocked_bodies": "core.inference.tool_call_parser._mask_blocked_bodies(text: 'str', enabled_tool_names, *, think: 'bool' = False, mentions: 'bool' = False) -> 'tuple'",
"_merge_spans": "core.inference.tool_call_parser._merge_spans(spans: 'list') -> 'list'",
"_minimax_block_spans": "core.inference.tool_call_parser._minimax_block_spans(text: 'str') -> 'list[tuple[int, int, bool]]'",
"_mistral_region_end": "core.inference.tool_call_parser._mistral_region_end(text: 'str', idx: 'int', *, open_envelope_runs_to_eof: 'bool' = False) -> 'int | None'",
"_next_top_level_comma": "core.inference.tool_call_parser._next_top_level_comma(text: 'str', start: 'int', end: 'int') -> \"'int | None'\"",
"_normalize_for_repeat": "core.inference.tool_call_parser._normalize_for_repeat(text: 'str') -> 'str'",
"_only_a_code_fence": "core.inference.tool_call_parser._only_a_code_fence(between: 'str') -> 'bool'",
"_open_inline_code_run": "core.inference.tool_call_parser._open_inline_code_run(text: 'str', pos: 'int') -> 'bool'",
"_parse_bare_rehearsals": "core.inference.tool_call_parser._parse_bare_rehearsals(content: 'str', *, id_offset: 'int' = 0, enabled_tool_names: 'Optional[set]' = None) -> 'list[dict]'",
"_parse_closed_call_unescaped_quotes": "core.inference.tool_call_parser._parse_closed_call_unescaped_quotes(content: 'str', *, id_offset: 'int') -> 'list[dict]'",
"_parse_deepseek_envelope": "core.inference.tool_call_parser._parse_deepseek_envelope(content: 'str', begin: \"'re.Match'\", *, id_offset: 'int', allow_incomplete: 'bool') -> \"'tuple[list[dict], int]'\"",
"_parse_deepseek_tool_calls": "core.inference.tool_call_parser._parse_deepseek_tool_calls(content: 'str', *, id_offset: 'int', allow_incomplete: 'bool' = True) -> 'list[dict]'",
"_parse_function_xml": "core.inference.tool_call_parser._parse_function_xml(content: 'str', *, id_offset: 'int', allow_incomplete: 'bool' = True) -> 'list[dict]'",
"_parse_gemma_tool_calls": "core.inference.tool_call_parser._parse_gemma_tool_calls(content: 'str', *, id_offset: 'int', allow_incomplete: 'bool' = True, enabled_tool_names: 'Optional[set]' = None) -> 'list[dict]'",
"_parse_glm_tool_calls": "core.inference.tool_call_parser._parse_glm_tool_calls(content: 'str', *, id_offset: 'int', allow_incomplete: 'bool' = True, raw_values: 'bool' = False) -> 'list[dict]'",
"_parse_glued_deepseek_envelopes": "core.inference.tool_call_parser._parse_glued_deepseek_envelopes(content: 'str', pos: 'int', *, id_offset: 'int') -> 'list[dict]'",
"_parse_kimi_section_body": "core.inference.tool_call_parser._parse_kimi_section_body(body: 'str', *, id_offset: 'int', allow_incomplete: 'bool' = True) -> 'list[dict]'",
"_parse_kimi_tool_calls": "core.inference.tool_call_parser._parse_kimi_tool_calls(content: 'str', *, id_offset: 'int', allow_incomplete: 'bool' = True) -> 'list[dict]'",
"_parse_llama3_bare_json": "core.inference.tool_call_parser._parse_llama3_bare_json(content: 'str', *, id_offset: 'int', allow_incomplete: 'bool' = True, enabled_tool_names: 'Optional[set]' = None) -> 'list[dict]'",
"_parse_llama3_kv_args": "core.inference.tool_call_parser._parse_llama3_kv_args(body: 'str') -> 'dict[str, Any]'",
"_parse_llama3_python_tag": "core.inference.tool_call_parser._parse_llama3_python_tag(content: 'str', *, id_offset: 'int', allow_incomplete: 'bool' = True) -> 'list[dict]'",
"_parse_minimax_tool_calls": "core.inference.tool_call_parser._parse_minimax_tool_calls(content: 'str', *, id_offset: 'int', allow_incomplete: 'bool' = True) -> 'list[dict]'",
"_parse_mistral_array": "core.inference.tool_call_parser._parse_mistral_array(content: 'str', start: 'int', id_offset: 'int', allow_incomplete: 'bool' = True) -> 'list[dict]'",
"_parse_mistral_tool_calls": "core.inference.tool_call_parser._parse_mistral_tool_calls(content: 'str', *, id_offset: 'int', allow_incomplete: 'bool' = True) -> 'list[dict]'",
"_parse_tool_call_json": "core.inference.tool_call_parser._parse_tool_call_json(content: 'str', *, id_offset: 'int', allow_incomplete: 'bool' = True) -> 'list[dict]'",
"_partial_call_word_len": "core.inference.tool_call_parser._partial_call_word_len(text: 'str') -> 'int'",
"_promotable_gemma_call_pos": "core.inference.tool_call_parser._promotable_gemma_call_pos(text: 'str', start: 'int', enabled_tool_names) -> 'int'",
"_safe_cut": "core.inference.tool_call_parser._safe_cut(text: 'str', first: 'int') -> 'int'",
"_search_from_literal": "core.inference.tool_call_parser._search_from_literal(pattern: 're.Pattern', literal: 'str', text: 'str', pos: 'int')",
"_signal_inside_leading_wrapperless_gemma": "core.inference.tool_call_parser._signal_inside_leading_wrapperless_gemma(content: 'str', enabled_tool_names: 'Optional[set]') -> 'bool'",
"_skip_mistral_call_id": "core.inference.tool_call_parser._skip_mistral_call_id(text: 'str', pos: 'int') -> 'int'",
"_slot_gemma_values": "core.inference.tool_call_parser._slot_gemma_values(body: 'str') -> \"'tuple[str, list[str]]'\"",
"_strictly_inside": "core.inference.tool_call_parser._strictly_inside(spans: 'list', pos: 'int') -> 'bool'",
"_string_content_spans": "core.inference.tool_call_parser._string_content_spans(text: 'str', start: 'int', end: 'int') -> 'list'",
"_strip_function_xml_calls": "core.inference.tool_call_parser._strip_function_xml_calls(text: 'str', *, final: 'bool') -> 'str'",
"_strip_gemma_wrapperless_calls": "core.inference.tool_call_parser._strip_gemma_wrapperless_calls(text: 'str', enabled_tool_names: 'Optional[set]' = None) -> 'str'",
"_strip_glm_calls": "core.inference.tool_call_parser._strip_glm_calls(text: 'str', *, final: 'bool') -> 'str'",
"_strip_leading_code_fence": "core.inference.tool_call_parser._strip_leading_code_fence(text: 'str') -> 'str'",
"_strip_minimax_calls": "core.inference.tool_call_parser._strip_minimax_calls(text: 'str', *, final: 'bool') -> 'str'",
"_strip_mistral_closed_calls": "core.inference.tool_call_parser._strip_mistral_closed_calls(text: 'str') -> 'str'",
"_strip_mistral_reasoning": "core.inference.tool_call_parser._strip_mistral_reasoning(content: 'str') -> 'str'",
"_top_level_args_values": "core.inference.tool_call_parser._top_level_args_values(text: 'str', start: 'int', end: 'int') -> 'list'",
"_top_level_bare_json_name": "core.inference.tool_call_parser._top_level_bare_json_name(probe: 'str') -> 'Optional[str]'",
"_top_level_maskable_values": "core.inference.tool_call_parser._top_level_maskable_values(text: 'str', start: 'int', end: 'int', keep: 'str' = None) -> 'list'",
"_trim_param_value": "core.tool_healing._trim_param_value(val: 'str') -> 'str'",
"_unmask_blocked_bodies": "core.inference.tool_call_parser._unmask_blocked_bodies(text: 'str', bodies: 'list') -> 'Optional[str]'",
"_unmatched_think_closer": "core.inference.tool_call_parser._unmatched_think_closer(text: 'str', start: 'int' = 0) -> 'int'",
"_whole_content_is_json_value": "core.inference.tool_call_parser._whole_content_is_json_value(text: 'str') -> 'bool'",
"_xml_signal_inside_leading_bare_json": "core.inference.tool_call_parser._xml_signal_inside_leading_bare_json(content: 'str') -> 'bool'",
"_xml_signal_inside_leading_mistral": "core.inference.tool_call_parser._xml_signal_inside_leading_mistral(content: 'str') -> 'bool'",
"blocked_bare_json_chain_may_continue": "core.inference.tool_call_parser.blocked_bare_json_chain_may_continue(text: 'str', enabled_tool_names: 'Optional[set]') -> 'bool'",
"blocked_gemma_chain_may_continue": "core.inference.tool_call_parser.blocked_gemma_chain_may_continue(text: 'str', enabled_tool_names: 'Optional[set]') -> 'bool'",
"blocked_markerless_prefix_end": "core.inference.tool_call_parser.blocked_markerless_prefix_end(text: 'str', start: 'int', enabled_tool_names) -> 'int'",
"continue_after_length_message": "core.inference.tool_call_parser.continue_after_length_message() -> 'str'",
"gemma_tail_may_hide_a_call": "core.inference.tool_call_parser.gemma_tail_may_hide_a_call(tail: 'str', enabled_tool_names: 'Optional[set]') -> 'bool'",
"has_tool_signal": "core.inference.tool_call_parser.has_tool_signal(text: 'str') -> 'bool'",
"held_bare_gemma_tail_len": "core.inference.tool_call_parser.held_bare_gemma_tail_len(text: 'str', enabled_tool_names: 'Optional[set]') -> 'int'",
"is_reprompt_repeat": "core.inference.tool_call_parser.is_reprompt_repeat(text: 'str', previous: 'str') -> 'bool'",
"is_reprompt_restatement": "core.inference.tool_call_parser.is_reprompt_restatement(text: 'str', previous: 'str') -> 'bool'",
"is_short_intent_without_action": "core.inference.tool_call_parser.is_short_intent_without_action(text: 'str') -> 'bool'",
"leading_bare_gemma_call_is_promotable": "core.inference.tool_call_parser.leading_bare_gemma_call_is_promotable(stripped: 'str', enabled_tool_names) -> 'bool'",
"parse_tool_calls_from_text": "core.inference.tool_call_parser.parse_tool_calls_from_text(content: 'str', *, id_offset: 'int' = 0, allow_incomplete: 'bool' = True, enabled_tool_names: 'Optional[set]' = None) -> 'list[dict]'",
"promotable_gemma_call_pos": "core.inference.tool_call_parser.promotable_gemma_call_pos(text: 'str', enabled_tool_names, start: 'int' = 0, *, floor: 'int' = 0, streaming: 'bool' = False) -> 'int'",
"reasoning_cap_spent_message": "core.inference.tool_call_parser.reasoning_cap_spent_message(max_tokens: 'Optional[int]' = None) -> 'str'",
"relaxed_allowed_at": "core.inference.relaxed_json.relaxed_allowed_at(text: 'str', pos: 'int') -> 'bool'",
"relaxed_json_object": "core.inference.relaxed_json.relaxed_json_object(text: 'Any') -> 'Optional[dict]'",
"relaxed_object_end": "core.inference.relaxed_json.relaxed_object_end(text: 'str', start: 'int') -> 'Optional[int]'",
"repeated_result_message": "core.inference.tool_call_parser.repeated_result_message(tool_name: 'str', times: 'int', last_result: 'str') -> 'str'",
"reprompt_to_act_message": "core.inference.tool_call_parser.reprompt_to_act_message(tool_hint: 'str') -> 'str'",
"starved_result_message": "core.inference.tool_call_parser.starved_result_message(tool_name: 'str', result: 'str') -> 'str'",
"strip_leading_bare_json_call": "core.inference.tool_call_parser.strip_leading_bare_json_call(text: 'str', enabled_tool_names: 'Optional[set]' = None) -> 'str'",
"strip_llama3_leading_sentinels": "core.inference.tool_call_parser.strip_llama3_leading_sentinels(content: 'str') -> 'str'",
"strip_segment": "core.inference.tool_call_parser.strip_segment(segment: 'str', *, seg_final: 'bool', enabled_tool_names: 'Optional[set]' = None) -> 'str'",
"strip_tool_markup": "core.inference.tool_call_parser.strip_tool_markup(text: 'str', *, final: 'bool' = False, enabled_tool_names: 'Optional[set]' = None) -> 'str'",
"thinking_exhausted_message": "core.inference.tool_call_parser.thinking_exhausted_message(context_length: 'Optional[int]' = None) -> 'str'",
"unfinished_thought_progress": "core.inference.tool_call_parser.unfinished_thought_progress(reasoning: 'str') -> 'str'"
}
},
"core.tool_healing": {
"dir": [
"EXECUTION_CLASS_TOOL_NAMES",
"_BRACE_SKIP_GEMMA_RE",
"_BRACE_SKIP_RE",
"_BRACKETED_JSON_ONE_LEVEL",
"_CODE_SPAN_RE",
"_FUNC_CLOSE_TAG",
"_GEMMA_NEXT_KEY_RE",
"_GEMMA_QUOTE",
"_JSON_STRING_BODY_RE",
"_MAX_BRACKET_SCAN_CHARS",
"_MCP_TOOL_PREFIX",
"_MISTRAL_ARRAY_RE",
"_MISTRAL_BRACKET_RE",
"_OPEN_PARAMETER_SCAN_LIMIT",
"_OpenParameterIndex",
"_PARAM_CLOSE_TAG",
"_PAT_REQUIRED_TOKEN",
"_REHEARSAL_CLOSED_STRIP_RE",
"_REHEARSAL_RE",
"_REHEARSAL_STRIP_PATS",
"_REHEARSAL_TAIL_STRIP_RE",
"_TAG_MENTION_RE",
"_TC_END_TAG_RE",
"_TC_FUNC_CLOSED_PAT",
"_TC_FUNC_CLOSE_RE",
"_TC_FUNC_START_RE",
"_TC_GEMMA_CLOSED_PAT",
"_TC_GEMMA_END_TAG_RE",
"_TC_GEMMA_START_RE",
"_TC_JSON_CLOSED_PAT",
"_TC_JSON_START_RE",
"_TC_PARAM_CLOSE_RE",
"_TC_PARAM_START_RE",
"_THINK_CLOSE_RE",
"_THINK_OPEN_RE",
"_THINK_TAG_RE",
"_TOOL_ALL_PATS",
"_TOOL_CLOSED_BLOCK_PATS",
"_TOOL_CLOSED_PATS",
"_TOOL_OPEN_XML_TAIL_PATS",
"_TOOL_TAG_HINT_RE",
"_TOOL_TAG_PREFIXES",
"_WRAP_CLOSE_RE",
"_WRAP_OPEN_RE",
"_balanced_brace_end",
"_balanced_bracket_end",
"_balanced_json_span",
"_build_markers",
"_code_spans",
"_decode_array_items",
"_func_close_index",
"_gemma_arguments_to_json",
"_gemma_span_ranges",
"_glued_call_objects",
"_in_code",
"_inside_open_parameter",
"_is_strict_json",
"_iter_bracket_spans",
"_json_object_body",
"_loads_wrapped_call",
"_marker_coverage",
"_markerless_blocked_execution",
"_markerless_execution_class",
"_markerless_promotable",
"_normalise_gemma_quoted_strings",
"_normalized_tool_name",
"_quote_gemma_array_elements",
"_quote_gemma_object_keys",
"_rehearsal_strip",
"_relaxed_allowed_at",
"_relaxed_object_end",
"_split_top_level_commas",
"_strip_bracket_tag_calls",
"_strip_closed_blocks_outside_gemma",
"_strip_gemma_native_spans",
"_strip_markup_segment",
"_think_spans_outside_tool_markup",
"_tool_call_markup_spans",
"_trim_param_value",
"annotations",
"apply_tool_strip_patterns",
"bisect",
"in_tag_mention",
"itertools",
"json",
"marker_coverage",
"parse_tool_calls_from_text",
"re",
"strip_outside_think",
"strip_tool_call_markup",
"strip_tool_patterns",
"tag_mention_spans"
],
"functions": {
"_balanced_brace_end": "core.tool_healing._balanced_brace_end(content: 'str', brace_start: 'int', *, gemma_quotes: 'bool' = False) -> 'int | None'",
"_balanced_bracket_end": "core.tool_healing._balanced_bracket_end(src: 'str', start: 'int', *, braces_count: 'bool' = True) -> 'int | None'",
"_balanced_json_span": "core.tool_healing._balanced_json_span(text: 'str', start: 'int') -> 'int | None'",
"_build_markers": "core.tool_healing._build_markers(content: 'str')",
"_code_spans": "core.tool_healing._code_spans(text: 'str', start: 'int' = 0) -> 'list[tuple[int, int]]'",
"_decode_array_items": "core.tool_healing._decode_array_items(text: 'str', body_start: 'int', body_end: 'int')",
"_func_close_index": "core.tool_healing._func_close_index(content: 'str', body_start: 'int', body: 'str', *, inside=None) -> 'int'",
"_gemma_arguments_to_json": "core.tool_healing._gemma_arguments_to_json(args_src: 'str') -> 'dict'",
"_gemma_span_ranges": "core.tool_healing._gemma_span_ranges(text: 'str') -> 'list'",
"_glued_call_objects": "core.tool_healing._glued_call_objects(content: 'str', pos: 'int', end: 'int')",
"_in_code": "core.tool_healing._in_code(spans, pos: 'int') -> 'bool'",
"_inside_open_parameter": "core.tool_healing._inside_open_parameter(content: 'str', pos: 'int', *, param_start_re=None, param_closers=('</parameter>',), func_closers=('</function>',)) -> 'bool'",
"_is_strict_json": "core.tool_healing._is_strict_json(text: 'str') -> 'bool'",
"_iter_bracket_spans": "core.tool_healing._iter_bracket_spans(text: 'str', start: 'int' = 0, enabled_tool_names=None)",
"_json_object_body": "core.tool_healing._json_object_body(body: 'str') -> 'dict | None'",
"_loads_wrapped_call": "core.tool_healing._loads_wrapped_call(text: 'str', *, relaxed: 'bool' = True) -> 'dict'",
"_marker_coverage": "core.tool_healing._marker_coverage(content: 'str', markers) -> 'list[tuple[int, int]]'",
"_markerless_blocked_execution": "core.tool_healing._markerless_blocked_execution(name, enabled_tool_names) -> 'bool'",
"_markerless_execution_class": "core.tool_healing._markerless_execution_class(name) -> 'bool'",
"_markerless_promotable": "core.tool_healing._markerless_promotable(name, enabled_tool_names) -> 'bool'",
"_normalise_gemma_quoted_strings": "core.tool_healing._normalise_gemma_quoted_strings(src: 'str') -> 'str'",
"_normalized_tool_name": "core.tool_healing._normalized_tool_name(name) -> 'str'",
"_quote_gemma_array_elements": "core.tool_healing._quote_gemma_array_elements(body: 'str') -> 'str'",
"_quote_gemma_object_keys": "core.tool_healing._quote_gemma_object_keys(src: 'str') -> 'str'",
"_rehearsal_strip": "core.tool_healing._rehearsal_strip(m, pat, text, spans, enabled_tool_names) -> 'str'",
"_relaxed_allowed_at": "core.tool_healing._relaxed_allowed_at(content: 'str', pos: 'int') -> 'bool'",
"_relaxed_object_end": "core.tool_healing._relaxed_object_end(content: 'str', start: 'int')",
"_split_top_level_commas": "core.tool_healing._split_top_level_commas(src: 'str') -> 'list'",
"_strip_bracket_tag_calls": "core.tool_healing._strip_bracket_tag_calls(text: 'str', enabled_tool_names=None) -> 'str'",
"_strip_closed_blocks_outside_gemma": "core.tool_healing._strip_closed_blocks_outside_gemma(text: 'str') -> 'str'",
"_strip_gemma_native_spans": "core.tool_healing._strip_gemma_native_spans(text: 'str', *, final: 'bool') -> 'str'",
"_strip_markup_segment": "core.tool_healing._strip_markup_segment(text: 'str', *, final: 'bool', enabled_tool_names=None) -> 'str'",
"_think_spans_outside_tool_markup": "core.tool_healing._think_spans_outside_tool_markup(text: 'str') -> 'list[tuple[int, int]]'",
"_tool_call_markup_spans": "core.tool_healing._tool_call_markup_spans(text: 'str') -> 'list[tuple[int, int]]'",
"_trim_param_value": "core.tool_healing._trim_param_value(val: 'str') -> 'str'",
"apply_tool_strip_patterns": "core.tool_healing.apply_tool_strip_patterns(text: 'str', patterns, enabled_tool_names=None) -> 'str'",
"in_tag_mention": "core.tool_healing.in_tag_mention(spans, pos: 'int') -> 'bool'",
"marker_coverage": "core.tool_healing.marker_coverage(content: 'str') -> 'list[tuple[int, int]]'",
"parse_tool_calls_from_text": "core.tool_healing.parse_tool_calls_from_text(content: 'str', *, id_offset: 'int' = 0, allow_incomplete: 'bool' = True, enabled_tool_names=None, with_spans: 'bool' = False)",
"strip_outside_think": "core.tool_healing.strip_outside_think(text: 'str', strip_segment) -> 'str'",
"strip_tool_call_markup": "core.tool_healing.strip_tool_call_markup(text: 'str', *, final: 'bool' = False, enabled_tool_names=None) -> 'str'",
"strip_tool_patterns": "core.tool_healing.strip_tool_patterns(text: 'str', patterns) -> 'str'",
"tag_mention_spans": "core.tool_healing.tag_mention_spans(text: 'str') -> 'list[tuple[int, int]]'"
}
}
}