MCPcopy Create free account
hub / github.com/Luce-Org/lucebox-hub / has_single_request_tool

Function has_single_request_tool

server/src/server/sse_emitter.cpp:26–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24static bool starts_with_potential_bare_json_tool(const std::string & text,
25 const json & tools) {
26 if (!has_request_tools(tools)) return false;
27 size_t first = text.find_first_not_of(" \t\n\r");
28 return first != std::string::npos && text[first] == '{';
29}
30
31static std::string gen_item_id() {

Callers 1

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected