Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ClickHouse/ai-sdk-cpp
/ functions
Functions
454 in github.com/ClickHouse/ai-sdk-cpp
⨍
Functions
454
◇
Types & classes
128
↳
Endpoints
1
↓ 107 callers
Method
error_message
src/types/stream_result.cpp:91
↓ 80 callers
Function
log_debug
include/ai/logger.h:129
↓ 72 callers
Method
is_success
include/ai/types/tool.h:158
↓ 61 callers
Function
create_client
src/providers/openai/openai_factory.cpp:34
↓ 56 callers
Method
generate_text
tests/utils/mock_openai_client.cpp:44
↓ 54 callers
Method
is_valid
tests/utils/mock_openai_client.cpp:106
↓ 39 callers
Method
end
src/langfuse/tracer.cpp:505
↓ 35 callers
Method
generate_text
include/ai/types/client.h:29
↓ 27 callers
Method
embeddings
include/ai/types/client.h:35
↓ 24 callers
Function
log_error
include/ai/logger.h:144
↓ 23 callers
Method
begin
src/types/stream_result.cpp:56
↓ 21 callers
Method
has_tool_calls
include/ai/types/message.h:103
↓ 19 callers
Function
log_info
include/ai/logger.h:134
↓ 17 callers
Function
create_simple_tool
src/tools/tool_executor.cpp:231
↓ 15 callers
Method
supports_model
tests/utils/mock_openai_client.cpp:118
↓ 14 callers
Method
end
src/types/stream_result.cpp:60
↓ 12 callers
Method
finishReasonToString
include/ai/types/generate_options.h:133
↓ 12 callers
Method
stream_text
tests/utils/mock_openai_client.cpp:95
↓ 11 callers
Method
is_error
include/ai/types/stream_event.h:27
↓ 10 callers
Method
is_text_delta
include/ai/types/stream_event.h:25
↓ 9 callers
Function
cosine_similarity
Helper function to calculate cosine similarity between two embeddings
examples/embeddings_example.cpp:26
↓ 9 callers
Method
get_text
include/ai/types/message.h:117
↓ 9 callers
Method
has_tool_results
include/ai/types/message.h:110
↓ 9 callers
Method
is_finish
include/ai/types/stream_event.h:29
↓ 9 callers
Method
provider_name
tests/utils/mock_openai_client.cpp:110
↓ 9 callers
Method
stream_text
include/ai/types/client.h:41
↓ 8 callers
Method
is_valid
src/langfuse/tracer.cpp:167
↓ 8 callers
Function
test_provider
examples/multi_provider.cpp:33
↓ 7 callers
Method
default_model
include/ai/types/client.h:77
↓ 6 callers
Method
config_info
tests/utils/mock_openai_client.cpp:124
↓ 6 callers
Method
getCallCount
tests/utils/mock_openai_client.cpp:136
↓ 5 callers
Function
wrap_event
src/langfuse/tracer.cpp:349
↓ 4 callers
Function
create_object_schema
Helper to create JSON schema for simple object parameters Usage: auto schema = create_object_schema({{"location", "string"}, {"units", "string"}});
include/ai/types/tool.h:253
↓ 4 callers
Function
create_simple_async_tool
src/tools/tool_executor.cpp:239
↓ 4 callers
Function
create_tool
Helper function to create a simple tool with JSON schema Usage: auto weather_tool = create_tool("Get weather", weather_schema, weather_function);
include/ai/types/tool.h:230
↓ 4 callers
Function
get_api_key_or_default
src/providers/openai/openai_factory.cpp:16
↓ 4 callers
Method
has_input
include/ai/types/embedding_options.h:46
↓ 4 callers
Method
has_tools
include/ai/types/generate_options.h:70
↓ 4 callers
Function
parse_standard_error_response
Parse a generic error response that follows the common pattern of { "error": { "message": "...", "type": "..." } }
src/utils/response_utils.h:16
↓ 3 callers
Method
build_headers
src/providers/openai/openai_request_builder.cpp:201
↓ 3 callers
Method
build_request_json
src/providers/openai/openai_request_builder.cpp:9
↓ 3 callers
Method
error_message
include/ai/types/tool.h:160
↓ 3 callers
Function
extract_embedding
Helper function to extract embedding as a vector of doubles
examples/embeddings_example.cpp:50
↓ 3 callers
Method
get_all_tool_calls
include/ai/types/generate_options.h:156
↓ 3 callers
Method
get_all_tool_results
include/ai/types/generate_options.h:165
↓ 3 callers
Function
get_api_key_or_default
src/providers/anthropic/anthropic_factory.cpp:16
↓ 3 callers
Method
has_messages
include/ai/types/generate_options.h:68
↓ 3 callers
Function
install_logger
include/ai/logger.h:117
↓ 3 callers
Function
is_status_code_retryable
Check if an HTTP status code indicates a retryable error
include/ai/errors.h:9
↓ 3 callers
Function
print_result
examples/multi_provider.cpp:61
↓ 3 callers
Method
reset
tests/utils/mock_openai_client.cpp:36
↓ 3 callers
Method
set_output
src/langfuse/tracer.cpp:251
↓ 3 callers
Method
status_code
include/ai/errors.h:33
↓ 3 callers
Method
supported_models
tests/utils/mock_openai_client.cpp:114
↓ 2 callers
Method
collect_all
src/types/stream_result.cpp:71
↓ 2 callers
Method
error
include/ai/logger.h:51
↓ 2 callers
Function
generateRandomSuffix
Utility function to generate random suffix for table names
tests/integration/clickhouse_integration_test.cpp:18
↓ 2 callers
Method
getLastStreamOptions
tests/utils/mock_openai_client.cpp:132
↓ 2 callers
Method
get_active_tool_names
include/ai/types/generate_options.h:74
↓ 2 callers
Function
get_base_url_or_default
src/providers/openai/openai_factory.cpp:29
↓ 2 callers
Method
get_tool_calls
include/ai/types/message.h:127
↓ 2 callers
Method
get_tool_results
include/ai/types/message.h:138
↓ 2 callers
Method
has_error
src/types/stream_result.cpp:81
↓ 2 callers
Method
has_more_events
src/providers/openai/openai_stream.cpp:77
↓ 2 callers
Method
is_multi_step
include/ai/types/generate_options.h:154
↓ 2 callers
Function
log_warn
include/ai/logger.h:139
↓ 2 callers
Function
make_span_create
Build a span-create event body. Used for both tool-call starts (open span) and the synthetic span emitted in record_tool_call_finish's fallback path.
src/langfuse/tracer.cpp:330
↓ 2 callers
Function
message_role_to_string
Convert MessageRole enum to string representation
src/utils/message_utils.h:11
↓ 2 callers
Method
post
src/http/http_request_handler.cpp:45
↓ 2 callers
Method
provider_name
include/ai/types/client.h:53
↓ 2 callers
Function
run_command
Run a command and handle errors with rich output.
scripts/build.py:44
↓ 2 callers
Method
setShouldFail
tests/utils/mock_openai_client.cpp:28
↓ 2 callers
Method
setShouldTimeout
tests/utils/mock_openai_client.cpp:32
↓ 2 callers
Method
set_input
src/langfuse/tracer.cpp:244
↓ 2 callers
Method
set_metadata
src/langfuse/tracer.cpp:272
↓ 2 callers
Method
to_string
include/ai/types/tool.h:125
↓ 1 callers
Method
add_tag
src/langfuse/tracer.cpp:279
↓ 1 callers
Function
base64_encode
src/langfuse/tracer.cpp:65
↓ 1 callers
Method
build_headers
src/providers/anthropic/anthropic_request_builder.cpp:168
↓ 1 callers
Method
build_request_json
src/providers/anthropic/anthropic_request_builder.cpp:9
↓ 1 callers
Function
check_file_format
Check if a file is properly formatted.
scripts/format.py:44
↓ 1 callers
Method
createGetSchemaForTableTool
tests/integration/clickhouse_integration_test.cpp:149
↓ 1 callers
Method
createListDatabasesTool
tests/integration/clickhouse_integration_test.cpp:81
↓ 1 callers
Method
createListTablesInDatabaseTool
tests/integration/clickhouse_integration_test.cpp:111
↓ 1 callers
Function
create_async_tool
Helper function to create an async tool
include/ai/types/tool.h:237
↓ 1 callers
Method
debug
include/ai/logger.h:27
↓ 1 callers
Function
demonstrate_api_errors
examples/error_handling.cpp:21
↓ 1 callers
Function
demonstrate_exception_handling
examples/error_handling.cpp:148
↓ 1 callers
Function
demonstrate_logging
examples/error_handling.cpp:271
↓ 1 callers
Function
demonstrate_network_errors
examples/error_handling.cpp:92
↓ 1 callers
Function
demonstrate_recovery_patterns
examples/error_handling.cpp:175
↓ 1 callers
Function
demonstrate_streaming_errors
examples/error_handling.cpp:114
↓ 1 callers
Function
demonstrate_validation
examples/error_handling.cpp:60
↓ 1 callers
Method
execute_with_retry
include/ai/retry/retry_policy.h:25
↓ 1 callers
Function
extract_base_path
Strip the scheme prefix off a Langfuse host URL and return the leading sub-path (everything after the host[:port], e.g. "/langfuse" if hosted under a
src/langfuse/tracer.cpp:32
↓ 1 callers
Function
find_compile_commands
Find compile_commands.json in build directory or project root.
scripts/lint.py:30
↓ 1 callers
Function
find_cpp_files
Find all C++ source and header files in the project.
scripts/format.py:27
↓ 1 callers
Function
find_cpp_files
Find all C++ source files in the project.
scripts/lint.py:75
↓ 1 callers
Method
finish_generation
src/langfuse/tracer.cpp:424
↓ 1 callers
Function
format_file
Format a file in place.
scripts/format.py:54
next →
1–100 of 454, ranked by callers