CoolFace
Modelpublic

Felipe97/llama-cpp-compiled

sourceHugging Faceupdated 4d agoView on Hugging Face
0likes1.1kdownloads
caps.h41 linesDownload Raw Back to jinja
1#pragma once2 3#include "runtime.h"4 5#include <string>6#include <map>7 8namespace jinja {9 10struct caps {11    bool supports_tools = true;12    bool supports_tool_calls = true;13    bool supports_system_role = true;14    bool supports_parallel_tool_calls = true;15 16    // supports preserve reasoning trace in the full history, not just the last assistant message17    bool supports_preserve_reasoning = false;18 19    // supports reasoning effort levels20    bool supports_reasoning_effort = false;21 22    // one of the 2 content capabilities must be true23    bool supports_string_content = true;24    bool supports_typed_content = false;25 26    bool supports_object_arguments = false;27 28    // for reporting on server29    std::map<std::string, bool> to_map() const;30 31    // for debugging32    std::string to_string() const;33};34 35caps caps_get(jinja::program & prog);36 37void caps_apply_preserve_reasoning(jinja::context & ctx, bool enabled);38void caps_apply_reasoning_effort(jinja::context & ctx, const std::string & effort);39 40} // namespace jinja41