Franklin icon indicating copy to clipboard operation
Franklin copied to clipboard

VoiceCall tool doesn't expose `interruption_threshold` or `model` — gateway already supports both

Open KillerQueen-Z opened this issue 6 months ago • 1 comments

VoiceCall is missing two conversation-quality knobs the gateway already accepts

Summary

The BlockRun gateway's voice-call endpoint accepts interruption_threshold and model (Bland tier), but Franklin's VoiceCall tool never exposes or forwards them. Users therefore cannot control how aggressively the AI interrupts the callee, nor pick a faster/higher-quality Bland model — two of the highest-impact levers on real call quality. This is a small, self-contained passthrough fix.

Details

The gateway schema (CallRequestSchema) already validates both fields:

  • interruption_threshold: z.number().int().min(50).max(500).optional() — controls how long the AI waits before talking over the other party. Lower = more polite. This is one of the single biggest factors in whether an AI call feels natural vs. rude.
  • model: z.enum(["base", "enhanced", "turbo"]).optional() — Bland model tier, trades latency/quality/cost.

But VoiceCall's input_schema only declares voice, max_duration, language, first_sentence, and wait_for_greeting. The execute body likewise only forwards those. So even though the gateway honors interruption_threshold/model, there is no way for the agent to set them — they are silently unavailable to every Franklin user.

This mirrors the same class of gap that was just fixed for voicemail params: tool schema lagging behind gateway capability.

Evidence

  • Gateway supports both — blockrun/src/lib/bland.ts:39-40:
    interruption_threshold: z.number().int().min(50).max(500).optional(),
    model: z.enum(["base", "enhanced", "turbo"]).optional(),
    
  • Franklin VoiceCall does NOT expose them — Franklin/src/tools/voice.ts input_schema (~L243-288) lists only voice / max_duration / language / first_sentence / wait_for_greeting, and the forward block (~L304-308) only echoes those.

Suggested direction

Two-line-class change, identical pattern to the existing optional passthroughs:

  1. Add to input_schema.properties:
    • interruption_threshold (integer, 50–500, describe "lower = more polite, waits longer before speaking over the callee")
    • model (enum base|enhanced|turbo)
  2. Add to the execute forward block:
    if (typeof input.interruption_threshold === 'number') body.interruption_threshold = input.interruption_threshold;
    if (typeof input.model === 'string') body.model = input.model;
    

Both optional, so existing calls are unchanged. No gateway work needed — it already accepts them.


💰 Bounty submission — reward to `0x3491…402E` (Base · USDC) 🤖 Submitted via Franklin, the AI agent with a wallet · blockrun.ai

KillerQueen-Z avatar May 23 '26 00:05 KillerQueen-Z

Closing — demo/format test, will resubmit with corrected format.

KillerQueen-Z avatar May 23 '26 00:05 KillerQueen-Z