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

Method ControllableAnthropicClient

tests/utils/mock_anthropic_client.cpp:12–20  ·  view source on GitHub ↗

ControllableAnthropicClient implementation

Source from the content-addressed store, hash-verified

10
11// ControllableAnthropicClient implementation
12ControllableAnthropicClient::ControllableAnthropicClient(
13 const std::string& /* api_key */,
14 const std::string& /* base_url */)
15 : predefined_status_code_(200),
16 should_fail_(false),
17 should_timeout_(false),
18 call_count_(0) {
19 predefined_response_ = AnthropicResponseBuilder::buildSuccessResponse();
20}
21
22void ControllableAnthropicClient::setPredefinedResponse(
23 const std::string& response,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected