From b333b06772c89d96aacb5490d6a219fba7c09cc6 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Thu, 12 Feb 2026 20:57:17 +0100 Subject: Engage! --- llama.cpp/common/jinja/caps.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 llama.cpp/common/jinja/caps.h (limited to 'llama.cpp/common/jinja/caps.h') diff --git a/llama.cpp/common/jinja/caps.h b/llama.cpp/common/jinja/caps.h new file mode 100644 index 0000000..e694e7b --- /dev/null +++ b/llama.cpp/common/jinja/caps.h @@ -0,0 +1,30 @@ +#pragma once + +#include "runtime.h" + +#include +#include + +namespace jinja { + +struct caps { + bool supports_tools = true; + bool supports_tool_calls = true; + bool supports_system_role = true; + bool supports_parallel_tool_calls = true; + bool supports_preserve_reasoning = false; // support assistant message with reasoning_content + + // one of the 2 content capabilities must be true + bool supports_string_content = true; + bool supports_typed_content = false; + + // for reporting on server + std::map to_map() const; + + // for debugging + std::string to_string() const; +}; + +caps caps_get(jinja::program & prog); + +} // namespace jinja -- cgit v1.2.3