Skip to main content

Module sync

Module sync 

Source
Expand description

Blocking (sync-style) client facade built on top of the async SDK.

This module is intended for applications that cannot use async/await. It runs SDK futures on an internal Tokio runtime and exposes blocking request methods across the SDK API namespaces.

Structsยง

SyncAuthApi
Blocking wrapper for AuthApi.
SyncBatchApi
Blocking wrapper for BatchApi.
SyncChatApi
Blocking wrapper for the legacy ChatApi.
SyncChatCompletionBuilder
Blocking wrapper for ChatCompletionBuilder.
SyncCollectionsApi
Blocking wrapper for CollectionsApi.
SyncCreateResponseBuilder
Blocking wrapper for CreateResponseBuilder.
SyncDeferredResponsePoller
Blocking wrapper for DeferredResponsePoller.
SyncFilesApi
Blocking wrapper for FilesApi.
SyncImageGenerationBuilder
Blocking wrapper for ImageGenerationBuilder.
SyncImagesApi
Blocking wrapper for ImagesApi.
SyncModelsApi
Blocking wrapper for ModelsApi.
SyncResponsesApi
Blocking wrapper for ResponsesApi.
SyncStatefulChat
Blocking wrapper for stateful chat interactions.
SyncTokenizerApi
Blocking wrapper for TokenizerApi.
SyncUploadFileBuilder
Blocking wrapper for UploadFileBuilder.
SyncVideosApi
Blocking wrapper for VideosApi.
SyncXaiClient
Blocking/sync facade for the xAI SDK.