Skip to content

P6: Tool calling reliability — parser-per-model-family #324

Closed

Description

@joelteply

Local models can't reliably emit tool calls. Need 7 model-family parsers. THE blocker for local model utility. See ALPHA-GAP-ANALYSIS.md P6.

Activity

  1. joelteply commented on Mar 25, 2026

    @joelteply
    ContributorAuthor

    Parser-per-model-family is implemented in Rust (continuum-core/src/tool_parsing/):

    6 model families: DeepSeek, Llama, Mistral, Hermes, Qwen, Generic

    • Each has dedicated parsing logic with format-specific delimiters
    • parse_and_correct_with_family() prioritizes the model-specific parser, falls back to others
    • Truncation recovery for malformed outputs
    • Correction pipeline applies name/param fixes after parsing
    • Native protocol (Anthropic, OpenAI) doesn't need text parsing — handled upstream

    The 7th "parser" (Native) is the structured JSON tool_use protocol, not a text parser — it's a different code path entirely (agent loop checks aiResponse.toolCalls before text parsing).

    IPC integration: AgentToolExecutor.parseResponse() → Rust IPC tool-parsing/parse with model_family hint.

    Closing as implemented.

  2. added 2 commits that reference this issue on Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions