MCPcopy Create free account

hub / github.com/ClickHouse/ai-sdk-cpp / functions

Functions454 in github.com/ClickHouse/ai-sdk-cpp

↓ 107 callersMethoderror_message
src/types/stream_result.cpp:91
↓ 80 callersFunctionlog_debug
include/ai/logger.h:129
↓ 72 callersMethodis_success
include/ai/types/tool.h:158
↓ 61 callersFunctioncreate_client
src/providers/openai/openai_factory.cpp:34
↓ 56 callersMethodgenerate_text
tests/utils/mock_openai_client.cpp:44
↓ 54 callersMethodis_valid
tests/utils/mock_openai_client.cpp:106
↓ 39 callersMethodend
src/langfuse/tracer.cpp:505
↓ 35 callersMethodgenerate_text
include/ai/types/client.h:29
↓ 27 callersMethodembeddings
include/ai/types/client.h:35
↓ 24 callersFunctionlog_error
include/ai/logger.h:144
↓ 23 callersMethodbegin
src/types/stream_result.cpp:56
↓ 21 callersMethodhas_tool_calls
include/ai/types/message.h:103
↓ 19 callersFunctionlog_info
include/ai/logger.h:134
↓ 17 callersFunctioncreate_simple_tool
src/tools/tool_executor.cpp:231
↓ 15 callersMethodsupports_model
tests/utils/mock_openai_client.cpp:118
↓ 14 callersMethodend
src/types/stream_result.cpp:60
↓ 12 callersMethodfinishReasonToString
include/ai/types/generate_options.h:133
↓ 12 callersMethodstream_text
tests/utils/mock_openai_client.cpp:95
↓ 11 callersMethodis_error
include/ai/types/stream_event.h:27
↓ 10 callersMethodis_text_delta
include/ai/types/stream_event.h:25
↓ 9 callersFunctioncosine_similarity
Helper function to calculate cosine similarity between two embeddings
examples/embeddings_example.cpp:26
↓ 9 callersMethodget_text
include/ai/types/message.h:117
↓ 9 callersMethodhas_tool_results
include/ai/types/message.h:110
↓ 9 callersMethodis_finish
include/ai/types/stream_event.h:29
↓ 9 callersMethodprovider_name
tests/utils/mock_openai_client.cpp:110
↓ 9 callersMethodstream_text
include/ai/types/client.h:41
↓ 8 callersMethodis_valid
src/langfuse/tracer.cpp:167
↓ 8 callersFunctiontest_provider
examples/multi_provider.cpp:33
↓ 7 callersMethoddefault_model
include/ai/types/client.h:77
↓ 6 callersMethodconfig_info
tests/utils/mock_openai_client.cpp:124
↓ 6 callersMethodgetCallCount
tests/utils/mock_openai_client.cpp:136
↓ 5 callersFunctionwrap_event
src/langfuse/tracer.cpp:349
↓ 4 callersFunctioncreate_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 callersFunctioncreate_simple_async_tool
src/tools/tool_executor.cpp:239
↓ 4 callersFunctioncreate_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 callersFunctionget_api_key_or_default
src/providers/openai/openai_factory.cpp:16
↓ 4 callersMethodhas_input
include/ai/types/embedding_options.h:46
↓ 4 callersMethodhas_tools
include/ai/types/generate_options.h:70
↓ 4 callersFunctionparse_standard_error_response
Parse a generic error response that follows the common pattern of { "error": { "message": "...", "type": "..." } }
src/utils/response_utils.h:16
↓ 3 callersMethodbuild_headers
src/providers/openai/openai_request_builder.cpp:201
↓ 3 callersMethodbuild_request_json
src/providers/openai/openai_request_builder.cpp:9
↓ 3 callersMethoderror_message
include/ai/types/tool.h:160
↓ 3 callersFunctionextract_embedding
Helper function to extract embedding as a vector of doubles
examples/embeddings_example.cpp:50
↓ 3 callersMethodget_all_tool_calls
include/ai/types/generate_options.h:156
↓ 3 callersMethodget_all_tool_results
include/ai/types/generate_options.h:165
↓ 3 callersFunctionget_api_key_or_default
src/providers/anthropic/anthropic_factory.cpp:16
↓ 3 callersMethodhas_messages
include/ai/types/generate_options.h:68
↓ 3 callersFunctioninstall_logger
include/ai/logger.h:117
↓ 3 callersFunctionis_status_code_retryable
Check if an HTTP status code indicates a retryable error
include/ai/errors.h:9
↓ 3 callersFunctionprint_result
examples/multi_provider.cpp:61
↓ 3 callersMethodreset
tests/utils/mock_openai_client.cpp:36
↓ 3 callersMethodset_output
src/langfuse/tracer.cpp:251
↓ 3 callersMethodstatus_code
include/ai/errors.h:33
↓ 3 callersMethodsupported_models
tests/utils/mock_openai_client.cpp:114
↓ 2 callersMethodcollect_all
src/types/stream_result.cpp:71
↓ 2 callersMethoderror
include/ai/logger.h:51
↓ 2 callersFunctiongenerateRandomSuffix
Utility function to generate random suffix for table names
tests/integration/clickhouse_integration_test.cpp:18
↓ 2 callersMethodgetLastStreamOptions
tests/utils/mock_openai_client.cpp:132
↓ 2 callersMethodget_active_tool_names
include/ai/types/generate_options.h:74
↓ 2 callersFunctionget_base_url_or_default
src/providers/openai/openai_factory.cpp:29
↓ 2 callersMethodget_tool_calls
include/ai/types/message.h:127
↓ 2 callersMethodget_tool_results
include/ai/types/message.h:138
↓ 2 callersMethodhas_error
src/types/stream_result.cpp:81
↓ 2 callersMethodhas_more_events
src/providers/openai/openai_stream.cpp:77
↓ 2 callersMethodis_multi_step
include/ai/types/generate_options.h:154
↓ 2 callersFunctionlog_warn
include/ai/logger.h:139
↓ 2 callersFunctionmake_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 callersFunctionmessage_role_to_string
Convert MessageRole enum to string representation
src/utils/message_utils.h:11
↓ 2 callersMethodpost
src/http/http_request_handler.cpp:45
↓ 2 callersMethodprovider_name
include/ai/types/client.h:53
↓ 2 callersFunctionrun_command
Run a command and handle errors with rich output.
scripts/build.py:44
↓ 2 callersMethodsetShouldFail
tests/utils/mock_openai_client.cpp:28
↓ 2 callersMethodsetShouldTimeout
tests/utils/mock_openai_client.cpp:32
↓ 2 callersMethodset_input
src/langfuse/tracer.cpp:244
↓ 2 callersMethodset_metadata
src/langfuse/tracer.cpp:272
↓ 2 callersMethodto_string
include/ai/types/tool.h:125
↓ 1 callersMethodadd_tag
src/langfuse/tracer.cpp:279
↓ 1 callersFunctionbase64_encode
src/langfuse/tracer.cpp:65
↓ 1 callersMethodbuild_headers
src/providers/anthropic/anthropic_request_builder.cpp:168
↓ 1 callersMethodbuild_request_json
src/providers/anthropic/anthropic_request_builder.cpp:9
↓ 1 callersFunctioncheck_file_format
Check if a file is properly formatted.
scripts/format.py:44
↓ 1 callersMethodcreateGetSchemaForTableTool
tests/integration/clickhouse_integration_test.cpp:149
↓ 1 callersMethodcreateListDatabasesTool
tests/integration/clickhouse_integration_test.cpp:81
↓ 1 callersMethodcreateListTablesInDatabaseTool
tests/integration/clickhouse_integration_test.cpp:111
↓ 1 callersFunctioncreate_async_tool
Helper function to create an async tool
include/ai/types/tool.h:237
↓ 1 callersMethoddebug
include/ai/logger.h:27
↓ 1 callersFunctiondemonstrate_api_errors
examples/error_handling.cpp:21
↓ 1 callersFunctiondemonstrate_exception_handling
examples/error_handling.cpp:148
↓ 1 callersFunctiondemonstrate_logging
examples/error_handling.cpp:271
↓ 1 callersFunctiondemonstrate_network_errors
examples/error_handling.cpp:92
↓ 1 callersFunctiondemonstrate_recovery_patterns
examples/error_handling.cpp:175
↓ 1 callersFunctiondemonstrate_streaming_errors
examples/error_handling.cpp:114
↓ 1 callersFunctiondemonstrate_validation
examples/error_handling.cpp:60
↓ 1 callersMethodexecute_with_retry
include/ai/retry/retry_policy.h:25
↓ 1 callersFunctionextract_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 callersFunctionfind_compile_commands
Find compile_commands.json in build directory or project root.
scripts/lint.py:30
↓ 1 callersFunctionfind_cpp_files
Find all C++ source and header files in the project.
scripts/format.py:27
↓ 1 callersFunctionfind_cpp_files
Find all C++ source files in the project.
scripts/lint.py:75
↓ 1 callersMethodfinish_generation
src/langfuse/tracer.cpp:424
↓ 1 callersFunctionformat_file
Format a file in place.
scripts/format.py:54
next →1–100 of 454, ranked by callers