hidden_state_sample_tokens | int | 4 | Number of tokens sampled per hidden-state payload. |
hidden_state_sample_features | int | 32 | Number of features sampled per token. |
hidden_state_precision | int | 6 | Decimal precision for rounded tensor samples (use -1 to disable rounding). |
capture_full_hidden_state | bool | false | Set true to include the entire hidden-state tensor (use cautiously). |
payload_sample_items | int | 5 | Max items serialized per list/dict when exporting request payloads. |
payload_tensor_sample | int | 32 | Flat element sample size for tensor summaries in request payloads. |
payload_max_depth | int | 2 | Maximum depth for nested request payload serialization. |
request_metadata | dict | {} | Extra metadata appended to every request payload/response event. |
request_payload_endpoint | string | derived | Override for the payload ingestion endpoint (defaults to /api/requests/payload). |
request_response_endpoint | string | derived | Override for the response ingestion endpoint (defaults to /api/requests/response). |
capture_request_payload | bool | true | When false, request payloads (model inputs and raw context) are not sent to the platform. Neural signals still go to /api/signals/batch. |
capture_response_payload | bool | true | When false, response payloads (model outputs and application responses) are not sent. Neural signals still go to /api/signals/batch. |
enable_logging | bool | false | When true, enables SDK logging at INFO level for debugging. Can also be passed as a top-level parameter to OneXMonitor. |
sample_rate | float | 1.0 | Fraction of requests to export (0.0–1.0). Per-request sampling; can also be passed as a top-level parameter. |
max_requests_per_minute | int | None | None | Cap on batch export requests per minute. Can also be passed as a top-level parameter. |
capture_logits | bool | false | When true, model logits are extracted from the forward output and included in the response payload (shape + sample). For Uncertainty, Calibration, and Confidence assessments. |
capture_probabilities | bool | false | When true, probabilities (softmax of logits) are computed and included in the response payload (shape + sample). Requires logits to be present in the model output. |
logits_sample_size | int | 64 | Max number of values to include in the logits/probabilities sample (flattened). Limits payload size. |
signal_queue_maxsize | int | 10000 | Max neural signals queued in memory before the exporter drops new ones (queue.Full). LLMs emit many signals per token; increase if you see warnings while the batch API is healthy. Capped at 1,000,000. |
request_queue_maxsize | int | 2000 | Max queued request payload/response export events. Capped at 100,000. |
capture_llm_extension | bool | true | PyTorch only. When true, each exported signal includes an optional llm_extension object with extra LLM context (generation phase, output summaries, model metadata). Set false to reduce payload size. |
llm_extension_cuda_memory | bool | true | PyTorch only. When true and CUDA is available, llm_extension may include GPU memory usage summaries. |
capture_llm_representation | bool | true | PyTorch. One representation.<policy> signal per forward with an embedding vector for OOD-style assessments. |
llm_representation_policy | string | last_token | last_token, prompt_last (second-to-last token when seq>1), or mean_pool. |
llm_representation_max_dims | int | 512 | Max dimensions exported in the representation embedding list. |
capture_generation_context | bool | true | Adds phase (prefill/decode), sequence_length, and related fields to llm_extension / representation. |
capture_logits_extras | bool | true | Adds margin, perplexity proxy, and top-1 probability summaries on output signals. |
capture_final_norm | bool | true | Causal LMs. Export summaries from the final normalization layer before the language-model head. |
capture_kv_cache_meta | bool | true | Include KV cache shape metadata in LLM output summaries (no raw tensor dumps). |