WhiteBoxXAI
v0.3.2AI observability, explainability and governance: drift, fairness, ISO 42001, risk register.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
whitebox_models_register
Register a new model in WhiteBoxXAI's model registry. Args: name: Model name (alphanumeric, spaces, dashes, underscores only) model_type: e.g. "classification", "regression" features: List of input feature names baseline_metrics: Baseline performance metrics, e.g. {"accuracy": 0.94} framework: ML framework (sklearn, pytorch, tensorflow, etc.) version: Model version (semantic versioning, e.g. "1.0.0") description: Human-readable description target_variable: Name of the target/label variable…
| Parameter | Type | Description |
|---|---|---|
baseline_metrics * | object | |
features * | array | |
model_type * | string | |
name * | string | |
description | ||
fairness_attributes | ||
framework | ||
tags | ||
target_variable | ||
version |
whitebox_models_get
Get a registered model's full record by its model_id.
| Parameter | Type | Description |
|---|---|---|
model_id * | string |
whitebox_models_list
List registered models, optionally filtered by status/type/tags/search text. Args: skip: Number of results to skip (pagination) limit: Maximum results to return (1-1000) status_filter: One of ACTIVE, INACTIVE, DEPRECATED, ARCHIVED model_type: e.g. "classification", "regression" search: Free-text search over name/description tags: Comma-separated list of tags to filter by
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
model_type | ||
search | ||
skip | integer | |
status_filter | ||
tags |
whitebox_models_update
Partially update a model's metadata. Only provided fields are changed.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
description | ||
fairness_attributes | ||
tags | ||
target_variable |
whitebox_models_update_status
Update a model's status: ACTIVE, INACTIVE, DEPRECATED, or ARCHIVED.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
new_status * | string |
whitebox_models_versions
List all versions of a model by name, newest first.
| Parameter | Type | Description |
|---|---|---|
model_name * | string | |
limit | integer | |
skip | integer |
whitebox_models_latest
Get the most recently created version of a model by name.
| Parameter | Type | Description |
|---|---|---|
model_name * | string |
whitebox_models_update_baseline
Refresh a model's baseline metrics/profile, e.g. after retraining. This baseline is what drift detection compares recent predictions against, so update it whenever the model is retrained or revalidated.
| Parameter | Type | Description |
|---|---|---|
baseline_metrics * | object | |
model_id * | string | |
baseline_data_count | ||
baseline_data_hash |
whitebox_models_archive
Archive a model (soft delete; can be restored later).
| Parameter | Type | Description |
|---|---|---|
model_id * | string |
whitebox_models_restore
Restore a previously archived model to active status.
| Parameter | Type | Description |
|---|---|---|
model_id * | string |
whitebox_models_delete
Permanently delete a model. This is a hard delete and cannot be undone; prefer whitebox_models_archive for reversible removal.
| Parameter | Type | Description |
|---|---|---|
model_id * | string |
whitebox_models_compare_versions
Compare two Git-backed model versions, returning architecture changes, parameter deltas, and breaking change flags.
| Parameter | Type | Description |
|---|---|---|
version1_id * | string | |
version2_id * | string |
whitebox_models_version_changelog
Generate a markdown changelog between two Git-backed model versions.
| Parameter | Type | Description |
|---|---|---|
version1_id * | string | |
version2_id * | string |
whitebox_models_list_git_versions
List Git-backed version sources for a model, newest first.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
limit | integer |
whitebox_models_architecture_timeline
Get the architecture changes timeline across all versions of a model.
| Parameter | Type | Description |
|---|---|---|
model_id * | string |
whitebox_predictions_log
Log a single model prediction for monitoring. Args: model_id: Registered model's ID input_data: Input features as a JSON object output_data: The model's prediction/output as a JSON object prediction_id: Optional external prediction ID (generated if omitted) latency_ms: Prediction latency in milliseconds metadata: Additional free-form metadata
| Parameter | Type | Description |
|---|---|---|
input_data * | object | |
model_id * | string | |
output_data * | object | |
latency_ms | ||
metadata | ||
prediction_id |
whitebox_predictions_log_batch
Log up to 1000 predictions in a single batch call. Args: model_id: Registered model's ID predictions: List of objects, each with "input_data" and "output_data" keys (and optionally "prediction_id", "latency_ms", "metadata") Returns: Summary: {total, logged, failed, errors}
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
predictions * | array |
whitebox_predictions_get
Get a single logged prediction by its prediction_id.
| Parameter | Type | Description |
|---|---|---|
prediction_id * | string |
whitebox_predictions_query
Query logged predictions for a model, optionally within a time range. Args: model_id: Registered model's ID (required) start_time: ISO-8601 timestamp; only predictions after this time end_time: ISO-8601 timestamp; only predictions before this time limit: Maximum results to return (1-1000) offset: Number of results to skip
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
end_time | ||
limit | integer | |
offset | integer | |
start_time |
whitebox_predictions_stats
Get prediction volume/latency statistics for a model. Defaults to the trailing 24 hours if no time range is given.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
end_time | ||
start_time |
whitebox_predictions_recent
Get the most recent predictions for a model (max 100).
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
limit | integer |
whitebox_prompts_list_templates
List all prompt governance templates for the authenticated tenant.
whitebox_prompts_get_template
Get details of a specific prompt template by ID.
| Parameter | Type | Description |
|---|---|---|
template_id * | string |
whitebox_prompts_create_template
Create a new prompt template container for versioning.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
description | ||
tags |
whitebox_prompts_list_versions
List all append-only governed versions for a prompt template.
| Parameter | Type | Description |
|---|---|---|
template_id * | string |
whitebox_prompts_get_version
Get details, lifecycle stage, and verification status of a prompt version.
| Parameter | Type | Description |
|---|---|---|
template_id * | string | |
version_id * | string |
whitebox_prompts_create_version
Create a new governed prompt version in 'design' lifecycle stage.
| Parameter | Type | Description |
|---|---|---|
template_id * | string | |
user_message_template * | string | |
commit_hash | ||
model_id | ||
model_name | ||
system_message | ||
temperature | ||
tool_schemas | ||
version_tag |
whitebox_prompts_advance_stage
Advance a prompt version through the lifecycle stages (design -> verify -> deploy -> retired). Promotion from verify to deploy requires a verified benchmark run.
| Parameter | Type | Description |
|---|---|---|
target_stage * | string | |
template_id * | string | |
version_id * | string | |
notes | ||
verification_run_id |
whitebox_prompts_deploy
Promote a prompt version to active production deployment. Enforces single active deployment per template and requires benchmark verification (unless force=True).
| Parameter | Type | Description |
|---|---|---|
template_id * | string | |
version_id * | string | |
deployment_notes | ||
force | boolean |
whitebox_prompts_rollback
Emergency rollback to a target version or the most recently verified version.
| Parameter | Type | Description |
|---|---|---|
template_id * | string | |
reason | ||
target_version_id |
whitebox_prompts_compute_drift
Compute prompt drift analysis comparing production completions with baseline expectations.
| Parameter | Type | Description |
|---|---|---|
template_id * | string | |
version_id * | string | |
baseline_dataset_id | ||
sample_size | integer |
whitebox_prompts_list_drift_reports
List historical prompt drift reports for a prompt version.
| Parameter | Type | Description |
|---|---|---|
template_id * | string | |
version_id * | string |
whitebox_prompts_get_drift_report
Get a specific prompt drift report with metrics, divergence, and auditor verdict.
| Parameter | Type | Description |
|---|---|---|
report_id * | string | |
template_id * | string | |
version_id * | string |
whitebox_prompts_get_incidents
Get security incidents and alerts associated with a prompt version.
| Parameter | Type | Description |
|---|---|---|
template_id * | string | |
version_id * | string |
whitebox_drift_detect
Run an ad-hoc data drift check for a model (not persisted as a report). Compares the most recent `window_size` predictions against the model's baseline data using statistical tests (KS, chi-squared, Jensen-Shannon, PSI) per feature. This can take several seconds for large window sizes since it computes synchronously. Args: model_id: Registered model's ID window_size: Number of recent predictions to analyze (100-10000) feature_names: Optional subset of features to analyze (all if omitted)
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
feature_names | ||
window_size | integer |
whitebox_drift_create_report
Run drift analysis and persist the result as a drift report. Use this (rather than whitebox_drift_detect) when the result should be retrievable later via whitebox_drift_get_report / _list_reports.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
window_size | integer |
whitebox_drift_list_reports
List drift reports for a model, most recent first.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
limit | integer | |
skip | integer |
whitebox_drift_get_report
Get a specific drift report, including per-feature statistics.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
report_id * | string |
whitebox_drift_trend
Get a model's drift trend over time (1-90 days).
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
days | integer |
whitebox_fairness_audit
Run a bias/fairness audit on model predictions across demographic groups. Unlike most WhiteBoxXAI tools, this is not a data-source query: the caller must already have the ground-truth labels, predicted labels, and per-attribute group assignments in hand (e.g. pulled via whitebox_predictions_query and joined with demographic data), all aligned to the same sample order. Args: model_id: Registered model's ID sensitive_attributes: Protected attributes to analyze (race, gender, age, ethnicity, religion, disabi…
| Parameter | Type | Description |
|---|---|---|
group_data * | object | |
model_id * | string | |
sensitive_attributes * | array | |
y_pred * | array | |
y_true * | array | |
metrics_to_compute | ||
y_prob |
whitebox_fairness_get_audit
Get full bias audit results by audit_id.
| Parameter | Type | Description |
|---|---|---|
audit_id * | string |
whitebox_fairness_list_audits
List bias audit summaries, optionally filtered to one model.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
model_id | ||
offset | integer |
whitebox_fairness_bias_history
Get a model's historical bias/fairness trend (1-365 days).
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
days | integer |
whitebox_fairness_metric_history
Get history for one specific fairness metric on a model. Args: model_id: Registered model's ID metric_type: One of demographic_parity, equal_opportunity, equalized_odds, disparate_impact, predictive_parity, calibration, false_positive_rate_parity, false_negative_rate_parity, statistical_parity_difference, average_odds_difference days: Lookback window in days (1-365)
| Parameter | Type | Description |
|---|---|---|
metric_type * | string | |
model_id * | string | |
days | integer |
whitebox_fairness_latest_audit
Get the most recent bias audit for a model.
| Parameter | Type | Description |
|---|---|---|
model_id * | string |
whitebox_explanations_generate
Generate a SHAP/LIME explanation and block until it's computed. For a fast model this is fine; for slow models prefer whitebox_explanations_generate_async + polling instead, since this call has no timeout of its own. Args: model_id: Registered model's ID instance: Feature values for the instance to explain, e.g. {"age": 42, "income": 50000} method: "shap" or "lime" (uses the model's configured default if omitted) prediction_id: Optional ID of the prediction this explanation is for num_features: Number…
| Parameter | Type | Description |
|---|---|---|
instance * | object | |
model_id * | string | |
desired_class | string | |
features_to_vary | ||
method | ||
num_features | integer | |
num_samples | integer | |
prediction_id | ||
total_cfs | integer | |
use_cache | boolean |
whitebox_explanations_generate_bulk
Start explanation generation for multiple instances at once (non-blocking). Dispatches one Celery task per instance (max 100 instances per call) and returns immediately with one PENDING explanation_id per instance. Poll whitebox_explanations_get for each ID, same as whitebox_explanations_generate_async. Args: model_id: Registered model's ID instances: Feature values for each instance to explain (max 100) method: "shap" or "lime" (uses the model's configured default if omitted) num_features: Number of top…
| Parameter | Type | Description |
|---|---|---|
instances * | array | |
model_id * | string | |
desired_class | string | |
features_to_vary | ||
method | ||
num_features | integer | |
num_samples | integer | |
parallel | boolean | |
total_cfs | integer |
whitebox_explanations_generate_async
Start real SHAP/LIME explanation generation for a model instance. Returns immediately with a PENDING explanation_id -- this does NOT block until the explanation is ready. Computation happens on a Celery worker and can take several seconds to tens of seconds. Call whitebox_explanations_get with the returned explanation_id and poll (e.g. every 1-2 seconds) until status is no longer "pending" before reading feature_weights. Args: model_id: Registered model's ID instance: Feature values for the instance to explain, e…
| Parameter | Type | Description |
|---|---|---|
instance * | object | |
model_id * | string | |
desired_class | string | |
features_to_vary | ||
method | ||
num_features | integer | |
num_samples | integer | |
prediction_id | ||
total_cfs | integer |
whitebox_explanations_get
Get an explanation by ID, including its status and (once ready) results. Poll this after whitebox_explanations_generate_async: while status is "pending" the explanation is still computing on a background worker and feature_weights will be empty. Poll again until status is "completed" (read feature_weights, base_value, score) or "failed" (read the error).
| Parameter | Type | Description |
|---|---|---|
explanation_id * | string |
whitebox_explanations_list_by_model
List explanations for a model, optionally filtered by method or status.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
limit | integer | |
method | ||
offset | integer | |
status |
whitebox_explanations_get_by_prediction
Get the explanation associated with a prediction, if one exists.
| Parameter | Type | Description |
|---|---|---|
prediction_id * | string |
whitebox_explanations_stats
Get aggregated explanation statistics for a model (counts by method/status, average computation time).
| Parameter | Type | Description |
|---|---|---|
model_id * | string |
whitebox_explanations_set_config
Create or update a model's explanation configuration (upsert).
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
auto_explain | boolean | |
cache_enabled | boolean | |
cache_ttl_hours | integer | |
default_method | string | |
enabled | boolean | |
lime_config | ||
shap_config | ||
visualization_config |
whitebox_explanations_get_config
Get a model's explanation configuration.
| Parameter | Type | Description |
|---|---|---|
model_id * | string |
whitebox_explanations_delete_config
Delete a model's explanation configuration.
| Parameter | Type | Description |
|---|---|---|
model_id * | string |
whitebox_explanations_compare
Compare 2-20 explanations against each other. comparison_type: "feature_importance", "instance_similarity", or "method_agreement".
| Parameter | Type | Description |
|---|---|---|
explanation_ids * | array | |
comparison_type | string |
whitebox_explanations_visualize
Get visualization data for a single explanation. plot_type: "waterfall", "force", or "feature_importance".
| Parameter | Type | Description |
|---|---|---|
explanation_id * | string | |
plot_type * | string | |
config | ||
max_features | integer |
whitebox_explanations_visualize_multi
Get visualization data spanning multiple explanations. plot_type: "summary", "decision", or "dependence". feature_index/ interaction_index are used for dependence plots; highlight_index highlights one explanation in decision plots.
| Parameter | Type | Description |
|---|---|---|
explanation_ids * | array | |
plot_type * | string | |
feature_index | ||
highlight_index | ||
interaction_index | ||
max_features | integer |
whitebox_risk_register_list
List AI risk register entries, optionally filtered. Args: status: One of identified, assessed, mitigation_planned, mitigated, closed severity: One of low, medium, high, critical category: Risk category (org-specific taxonomy, e.g. bias, drift, security) model_id: Restrict to risks linked to one registered model limit: Page size skip: Page offset Returns: {"items": [...], "total": int, "skip": int, "limit": int} -- each item includes `iso42001_clause_refs`, the ISO 42001 clause…
| Parameter | Type | Description |
|---|---|---|
category | ||
limit | integer | |
model_id | ||
severity | ||
skip | integer | |
status |
whitebox_risk_register_get
Get a single AI risk register entry by ID.
| Parameter | Type | Description |
|---|---|---|
entry_id * | string |
whitebox_risk_register_portfolio
Get the likelihood x impact heat map and top open risks across the organization's risk register.
whitebox_governance_list_boards
List governance review boards for the organization.
whitebox_governance_list_review_requests
List governance review requests, optionally filtered. Args: board_id: Restrict to one review board status: One of draft, submitted, under_review, approved, denied, withdrawn
| Parameter | Type | Description |
|---|---|---|
board_id | ||
status |
whitebox_governance_get_review_request
Get a specific governance review request dossier (board, submitter, decisions, comments, vote tally, and SHA-256 evidence snapshot hash).
| Parameter | Type | Description |
|---|---|---|
request_id * | string |
whitebox_governance_submit_decision
Record a board member's vote on a governance review request. App-only: called by the dossier card's vote buttons, never by the agent. Needs the reviewer's own JWT (the backend refuses organization API keys), two-factor authentication enabled on their account, and a current authenticator code. Refused if the request changed since the dossier was shown. Args: request_id: UUID of the governance review request decision: One of 'approve', 'deny', 'abstain', 'request_changes' evidence_snapshot_hash: `evidence_snaps…
| Parameter | Type | Description |
|---|---|---|
decision * | string | |
evidence_snapshot_hash * | string | |
request_id * | string | |
totp_code * | string | |
conditions | ||
justification |
whitebox_governance_raci_grid
Get the RACI grid: review requests and their Responsible / Accountable / Consulted / Informed assignments (ISO 42001 Clause 5.3, Annex A.3), optionally scoped to one board.
| Parameter | Type | Description |
|---|---|---|
board_id |
whitebox_compliance_iso42001_score
Get the organization's ISO/IEC 42001 readiness score and clause breakdown. When `assessed` is False in the response, no control assessments have been recorded yet and numeric scores are 0.0 because of unassessed state, not control failure.
whitebox_compliance_iso42001_gaps
Get the organization's open ISO/IEC 42001 compliance gaps. Args: clause_filter: Optional ISO/IEC 42001 clause prefix (e.g. '4', '8') severity_filter: Optional gap severity filter (e.g. 'high', 'critical')
| Parameter | Type | Description |
|---|---|---|
clause_filter | ||
severity_filter |
whitebox_compliance_iso42001_status
Get a composite ISO/IEC 42001 readiness scorecard, open gap matrix, and linked AI risk register entries in a single call for the `ui://whitebox/iso42001-status-card` widget.
| Parameter | Type | Description |
|---|---|---|
clause_filter | ||
severity_filter |
whitebox_compliance_list_frameworks
List all supported compliance frameworks in the Control Catalog (ISO/IEC 42001, GDPR, CCPA, EU AI Act, NIST AI RMF) with control counts.
whitebox_compliance_get_framework_controls
Get the full control catalog for one compliance framework. Args: framework: Framework slug (e.g. 'iso_42001', 'eu_ai_act', 'nist_ai_rmf', 'gdpr', 'ccpa')
| Parameter | Type | Description |
|---|---|---|
framework * | string |
whitebox_llm_xai_attention
Analyze transformer attention patterns for a prompt/completion pair. Extracts and aggregates multi-head attention weights to show what the model focused on. Requires attention_weights to be supplied (this endpoint does not itself run the model).
| Parameter | Type | Description |
|---|---|---|
prompt * | string | |
aggregate_heads | boolean | |
attention_weights | ||
completion | ||
layers | ||
llm_log_id | ||
model_id | ||
top_k | integer |
whitebox_llm_xai_token_importance
Calculate token-level importance scores for a prompt/completion pair. method: "gradient", "attention", or "perturbation".
| Parameter | Type | Description |
|---|---|---|
completion * | string | |
prompt * | string | |
llm_log_id | ||
method | string | |
model_id | ||
top_k | integer |
whitebox_llm_xai_prompt_sensitivity
Test prompt robustness by perturbing it and measuring output stability.
| Parameter | Type | Description |
|---|---|---|
baseline_output * | string | |
prompt * | string | |
llm_log_id | ||
model_id | ||
num_perturbations | integer | |
perturbation_type | string |
whitebox_llm_xai_counterfactuals
Generate minimal prompt edits that change the model's output, useful for understanding decision boundaries.
| Parameter | Type | Description |
|---|---|---|
original_output * | string | |
prompt * | string | |
llm_log_id | ||
max_edits | integer | |
model_id | ||
num_candidates | integer | |
search_strategy | string | |
target_change | string |
whitebox_llm_xai_debug_prompt
Assess prompt quality across multiple dimensions and get improvement recommendations.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | |
check_clarity | boolean | |
check_completeness | boolean | |
check_consistency | boolean | |
check_specificity | boolean | |
llm_log_id | ||
model_id | ||
prompt_version_id | ||
suggest_improvements | boolean |
whitebox_llm_xai_get_explanation
Get a specific attention/token-importance/sensitivity/counterfactual explanation by ID.
| Parameter | Type | Description |
|---|---|---|
explanation_id * | string |
whitebox_llm_xai_get_prompt_analysis
Get a specific prompt debug analysis by ID.
| Parameter | Type | Description |
|---|---|---|
analysis_id * | string |
whitebox_llm_xai_list_explanations
List explanations, optionally filtered by LLM log, type (attention_analysis/token_importance/sensitivity_analysis/ counterfactual_generation), or model.
| Parameter | Type | Description |
|---|---|---|
explanation_type | ||
limit | integer | |
llm_log_id | ||
model_id |
whitebox_llm_xai_list_prompt_analyses
List prompt analyses, optionally filtered by similar prompt text, model, or minimum quality score (0-1).
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
min_quality_score | ||
model_id | ||
prompt |
whitebox_llm_xai_stats
Get aggregated LLM-XAI usage statistics (counts by explanation type, average computation time, prompt quality).
| Parameter | Type | Description |
|---|---|---|
days | integer | |
model_id |
whitebox_llm_xai_visualize_attention
Get attention-heatmap visualization data for an explanation (for rendering with Plotly/D3.js-style tools).
| Parameter | Type | Description |
|---|---|---|
explanation_id * | string |
whitebox_llm_xai_visualize_token_importance
Get token-importance bar-chart visualization data for an explanation.
| Parameter | Type | Description |
|---|---|---|
explanation_id * | string | |
top_k | integer |
whitebox_llm_xai_batch_analyze
Run multiple explanation analyses on a single LLM log in one call (more efficient than calling each analysis tool separately).
| Parameter | Type | Description |
|---|---|---|
llm_log_id * | string | |
include_attention | boolean | |
include_prompt_debug | boolean | |
include_sensitivity | boolean | |
include_token_importance | boolean |
whitebox_llm_monitoring_log_call
Log a single LLM call with real token/cost/latency data.
| Parameter | Type | Description |
|---|---|---|
latency_ms * | number | |
model_name * | string | |
prompt * | string | |
provider * | string | |
completion | ||
completion_tokens | ||
environment | ||
error_message | ||
finish_reason | ||
max_tokens | ||
model_id | ||
prompt_tokens | ||
prompt_version_id | ||
request_id | ||
session_id | ||
status | ||
temperature | ||
user_id |
whitebox_llm_monitoring_log_calls_batch
Log multiple LLM calls in one request (max 1000). Each dict is shaped like whitebox_llm_monitoring_log_call's arguments.
| Parameter | Type | Description |
|---|---|---|
logs * | array |
whitebox_llm_monitoring_get_log
Get a single LLM log by ID.
| Parameter | Type | Description |
|---|---|---|
log_id * | string |
whitebox_llm_monitoring_query_logs
Query LLM logs with filters and pagination. Returns {logs, total, skip, limit}. Passing a model_id owned by the caller's organization is the only fully tenant-scoped way to call this today (results are otherwise platform-wide).
| Parameter | Type | Description |
|---|---|---|
end_time | ||
environment | ||
limit | integer | |
max_cost | ||
max_latency_ms | ||
min_cost | ||
min_latency_ms | ||
model_id | ||
model_name | ||
provider | ||
session_id | ||
skip | integer | |
start_time | ||
status | ||
user_id |
whitebox_llm_monitoring_session_logs
Get all LLM logs for a specific session.
| Parameter | Type | Description |
|---|---|---|
session_id * | string |
whitebox_llm_monitoring_usage_stats
Get aggregated LLM usage statistics (tokens, cost, latency, by_model).
| Parameter | Type | Description |
|---|---|---|
end_time | ||
environment | ||
model_id | ||
provider | ||
start_time |
whitebox_llm_monitoring_recent
Get recent LLM logs (requires a model_id owned by the caller's org).
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
model_id | ||
provider |
whitebox_llm_monitoring_cost_breakdown
Get detailed cost breakdown (platform-wide aggregate).
| Parameter | Type | Description |
|---|---|---|
end_time | ||
include_environment | boolean | |
include_user | boolean | |
start_time |
whitebox_llm_monitoring_performance
Get LLM latency/throughput performance metrics.
| Parameter | Type | Description |
|---|---|---|
end_time | ||
model_id | ||
provider | ||
start_time |
whitebox_llm_monitoring_trends_tokens
Get token usage trend over time (granularity: hour/day/week).
| Parameter | Type | Description |
|---|---|---|
end_time | ||
granularity | string | |
model_id | ||
start_time |
whitebox_llm_monitoring_trends_costs
Get cost trend over time (platform-wide; granularity: hour/day/week).
| Parameter | Type | Description |
|---|---|---|
end_time | ||
granularity | string | |
provider | ||
start_time |
whitebox_llm_monitoring_usage_stats_detailed
Get detailed, grouped usage statistics (granularity: hour/day/week/month).
| Parameter | Type | Description |
|---|---|---|
end_time * | string | |
start_time * | string | |
environment | ||
granularity | string | |
model_id | ||
model_name | ||
provider | ||
user_id |
whitebox_llm_monitoring_cost_threshold_alert
Check whether costs over the recent period exceed a threshold.
| Parameter | Type | Description |
|---|---|---|
period_minutes | integer | |
threshold | number |
whitebox_llm_monitoring_latency_threshold_alert
Check whether average latency over the recent period exceeds a threshold.
| Parameter | Type | Description |
|---|---|---|
period_minutes | integer | |
threshold_ms | number |
whitebox_llm_monitoring_error_rate_alert
Check whether the error rate over the recent period exceeds a threshold.
| Parameter | Type | Description |
|---|---|---|
period_minutes | integer | |
threshold_percent | number |
whitebox_llm_monitoring_cleanup_logs
Delete LLM logs older than `days`. Admin-only on the backend.
| Parameter | Type | Description |
|---|---|---|
days | integer |
whitebox_rag_log_retrieval
Log a retrieval operation, with real quality metrics computed server-side when ground_truth_ids is supplied.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
results * | array | |
retrieval_method * | string | |
top_k * | integer | |
answer | ||
answer_latency_ms | ||
environment | ||
ground_truth_ids | ||
llm_log_id | ||
metadata | ||
model_id | ||
query_type | string | |
retrieval_latency_ms | ||
retrieval_params | ||
session_id | ||
user_id |
whitebox_rag_get_retrieval
Get a specific retrieval log by ID.
| Parameter | Type | Description |
|---|---|---|
log_id * | string |
whitebox_rag_list_retrievals
Query retrieval logs for a model. model_id is required (owned by the caller's organization) until organization-wide RAG log scoping ships.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
end_time | ||
environment | ||
limit | integer | |
offset | integer | |
retrieval_method | ||
session_id | ||
start_time | ||
user_id |
whitebox_rag_stats
Get aggregated RAG statistics (precision/recall/MRR/NDCG/relevance/latency).
| Parameter | Type | Description |
|---|---|---|
end_time | ||
environment | ||
model_id | ||
start_time |
whitebox_rag_trends
Get RAG quality metrics trend over time (granularity: hour/day/week).
| Parameter | Type | Description |
|---|---|---|
end_time | ||
environment | ||
granularity | string | |
model_id | ||
start_time |
whitebox_rag_create_evaluation
Create a RAG evaluation, aggregating already-logged retrievals for each query. Queries with no matching logged retrieval are reported in detailed_results.queries_without_data, not silently scored as zero.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
queries * | array | |
description | ||
environment | ||
evaluation_type | string | |
ground_truth | ||
metadata | ||
model_id | ||
system_version |
whitebox_rag_get_evaluation
Get a specific RAG evaluation by ID.
| Parameter | Type | Description |
|---|---|---|
evaluation_id * | string |
whitebox_rag_list_evaluations
List RAG evaluations with optional filters.
| Parameter | Type | Description |
|---|---|---|
environment | ||
evaluation_type | ||
limit | integer | |
model_id | ||
offset | integer |
whitebox_rag_metrics_precision
Get Precision@K metrics for the given K values (default [1, 3, 5, 10]). A K with no scoreable logged retrievals returns null, not a fabricated 0.0.
| Parameter | Type | Description |
|---|---|---|
end_time | ||
environment | ||
k_values | ||
model_id | ||
start_time |
whitebox_rag_metrics_relevance
Get average relevance metrics (context/answer/faithfulness).
| Parameter | Type | Description |
|---|---|---|
end_time | ||
model_id | ||
start_time |
whitebox_safety_analyze
Analyze content for toxicity, PII, and harmful content. Returns full safety analysis: toxicity_scores, pii_results, harmful_content, safety_status, flagged_categories, etc.
| Parameter | Type | Description |
|---|---|---|
content * | string | |
check_harmful | boolean | |
check_pii | boolean | |
check_toxicity | boolean | |
content_type | string | |
environment | ||
language | string | |
llm_log_id | ||
model_id | ||
session_id | ||
user_id |
whitebox_safety_analyze_batch
Analyze multiple content items in one request (max 100). Items that fail analysis are silently skipped, not raised.
| Parameter | Type | Description |
|---|---|---|
contents * | array | |
check_harmful | boolean | |
check_pii | boolean | |
check_toxicity | boolean | |
content_type | string | |
environment | ||
language | string | |
model_id | ||
user_id |
whitebox_safety_get_score
Get a specific safety score by ID.
| Parameter | Type | Description |
|---|---|---|
score_id * | string |
whitebox_safety_get_scores
Query safety analysis scores with filters.
| Parameter | Type | Description |
|---|---|---|
contains_pii | ||
end_time | ||
environment | ||
limit | integer | |
model_id | ||
offset | integer | |
safety_status | ||
start_time |
whitebox_safety_stats
Get aggregated safety statistics (per-category toxicity averages, flagged categories, PII types).
| Parameter | Type | Description |
|---|---|---|
end_time | ||
environment | ||
model_id | ||
start_time |
whitebox_safety_trends
Get content-safety trend over time (granularity: hour/day/week).
| Parameter | Type | Description |
|---|---|---|
end_time | ||
environment | ||
granularity | string | |
model_id | ||
start_time |
whitebox_safety_create_threshold
Create a safety threshold configuration controlling when content is flagged as unsafe. action_on_violation: "warning", "block", or "alert".
| Parameter | Type | Description |
|---|---|---|
name * | string | |
action_on_violation | string | |
allowed_pii_types | ||
block_pii | boolean | |
description | ||
identity_attack_threshold | number | |
insult_threshold | number | |
max_pii_count | ||
model_id | ||
profanity_threshold | number | |
send_alerts | boolean | |
severe_toxicity_threshold | number | |
sexually_explicit_threshold | number | |
threat_threshold | number | |
toxicity_threshold | number |
whitebox_safety_list_thresholds
List safety thresholds for the caller's organization.
| Parameter | Type | Description |
|---|---|---|
is_active | ||
model_id |
whitebox_safety_get_threshold
Get a specific safety threshold by ID.
| Parameter | Type | Description |
|---|---|---|
threshold_id * | string |
whitebox_safety_update_threshold
Update a safety threshold configuration. Only non-null arguments are changed.
| Parameter | Type | Description |
|---|---|---|
threshold_id * | string | |
action_on_violation | ||
block_pii | ||
description | ||
is_active | ||
name | ||
send_alerts | ||
toxicity_threshold |
whitebox_safety_delete_threshold
Delete a safety threshold configuration.
| Parameter | Type | Description |
|---|---|---|
threshold_id * | string |
whitebox_alerts_create_rule
Create an alert rule with threshold or anomaly-based conditions. conditions: list of {metric_name, operator (gt/gte/lt/lte/eq/ne), threshold, window_minutes?, aggregation?}, combined by logic_operator.
| Parameter | Type | Description |
|---|---|---|
alert_type * | string | |
conditions * | array | |
name * | string | |
severity * | string | |
cooldown_minutes | integer | |
description | ||
is_active | boolean | |
logic_operator | string | |
model_id | ||
notification_channels | ||
throttle_minutes | integer |
whitebox_alerts_list_rules
List alert rules for the caller's organization.
| Parameter | Type | Description |
|---|---|---|
alert_type | ||
is_active | ||
limit | integer | |
model_id | ||
skip | integer |
whitebox_alerts_get_rule
Get a specific alert rule by ID.
| Parameter | Type | Description |
|---|---|---|
rule_id * | string |
whitebox_alerts_update_rule
Update an alert rule. Only non-null arguments are changed.
| Parameter | Type | Description |
|---|---|---|
rule_id * | string | |
conditions | ||
cooldown_minutes | ||
description | ||
is_active | ||
name | ||
severity | ||
throttle_minutes |
whitebox_alerts_delete_rule
Delete an alert rule.
| Parameter | Type | Description |
|---|---|---|
rule_id * | string |
whitebox_alerts_evaluate_rule
Test whether an alert rule would trigger given metric values, without creating a real alert instance. Useful for validating a rule before activation.
| Parameter | Type | Description |
|---|---|---|
rule_id * | string | |
historical_values | ||
metadata | ||
metric_values | ||
model_id |
whitebox_alerts_list_instances
List triggered alert instances with optional filters.
| Parameter | Type | Description |
|---|---|---|
alert_type | ||
hours | ||
limit | integer | |
model_id | ||
rule_id | ||
severity | ||
skip | integer | |
status |
whitebox_alerts_get_instance
Get a specific triggered alert instance by ID.
| Parameter | Type | Description |
|---|---|---|
alert_id * | string |
whitebox_alerts_get_triage_context
Get a triggered alert instance together with its model's latest drift reports and a plain-language triage verdict. Args: alert_id: Triggered alert instance ID drift_report_limit: Number of recent drift reports to include when the alert is associated with a model (default 1)
| Parameter | Type | Description |
|---|---|---|
alert_id * | string | |
drift_report_limit | integer |
whitebox_alerts_acknowledge
Acknowledge an active alert instance.
| Parameter | Type | Description |
|---|---|---|
alert_id * | string | |
user_id * | string | |
notes |
whitebox_alerts_resolve
Resolve an alert instance.
| Parameter | Type | Description |
|---|---|---|
alert_id * | string | |
user_id * | string | |
resolution_notes |
whitebox_alerts_snooze
Snooze an active alert instance for `snooze_minutes` (max 1 week).
| Parameter | Type | Description |
|---|---|---|
alert_id * | string | |
snooze_minutes * | integer |
whitebox_alerts_statistics
Get alert statistics for the organization (counts, severity distribution, mean time to acknowledge/resolve) over the last `hours`.
| Parameter | Type | Description |
|---|---|---|
hours | integer |
whitebox_alert_intelligence_detect_correlations
Detect correlations for an alert (temporal, model, feature, and pattern-based relationships to other alerts).
| Parameter | Type | Description |
|---|---|---|
alert_id * | string | |
look_back_hours | integer | |
min_score | number |
whitebox_alert_intelligence_get_correlation_clusters
Get clusters of highly correlated alerts -- useful for spotting widespread issues or cascading failures.
| Parameter | Type | Description |
|---|---|---|
hours_back | integer | |
min_cluster_size | integer | |
min_score | number |
whitebox_alert_intelligence_analyze_root_cause
Analyze potential root causes (data drift, model degradation, feature anomalies, system issues) for an alert.
| Parameter | Type | Description |
|---|---|---|
alert_id * | string | |
analyze_history | boolean |
whitebox_alert_intelligence_verify_root_cause
Mark a previously computed root cause as verified or rejected.
| Parameter | Type | Description |
|---|---|---|
root_cause_id * | integer | |
verified * | boolean | |
notes |
whitebox_alert_intelligence_get_similar_incidents
Find past alerts sharing the same root-cause type -- useful for learning from historical resolutions.
| Parameter | Type | Description |
|---|---|---|
cause_type * | string | |
limit | integer |
whitebox_alert_intelligence_calculate_priority
Compute a weighted priority score (0-100) and level (critical/high/medium/low) for an alert.
| Parameter | Type | Description |
|---|---|---|
alert_id * | string | |
business_impact_weight | number | |
criticality_weight | number | |
history_weight | number | |
urgency_weight | number |
whitebox_alert_intelligence_adjust_priority
Manually override a calculated priority. `adjustment_reason` is required justification for the override.
| Parameter | Type | Description |
|---|---|---|
adjustment_reason * | string | |
alert_id * | string | |
new_priority_level * | string | |
new_priority_score * | number |
whitebox_alert_intelligence_get_priority_distribution
Get a breakdown of alerts by priority level.
| Parameter | Type | Description |
|---|---|---|
hours_back | integer |
whitebox_alert_intelligence_get_priority_queue
Get the prioritized alert queue for triage and assignment.
| Parameter | Type | Description |
|---|---|---|
limit | integer |
whitebox_alert_intelligence_detect_patterns
Detect recurring temporal/frequency/correlation/anomaly patterns in alerts.
| Parameter | Type | Description |
|---|---|---|
hours_back | integer |
whitebox_alert_intelligence_get_pattern
Get a specific alert pattern's details.
| Parameter | Type | Description |
|---|---|---|
pattern_id * | integer |
whitebox_alert_intelligence_deactivate_pattern
Mark a pattern inactive (resolved or no longer relevant).
| Parameter | Type | Description |
|---|---|---|
pattern_id * | integer |
whitebox_alert_intelligence_apply_fatigue_reduction
Apply automated throttling/grouping/snoozing to reduce alert noise. Returns a summary of actions taken and recommendations.
| Parameter | Type | Description |
|---|---|---|
auto_snooze_threshold | integer | |
enable_auto_snooze | boolean | |
enable_auto_throttling | boolean | |
enable_intelligent_grouping | boolean | |
grouping_window_minutes | integer | |
similarity_threshold | number |
whitebox_alert_intelligence_get_throttle_recommendations
Get recommended alert-throttling rules to reduce fatigue without missing critical issues.
whitebox_alert_intelligence_ml_grouping
Cluster alerts via ML (kmeans/dbscan/hierarchical). Automatically determines the optimal number of clusters if not specified.
| Parameter | Type | Description |
|---|---|---|
clustering_method | string | |
num_clusters |
whitebox_alert_intelligence_temporal_grouping
Group alerts occurring in the same time window with similar characteristics.
| Parameter | Type | Description |
|---|---|---|
similarity_threshold | number | |
time_window_minutes | integer |
whitebox_alert_intelligence_predict_trends
Forecast alert volume/severity/type for `time_horizon` (next_hour/next_day/next_week). Uses a least-squares linear trend (numpy.polyfit) over the organization's real historical hourly alert counts, not a full time-series forecasting model (no ARIMA/Prophet). Returns trend_direction="insufficient_data" and zeroed values when fewer than 24 real hourly data points exist; sample_size in the response always discloses exactly how much real history backed the estimate.
| Parameter | Type | Description |
|---|---|---|
time_horizon | string |
whitebox_alert_intelligence_detect_seasonality
Detect hour-of-day seasonality in alert volume. Real detection from the organization's actual alert history (24 hourly buckets summed across the requested window). Day-of-week/ week-of-month cycles are not computed, so pattern_type is always "hourly" (or "insufficient_data" below a 24-data-point floor), never a fabricated "daily"/"weekly" label.
| Parameter | Type | Description |
|---|---|---|
days_back | integer |
whitebox_alert_intelligence_enhanced_trend_analysis
Combine real alert-volume time-series data with a real hour-of-day seasonality estimate, a numpy.polyfit trend prediction (with an R²-based confidence score), and real z-score anomaly detection over the same window -- all computed from the organization's actual alert history. Not a full forecasting model (no ARIMA/Prophet).
| Parameter | Type | Description |
|---|---|---|
hours_back | integer | |
metric | string |
whitebox_alert_intelligence_forecast_volume
Forecast future alert volume with confidence intervals. Uses a least-squares linear trend (numpy.polyfit) over real historical hourly alert counts, shaped by the organization's real hour-of-day seasonality. NOT ARIMA/Prophet. Forward-looking anomaly_predictions are intentionally always empty -- predicting future anomalies needs its own model, out of scope here; anomaly detection over *observed* data is available via whitebox_alert_intelligence_enhanced_trend_analysis instead. Falls back to an honestly-labeled zeroed forecast…
| Parameter | Type | Description |
|---|---|---|
forecast_hours | integer |
whitebox_alert_management_get_history
Get the full action timeline (triggered/acknowledged/snoozed/ resolved/escalated/commented) for an alert.
| Parameter | Type | Description |
|---|---|---|
alert_id * | string |
whitebox_alert_management_get_analytics
Get comprehensive alert analytics (counts, MTTA/MTTR, distributions, escalation metrics) for the caller's organization. `start_time`/`end_time` are ISO 8601 timestamps.
| Parameter | Type | Description |
|---|---|---|
end_time | ||
start_time |
whitebox_alert_management_get_trend
Get alert volume as a time series between `start` and `end` (ISO 8601 timestamps), bucketed by `interval` (hour/day/week).
| Parameter | Type | Description |
|---|---|---|
end * | string | |
start * | string | |
filters | ||
group_by | ||
interval | string |
whitebox_alert_management_get_velocity
Get alert generation rate trends (hour-over-hour, day-over-day, rolling averages) for the caller's organization.
whitebox_alert_management_get_grouping
Group active alerts by a dimension: "type", "severity", "model", or "rule" -- useful for spotting hotspots.
| Parameter | Type | Description |
|---|---|---|
group_by * | string |
whitebox_alert_management_detect_fatigue
Detect alert-fatigue indicators and get recommendations for reducing alert noise.
whitebox_alert_management_acknowledge
Acknowledge an alert (hits /alert-management/alerts/{id}/acknowledge; distinct from whitebox_alerts_acknowledge).
| Parameter | Type | Description |
|---|---|---|
alert_id * | string | |
notes |
whitebox_alert_management_resolve
Resolve an alert (hits /alert-management/alerts/{id}/resolve; distinct from whitebox_alerts_resolve).
| Parameter | Type | Description |
|---|---|---|
alert_id * | string | |
resolution_notes |
whitebox_alert_management_snooze
Snooze an alert for `snooze_minutes` (max 1 week; hits /alert-management/alerts/{id}/snooze, distinct from whitebox_alerts_snooze).
| Parameter | Type | Description |
|---|---|---|
alert_id * | string | |
snooze_minutes * | integer |
whitebox_alert_management_create_comment
Add a comment to an alert (comment_type: note/action/resolution).
| Parameter | Type | Description |
|---|---|---|
alert_id * | string | |
comment * | string | |
comment_type | string |
whitebox_alert_management_get_comments
List all comments on an alert.
| Parameter | Type | Description |
|---|---|---|
alert_id * | string |
whitebox_alert_management_process_pending_escalations
Manually trigger processing of pending escalations (normally a scheduled background task).
whitebox_alert_management_unsnooze_expired_alerts
Manually trigger reactivation of alerts whose snooze period has expired (normally a scheduled background task).
whitebox_agent_workflows_create_and_start
Create a new multi-agent workflow. framework: "crewai", "langchain", "autogen", "n8n", or "custom". Returns the created workflow (including its id) for subsequent agent/task registration.
| Parameter | Type | Description |
|---|---|---|
framework * | string | |
name * | string | |
meta_data | ||
tags |
whitebox_agent_workflows_start
Mark a workflow as running. Call after registering agents/tasks and before executing.
| Parameter | Type | Description |
|---|---|---|
workflow_id * | string | |
inputs |
whitebox_agent_workflows_complete
Mark a workflow completed/failed/cancelled and optionally trigger async analytics (metrics, cost, bottlenecks, timeline).
| Parameter | Type | Description |
|---|---|---|
status * | string | |
workflow_id * | string | |
error_message | ||
outputs | ||
trigger_analytics | boolean |
whitebox_agent_workflows_list
List workflows for the organization. Returns {workflows, total, skip, limit}.
| Parameter | Type | Description |
|---|---|---|
framework | ||
limit | integer | |
skip | integer | |
status |
whitebox_agent_workflows_get
Get a workflow by ID.
| Parameter | Type | Description |
|---|---|---|
workflow_id * | string |
whitebox_agent_workflows_delete
Delete a workflow and all related agents/executions/tasks/interactions.
| Parameter | Type | Description |
|---|---|---|
workflow_id * | string |
whitebox_agent_workflows_register_agent
Register an agent in a workflow. Call once per agent before starting execution.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
workflow_id * | string | |
agent_type | ||
backstory | ||
capabilities | ||
goal | ||
llm_config | ||
llm_provider | ||
meta_data | ||
model_name | ||
role | ||
system_prompt | ||
tools |
whitebox_agent_workflows_list_agents
List all agents registered in a workflow.
| Parameter | Type | Description |
|---|---|---|
workflow_id * | string |
whitebox_agent_workflows_create_execution
Log that an agent started executing. Set parent_execution_id for hierarchical/delegated executions.
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | |
workflow_id * | string | |
execution_order | ||
inputs | ||
parent_execution_id |
whitebox_agent_workflows_log_interaction
Log agent-to-agent communication. interaction_type: handoff, delegation, query, feedback, or broadcast.
| Parameter | Type | Description |
|---|---|---|
interaction_type * | string | |
workflow_id * | string | |
from_agent_id | ||
from_execution_id | ||
message | ||
meta_data | ||
to_agent_id | ||
to_execution_id |
whitebox_agent_workflows_list_interactions
List all agent-to-agent interactions in a workflow, chronologically.
| Parameter | Type | Description |
|---|---|---|
workflow_id * | string |
whitebox_agent_workflows_create_task
Create a workflow task. task_type: research/write/analyze/delegate/review.
| Parameter | Type | Description |
|---|---|---|
task_name * | string | |
workflow_id * | string | |
agent_id | ||
context | ||
description | ||
expected_output | ||
input_data | ||
parent_task_id | ||
priority | integer | |
task_type |
whitebox_agent_workflows_update_task_status
Update a task's status. status: pending/running/completed/failed/skipped.
| Parameter | Type | Description |
|---|---|---|
status * | string | |
task_id * | string | |
error_message | ||
output_data |
whitebox_agent_workflows_list_tasks
List all tasks in a workflow, with status, assignments, and results.
| Parameter | Type | Description |
|---|---|---|
workflow_id * | string |
whitebox_agent_workflows_analytics
Get workflow analytics (tokens, costs, execution counts, durations). Calculated asynchronously after workflow completion.
| Parameter | Type | Description |
|---|---|---|
workflow_id * | string |
whitebox_agent_workflows_cost_breakdown
Get per-agent cost breakdown (tokens, cost, execution count, avg duration). This may take up to ~30s: it runs a Celery task the backend blocks on server-side before responding.
| Parameter | Type | Description |
|---|---|---|
workflow_id * | string |
whitebox_agent_workflows_bottlenecks
Identify workflow bottlenecks: slowest agents, slowest tasks, failing agents. This may take up to ~30s: it runs a Celery task the backend blocks on server-side before responding.
| Parameter | Type | Description |
|---|---|---|
workflow_id * | string |
whitebox_agent_workflows_timeline
Get a chronological timeline of workflow events (start/end, agent executions, task updates, interactions). This may take up to ~30s: it runs a Celery task the backend blocks on server-side before responding.
| Parameter | Type | Description |
|---|---|---|
workflow_id * | string |
whitebox_metrics_create
Create a new metric record for a model.
| Parameter | Type | Description |
|---|---|---|
metric_name * | string | |
metric_type * | string | |
metric_value * | number | |
model_id * | string | |
metric_metadata | ||
sample_size |
whitebox_metrics_create_batch
Create multiple metrics at once (max 100). Each dict in `metrics` needs metric_type/metric_name/metric_value.
| Parameter | Type | Description |
|---|---|---|
metrics * | array | |
model_id * | string |
whitebox_metrics_calculate_classification
Calculate classification metrics (accuracy/precision/recall/F1/etc.) from predictions, without persisting anything.
| Parameter | Type | Description |
|---|---|---|
y_pred * | array | |
y_true * | array | |
average | string | |
pos_label | integer | |
y_pred_proba |
whitebox_metrics_calculate_regression
Calculate regression metrics (MAE/MSE/RMSE/R2/etc.) from predictions, without persisting anything.
| Parameter | Type | Description |
|---|---|---|
y_pred * | array | |
y_true * | array |
whitebox_metrics_get_model_metrics
Get metrics recorded for a model, with optional type/date filters.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
end_date | ||
limit | integer | |
metric_type | ||
skip | integer | |
start_date |
whitebox_metrics_latest
Get the most recent metric of a specific type for a model.
| Parameter | Type | Description |
|---|---|---|
metric_type * | string | |
model_id * | string |
whitebox_metrics_timeseries
Get time series data for a metric over a required date range.
| Parameter | Type | Description |
|---|---|---|
end_date * | string | |
metric_type * | string | |
model_id * | string | |
start_date * | string |
whitebox_metrics_aggregate
Get metrics aggregated over `period` (e.g. "daily", "weekly"). Defaults to the last 30 days if no date range is given.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
period * | string | |
end_date | ||
force_recompute | boolean | |
metric_type | ||
start_date |
whitebox_metrics_trend
Get trend statistics for a metric over `lookback_days`.
| Parameter | Type | Description |
|---|---|---|
metric_type * | string | |
model_id * | string | |
lookback_days | integer |
whitebox_metrics_rolling
Get rolling-window statistics for a metric over `window_days`.
| Parameter | Type | Description |
|---|---|---|
metric_type * | string | |
model_id * | string | |
window_days | integer |
whitebox_metrics_summary
Get a summary of all metrics for a model over the last `days`.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
days | integer |
whitebox_metrics_delete
Delete all metrics for a model.
| Parameter | Type | Description |
|---|---|---|
model_id * | string |