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

Method setPredefinedResponse

tests/utils/mock_anthropic_client.cpp:22–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22void ControllableAnthropicClient::setPredefinedResponse(
23 const std::string& response,
24 int status_code) {
25 predefined_response_ = response;
26 predefined_status_code_ = status_code;
27}
28
29void ControllableAnthropicClient::setShouldFail(bool fail) {
30 should_fail_ = fail;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected