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

Method stream_text

tests/utils/mock_anthropic_client.cpp:115–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115StreamResult ControllableAnthropicClient::stream_text(
116 const StreamOptions& options) {
117 // Copy the generate options part instead of the whole StreamOptions
118 last_generate_options_ = static_cast<const GenerateOptions&>(options);
119 call_count_++;
120
121 // For now, return a basic StreamResult
122 // In a real implementation, this would return a proper streaming interface
123 return StreamResult(nullptr);
124}
125
126bool ControllableAnthropicClient::is_valid() const {
127 return !should_fail_;

Callers

nothing calls this directly

Calls 1

StreamResultClass · 0.85

Tested by

no test coverage detected