MCPcopy Create free account
hub / github.com/ClickHouse/ai-sdk-cpp / createResponseWithMetadata

Method createResponseWithMetadata

tests/utils/test_fixtures.cpp:234–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234nlohmann::json TestDataGenerator::createResponseWithMetadata() {
235 auto response = createFullValidResponse();
236 response["custom_field"] = "custom_value";
237 response["choices"][0]["custom_choice_field"] = true;
238 return response;
239}
240
241std::vector<std::pair<int, std::string>> TestDataGenerator::errorScenarios() {
242 return {{400, "Bad request - invalid parameters"},

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected