llama_cpp_backend.h

src/inference/llama_cpp_backend.h

@file llama_cpp_backend.h @brief LlamaCppBackend — llama.cpp C API integration.

Owners: @tvanfossen

active_tool_grammar

std::string entropic::LlamaCppBackend::active_tool_grammar() const override

The tool-call GBNF captured by the last render (gh#154).

src/inference/llama_cpp_backend.h:648

Show on the map →

Called by create_sampler, generate_mtp, generate_speculative_with_draft

Calls none

Source · 3 lines
    std::string active_tool_grammar() const override {
        return active_tools_json_.empty() ? std::string{} : tool_grammar_;
    }
Activity · 3 steps
lines 649–649return active_tools_json_.empty() ? std::stringlines 649–649:lines 649–649tool_grammar_;

Requirements

REQ-INFER-008