Entropic 2.11.1
Local-first agentic inference engine
Loading...
Searching...
No Matches
gemma4_adapter.cpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
8#include "gemma4_adapter.h"
9
10namespace entropic {
11
30ParseResult Gemma4Adapter::parse_tool_calls(const std::string& content) const {
31 ParseResult result;
33 result.cleaned_content = strip_think_blocks(content);
34 return result;
35}
36
37} // namespace entropic
std::string strip_think_blocks(const std::string &content) const
Strip this family's reasoning blocks from content (gh#108).
ParseResult parse_tool_calls(const std::string &content) const override
Fallback parse for when no common_chat arena is available.
Gemma4Adapter — the fallback parse path for Gemma-4 tiers (gh#108).
Activate model on GPU (WARM → ACTIVE).
std::vector< ToolCall > recover_action_envelope_calls(const std::string &raw)
gh#88: recover tool calls a gemma model parroted as bare-JSON.
Parsed tool call result: cleaned content + extracted calls.
std::string cleaned_content
Content with tool calls removed.
std::vector< ToolCall > tool_calls
Extracted tool calls.