diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-02-12 20:57:17 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-02-12 20:57:17 +0100 |
| commit | b333b06772c89d96aacb5490d6a219fba7c09cc6 (patch) | |
| tree | 211df60083a5946baa2ed61d33d8121b7e251b06 /llama.cpp/common/jinja/caps.h | |
| download | llmnpc-b333b06772c89d96aacb5490d6a219fba7c09cc6.tar.gz | |
Engage!
Diffstat (limited to 'llama.cpp/common/jinja/caps.h')
| -rw-r--r-- | llama.cpp/common/jinja/caps.h | 30 |
1 files changed, 30 insertions, 0 deletions
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 <string> +#include <map> + +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<std::string, bool> to_map() const; + + // for debugging + std::string to_string() const; +}; + +caps caps_get(jinja::program & prog); + +} // namespace jinja |
