Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
tool_result_classify.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
24#pragma once
25
27
28#include <string>
29#include <string_view>
30
31namespace entropic::mcp {
32
39ENTROPIC_EXPORT bool is_effectively_empty(std::string_view s);
40
55ENTROPIC_EXPORT bool looks_like_tool_error(std::string_view content);
56
73ENTROPIC_EXPORT void truncate_to_cap(std::string& content, int cap);
74
75} // namespace entropic::mcp
Symbol visibility macro for all exported symbols.
ENTROPIC_EXPORT bool looks_like_tool_error(std::string_view content)
Heuristic: the rendered tool-result text reads as an error.
ENTROPIC_EXPORT bool is_effectively_empty(std::string_view s)
True if s is empty or contains only ASCII whitespace.
ENTROPIC_EXPORT void truncate_to_cap(std::string &content, int cap)
Truncate tool-result content in place when it exceeds cap.