Entropic 2.9.5
Local-first agentic inference engine
Loading...
Searching...
No Matches
adapter_registry.cpp File Reference

Adapter factory implementation. More...

#include "adapter_registry.h"
#include "generic_adapter.h"
#include "nemotron3_adapter.h"
#include "qwen35_adapter.h"
#include "qwen36_adapter.h"
#include <entropic/types/logging.h>
#include <algorithm>
#include <array>
#include <functional>
#include <string>
#include <string_view>
Include dependency graph for adapter_registry.cpp:

Go to the source code of this file.

Namespaces

namespace  entropic
 Activate model on GPU (WARM → ACTIVE).
 

Functions

std::unique_ptr< ChatAdapterentropic::create_adapter (const std::string &name, const std::string &tier_name, const std::string &identity_prompt)
 Create adapter by name (gh#87 Phase D hybrid).
 

Detailed Description

Adapter factory implementation.

gh#87 Phase D (v2.7.0): hybrid parse ownership. llama.cpp common_chat owns tool-call parsing for families it has a DEDICATED grammar for (gemma4 → PEG_GEMMA4, multi-parameter safe). Families that fall to common_chat's PEG autoparser (Qwen, nemotron3) keep their hand-rolled adapter, because the autoparser only extracts the first <parameter=> of a multi-parameter call. So:

  • qwen35 / qwen36 / nemotron3 → their per-family adapter (multi-param).
  • gemma4 / anything else → GenericAdapter (identity assembly only; parsing flows through common_chat).
Version
1.8.2

Definition in file adapter_registry.cpp.

Variable Documentation

◆ factory

AdapterFactory factory

Definition at line 49 of file adapter_registry.cpp.

◆ key

std::string_view key

Definition at line 48 of file adapter_registry.cpp.