tinker.types.ClientConfigResponse
Generated from tinker 0.40.0 at commit 3e952a8. Source links point at that snapshot.
class tinker.types.ClientConfigResponse(BaseModel)
Server-side feature flags resolved for this caller.
Uses BaseModel (extra="ignore") so new flags from the server are silently dropped until the SDK adds fields for them.
Fields:
- pjwt_auth_enabled (bool)
- credential_default_source (str)
- sample_dispatch_bytes_semaphore_size (int)
- inflight_response_bytes_semaphore_size (int)
- parallel_fwdbwd_chunks (bool)
- proto_compress_fwdbwd (bool) – When true, the SDK zstd-compresses the proto fwd/bwd request body and sets Content-Encoding: zstd. Real fwd/bwd payloads compress >10× — the API server decompresses transparently via an ASGI middleware.
- fwdbwd_max_chunk_len (int) – Maximum number of datums per fwd/bwd chunk request.
- fwdbwd_max_chunk_bytes_count (int) – Maximum estimated request payload bytes (serialized proto, before zstd compression) per fwd/bwd chunk request.
- fwdbwd_dispatch_bytes_semaphore_size (int) – Maximum estimated fwd/bwd request payload bytes being dispatched at the same time (same pre-compression estimate as fwdbwd_max_chunk_bytes_count). Bounds client memory for serialized bodies and smooths submission bursts.
- billing_exception_max_pause_duration_sec (int)
- sample_no_retries (bool)
- sample_enable_stuck_detection (bool) – When true, the SDK runs the retry handler's progress timeout check that
raises
APIConnectionError("...Requests appear to be stuck.")when no progress is made withinRetryConfig.progress_timeout. - sample_max_concurrent_requests (int) – Maximum number of in-flight sampling requests a SamplingClient will allow
(the size of its retry handler's semaphore). Always applied as the sampling
RetryConfig.max_connections, overriding any value in a caller-providedretry_config. - use_pyqwest_transport (bool) – When true, the SDK builds its default httpx async client on top of the pyqwest (reqwest/hyper-based) transport adapter. Set to false server-side to force every client to fall back to httpx's default transport.
- sample_use_retrieve_futures (bool) – When true, each SamplingClient runs a single background task that polls
/api/v1/retrieve_futuresfor its whole sampling session; a sample's result future waits for that poller to signal its request complete (and carries the completion metadata) before doing the normal payload fetch, instead of polling/api/v1/retrieve_futureper request. Requires a server exposing the retrieve_futures endpoint. - custom_loss_server_side (bool) – When true,
ServiceClient.create_custom_lossuploads the traced loss (/api/v1/create_custom_loss) andforward_backward_customruns it on the server by its loss id. When false, custom losses run client-side. Requires a server that stores and runs custom losses. - sample_join_sampling_session (bool) – When true, an unpickled SamplingClient asks the server for its clone id
(
/api/v1/join_sampling_session) before its first sample, instead of picking a random one, so clones of a sampling session never collide on request seq_ids. Requires a server exposing the join_sampling_session endpoint.