Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
generic_adapter.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
11#pragma once
12
14
15namespace entropic {
16
22public:
24
31 std::string chat_format() const override { return "chatml"; }
32
39 ParseResult parse_tool_calls(const std::string& content) const override;
40};
41
42} // 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.
Generic adapter using <tool_call>JSON</tool_call> format.
std::string chat_format() const override
Chat format: ChatML.
ParseResult parse_tool_calls(const std::string &content) const override
Parse tagged JSON tool calls.
Activate model on GPU (WARM → ACTIVE).
Parsed tool call result: cleaned content + extracted calls.