Entropic 2.3.8
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
47#pragma once
48
50
51namespace entropic {
52
62class Gemma4Adapter : public ChatAdapter {
63public:
65
72 std::string chat_format() const override { return ""; }
73
84 ParseResult parse_tool_calls(const std::string& content) const override;
85};
86
87} // 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.
Gemma 4 chat adapter (covers A4B / E4B / E2B variants).
std::string chat_format() const override
Chat format: GGUF-embedded template.
ParseResult parse_tool_calls(const std::string &content) const override
Parse tool calls via tagged JSON, falling back to bare JSON.
Activate model on GPU (WARM → ACTIVE).
Parsed tool call result: cleaned content + extracted calls.