Entropic 2.9.5
Local-first agentic inference engine
Loading...
Searching...
No Matches
tool_call_serialize.h File Reference

Shared serialization of parsed tool calls to the C-ABI JSON array form. More...

#include <string>
#include <vector>
#include <entropic/types/tool_call.h>
#include <nlohmann/json.hpp>
Include dependency graph for tool_call_serialize.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

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

Functions

std::string entropic::serialize_tool_calls (const std::vector< ToolCall > &calls)
 Serialize parsed tool calls to the C-ABI JSON array form.
 

Detailed Description

Shared serialization of parsed tool calls to the C-ABI JSON array form.

gh#93: production (interface_factory.cpp) and the model-test harness (tests/model/model_test_context.h) each carried their own copy of this. The harness copy stored every argument value as a raw JSON string, while production parsed each value into its natural JSON type — a silent harness↔production fidelity gap (the class of divergence that hid gh#88/90/94). This single source of truth (the typed form) closes that gap by construction: both sites now emit exactly what a consumer receives across the .so boundary.

Version
2.8.0

Definition in file tool_call_serialize.h.