Entropic 2.11.1
Local-first agentic inference engine
Loading...
Searching...
No Matches
gemma4_adapter.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
28#pragma once
29
31
32namespace entropic {
33
38class Gemma4Adapter : public ChatAdapter {
39public:
41
48 std::string chat_format() const override { return "gemma4"; }
49
65 ThinkMarkers thinking_markers() const override {
66 return {"<|channel>", "<channel|>"};
67 }
68
75 ParseResult parse_tool_calls(const std::string& content) const override;
76};
77
78} // namespace entropic
ChatAdapter concrete base class.
Concrete base class for chat format adapters (80% logic).
ChatAdapter(std::string tier_name, std::string identity_prompt)
Construct adapter with tier identity.
Fallback adapter for Gemma-4 tiers; owns the <|channel> markers.
std::string chat_format() const override
Chat format identifier.
ThinkMarkers thinking_markers() const override
Gemma-4 QAT reasoning delimiters.
ParseResult parse_tool_calls(const std::string &content) const override
Fallback parse for when no common_chat arena is available.
Activate model on GPU (WARM → ACTIVE).
Parsed tool call result: cleaned content + extracted calls.
The reasoning-block delimiters a model family emits (gh#108).