Entropic 2.9.4
Local-first agentic inference engine
Loading...
Searching...
No Matches
mtp_envelope.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
50#pragma once
51
52#include <string>
53
54namespace entropic {
55
75inline std::string mtp_unsupported_reason(float temperature, bool has_grammar,
76 bool streaming) {
77 (void)temperature;
78 std::string r;
79 if (has_grammar) {
80 r = "MTP does not enforce grammar constraints; disable speculative.mtp "
81 "for grammar-constrained tiers";
82 } else if (streaming) {
83 r = "MTP does not support streaming (the thinking-channel strip is a "
84 "post-buffer operation); disable speculative.mtp for streaming calls";
85 }
86 return r;
87}
88
89} // namespace entropic
Activate model on GPU (WARM → ACTIVE).
std::string mtp_unsupported_reason(float temperature, bool has_grammar, bool streaming)
Reason MTP cannot run for a request, or "" when the envelope is safe.