Module: Legion::Extensions::Llm::Vllm::TranslatorToolCallParseHelpers

Included in:
Translator
Defined in:
lib/legion/extensions/llm/vllm/translator.rb

Overview

Parses wire tool-call payloads and synthesizes tool calls from text content (the declared tool_calls_as_text quirk — some vLLM-served models emit tool calls as JSON text).

V4: attribution is not a fact a provider response can know — response tool calls carry source: nil. The executor resolves the execution authority by tool NAME from the request's tool map and stamps the actual source at execution; stamping :client on every response call was a reconstructed attribution fact.