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
26
#include <
entropic/entropic_export.h
>
27
28
#include <string>
29
#include <string_view>
30
31
namespace
entropic::mcp {
32
39
ENTROPIC_EXPORT
bool
is_effectively_empty
(std::string_view s);
40
55
ENTROPIC_EXPORT
bool
looks_like_tool_error
(std::string_view content);
56
73
ENTROPIC_EXPORT
void
truncate_to_cap
(std::string& content,
int
cap);
74
75
}
// namespace entropic::mcp
entropic_export.h
Symbol visibility macro for all exported symbols.
entropic::mcp::looks_like_tool_error
ENTROPIC_EXPORT bool looks_like_tool_error(std::string_view content)
Heuristic: the rendered tool-result text reads as an error.
Definition
tool_result_classify.cpp:94
entropic::mcp::is_effectively_empty
ENTROPIC_EXPORT bool is_effectively_empty(std::string_view s)
True if s is empty or contains only ASCII whitespace.
Definition
tool_result_classify.cpp:53
entropic::mcp::truncate_to_cap
ENTROPIC_EXPORT void truncate_to_cap(std::string &content, int cap)
Truncate tool-result content in place when it exceeds cap.
Definition
tool_result_classify.cpp:76
entropic
mcp
tool_result_classify.h
Generated by
1.9.8