> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coreweave.com/llms.txt
> Use this file to discover all available pages before exploring further.

# trace_server_interface

> Référence du SDK Python pour weave.trace_server.trace_server_interface

# Aperçu de l’API

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1334)

## <kbd>classe</kbd> `AggregationType`

Fonctions d’agrégation prises en charge par les métriques des statistiques de feedback et d’appels.

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L926)

## <kbd>classe</kbd> `AliasesListReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L931)

## <kbd>classe</kbd> `AliasesListRes`

**Champs Pydantic :**

* `aliases` : `list[str]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1976)

## <kbd>classe</kbd> `AnnotationQueueAddCallsReq`

Requête permettant d’ajouter des appels par lot à une file d’annotation.

Étend AnnotationQueueAddCallsBody en ajoutant queue\_id pour un usage interne de l’API.

**Champs Pydantic :**

* `project_id`: `<class 'str'>`
* `call_ids`: `list[str]`
* `display_fields`: `list[str]`
* `queue_id`: `<class 'str'>`
* `wb_user_id`: `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1986)

## <kbd>classe</kbd> `AnnotationQueueAddCallsRes`

Réponse à l’ajout d’appels à une file d’attente.

**Champs Pydantic :**

* `added_count`: `<class 'int'>`
* `duplicates`: `<class 'int'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1849)

## <kbd>classe</kbd> `AnnotationQueueCreateReq`

Requête permettant de créer une nouvelle file d’annotation.

**Champs Pydantic :**

* `project_id`: `<class 'str'>`
* `name`: `<class 'str'>`
* `description`: `<class 'str'>`
* `scorer_refs`: `list[str]`
* `wb_user_id`: `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1866)

## <kbd>classe</kbd> `AnnotationQueueCreateRes`

Réponse à la création d’une file d’annotation.

**Champs Pydantic :**

* `id` : `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1908)

## <kbd>classe</kbd> `AnnotationQueueDeleteReq`

Requête permettant de supprimer (suppression logique) une file d’annotation.

**Champs Pydantic :**

* `project_id`: `<class 'str'>`
* `queue_id`: `<class 'str'>`
* `wb_user_id`: `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1916)

## <kbd>classe</kbd> `AnnotationQueueDeleteRes`

Réponse à la suppression d’une file d’annotation.

**Champs Pydantic :**

* `queue` : `<class 'AnnotationQueueSchema'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1950)

## <kbd>classe</kbd> `AnnotationQueueItemSchema`

Schéma des réponses relatives aux éléments d’une file d’annotation.

**Champs Pydantic :**

* `id`: `<class 'str'>`
* `project_id`: `<class 'str'>`
* `queue_id`: `<class 'str'>`
* `call_id`: `<class 'str'>`
* `call_started_at`: `<class 'datetime.datetime'>`
* `call_ended_at`: `datetime.datetime | None`
* `call_op_name`: `<class 'str'>`
* `call_trace_id`: `<class 'str'>`
* `display_fields`: `list[str]`
* `added_by`: `str | None`
* `annotation_state`: `typing.Literal['unstarted', 'in_progress', 'completed', 'skipped']`
* `annotator_user_id`: `str | None`
* `created_at`: `<class 'datetime.datetime'>`
* `created_by`: `<class 'str'>`
* `updated_at`: `<class 'datetime.datetime'>`
* `deleted_at`: `datetime.datetime | None`
* `position_in_queue`: `int | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1993)

## <kbd>classe</kbd> `AnnotationQueueItemsQueryReq`

Requête permettant d’interroger les éléments d’une file d’annotation.

Étend AnnotationQueueItemsQueryBody en ajoutant queue\_id pour un usage interne de l’API.

**Champs Pydantic :**

* `project_id`: `<class 'str'>`
* `filter`: `weave.trace_server.common_interface.AnnotationQueueItemsFilter | None`
* `sort_by`: `list[weave.trace_server.common_interface.SortBy] | None`
* `limit`: `int | None`
* `offset`: `int | None`
* `include_position`: `<class 'bool'>`
* `queue_id`: `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2002)

## <kbd>classe</kbd> `AnnotationQueueItemsQueryRes`

Réponse à une requête portant sur les éléments d’une file d’annotation.

**Champs Pydantic :**

* `items` : `list[AnnotationQueueItemSchema]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1895)

## <kbd>classe</kbd> `AnnotationQueueReadReq`

Requête permettant de lire une file d’annotation spécifique.

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `queue_id` : `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1902)

## <kbd>classe</kbd> `AnnotationQueueReadRes`

Réponse à la lecture d’une file d’annotation.

**Champs Pydantic :**

* `queue` : `<class 'AnnotationQueueSchema'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1835)

## <kbd>classe</kbd> `AnnotationQueueSchema`

Schéma des réponses relatives aux files d’annotation.

**Champs Pydantic :**

* `id`: `<class 'str'>`
* `project_id`: `<class 'str'>`
* `name`: `<class 'str'>`
* `description`: `<class 'str'>`
* `scorer_refs`: `list[str]`
* `created_at`: `<class 'datetime.datetime'>`
* `created_by`: `<class 'str'>`
* `updated_at`: `<class 'datetime.datetime'>`
* `deleted_at`: `datetime.datetime | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2008)

## <kbd>classe</kbd> `AnnotationQueueStatsSchema`

Statistiques d’une file d’annotation donnée.

**Champs Pydantic :**

* `queue_id` : `<class 'str'>`
* `total_items` : `<class 'int'>`
* `completed_items` : `<class 'int'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1922)

## <kbd>classe</kbd> `AnnotationQueueUpdateReq`

Requête permettant de mettre à jour une file d’annotation.

Tous les champs sont facultatifs, à l’exception de project\_id et queue\_id : seuls les champs fournis seront mis à jour.

**Champs Pydantic :**

* `project_id`: `<class 'str'>`
* `queue_id`: `<class 'str'>`
* `name`: `str | None`
* `description`: `str | None`
* `scorer_refs`: `list[str] | None`
* `wb_user_id`: `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1944)

## <kbd>classe</kbd> `AnnotationQueueUpdateRes`

Réponse à la mise à jour d’une file d’annotation.

**Champs Pydantic :**

* `queue` : `<class 'AnnotationQueueSchema'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1872)

## <kbd>classe</kbd> `AnnotationQueuesQueryReq`

Requête permettant d’interroger les files d’annotation d’un projet.

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `name` : `str | None`
* `sort_by` : `list[weave.trace_server.common_interface.SortBy] | None`
* `limit` : `int | None`
* `offset` : `int | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1889)

## <kbd>classe</kbd> `AnnotationQueuesQueryRes`

Réponse à une requête sur les files d’annotation.

**Champs Pydantic :**

* `queues`: `list[AnnotationQueueSchema]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2023)

## <kbd>classe</kbd> `AnnotationQueuesStatsReq`

Requête permettant d’obtenir les statistiques de plusieurs files d’annotation.

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `queue_ids` : `list[str]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2038)

## <kbd>classe</kbd> `AnnotationQueuesStatsRes`

Réponse contenant les statistiques de plusieurs files d’annotation.

**Champs Pydantic :**

* `stats` : `list[AnnotationQueueStatsSchema]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2044)

## <kbd>classe</kbd> `AnnotatorQueueItemsProgressUpdateReq`

Requête permettant de mettre à jour l’état d’annotation d’un élément de la file d’attente pour l’annotateur actuel.

Transitions d’état valides :

* (absence) -> 'in\_progress' : marquer l’élément comme en cours (uniquement si aucun enregistrement n’existe)
* (absence) -> 'completed' ou 'skipped' : terminer ou ignorer directement l’élément
* 'in\_progress' ou 'unstarted' -> 'completed' ou 'skipped' : terminer ou ignorer un élément déjà commencé
* same\_state -> same\_state : no-op idempotent (renvoie l’élément existant sans modification)

**Champs Pydantic :**

* `project_id`: `<class 'str'>`
* `queue_id`: `<class 'str'>`
* `item_id`: `<class 'str'>`
* `annotation_state`: `<class 'str'>`
* `wb_user_id`: `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2064)

## <kbd>classe</kbd> `AnnotatorQueueItemsProgressUpdateRes`

Réponse à la mise à jour de l’état d’annotation.

**Champs Pydantic :**

* `item`: `<class 'AnnotationQueueItemSchema'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L416)

## <kbd>classe</kbd> `CallBatchEndMode`

**Champs Pydantic :**

* `mode` : `<class 'str'>`
* `req` : `<class 'CallEndReq'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L411)

## <kbd>classe</kbd> `CallBatchStartMode`

**Champs Pydantic :**

* `mode` : `<class 'str'>`
* `req` : `<class 'CallStartReq'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L421)

## <kbd>classe</kbd> `CallCreateBatchReq`

**Champs Pydantic :**

* `batch` : `list[CallBatchStartMode | CallBatchEndMode]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L425)

## <kbd>classe</kbd> `CallCreateBatchRes`

**Champs Pydantic :**

* `res` : `list[CallStartRes | CallEndRes]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L403)

## <kbd>classe</kbd> `CallEndReq`

**Champs Pydantic :**

* `end` : `<class 'EndedCallSchemaForInsert'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L407)

## <kbd>classe</kbd> `CallEndRes`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L454)

## <kbd>classe</kbd> `CallEndV2Req`

Requête permettant de terminer un appel unique via l’API v2.

**Champs Pydantic :**

* `end` : `<class 'EndedCallSchemaForInsertWithStartedAt'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L460)

## <kbd>classe</kbd> `CallEndV2Res`

Réponse de l’opération de fin d’un appel unique via l’API v2.

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3784)

## <kbd>classe</kbd> `CallMetricSpec`

Spécification d’une métrique à agréger au niveau de l’appel (sans regroupement par modèle).

**Champs Pydantic :**

* `metric` : `typing.Literal['latency_ms', 'call_count', 'error_count']`
* `aggregations` : `list[AggregationType]`
* `percentiles` : `list[float]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L466)

## <kbd>classe</kbd> `CallReadReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `id` : `<class 'str'>`
* `include_costs` : `bool | None`
* `include_storage_size` : `bool | None`
* `include_total_storage_size` : `bool | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L474)

## <kbd>classe</kbd> `CallReadRes`

**Champs Pydantic :**

* `call`: `CallSchema | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L117)

## <kbd>classe</kbd> `CallSchema`

**Champs Pydantic :**

* `id`: `<class 'str'>`
* `project_id`: `<class 'str'>`
* `op_name`: `<class 'str'>`
* `display_name`: `str | None`
* `trace_id`: `<class 'str'>`
* `parent_id`: `str | None`
* `thread_id`: `str | None`
* `turn_id`: `str | None`
* `started_at`: `<class 'datetime.datetime'>`
* `attributes`: `dict[str, typing.Any]`
* `inputs`: `dict[str, typing.Any]`
* `ended_at`: `datetime.datetime | None`
* `exception`: `str | None`
* `output`: `typing.Any | None`
* `summary`: `SummaryMap | None`
* `wb_user_id`: `str | None`
* `wb_username`: `str | None`
* `wb_run_id`: `str | None`
* `wb_run_step`: `int | None`
* `wb_run_step_end`: `int | None`
* `deleted_at`: `datetime.datetime | None`
* `expire_at`: `datetime.datetime | None`
* `storage_size_bytes`: `int | None`
* `total_storage_size_bytes`: `int | None`

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L178)

### <kbd>méthode</kbd> `serialize_typed_dicts`

```python theme={"system"}
serialize_typed_dicts(v: dict[str, Any]) → dict[str, Any]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L394)

## <kbd>classe</kbd> `CallStartReq`

**Champs Pydantic :**

* `start` : `<class 'StartedCallSchemaForInsert'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L398)

## <kbd>classe</kbd> `CallStartRes`

**Champs Pydantic :**

* `id`: `<class 'str'>`
* `trace_id`: `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L441)

## <kbd>classe</kbd> `CallStartV2Req`

Requête permettant de démarrer un appel unique via l’API v2.

**Champs Pydantic :**

* `start` : `<class 'StartedCallSchemaForInsert'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L447)

## <kbd>classe</kbd> `CallStartV2Res`

Réponse renvoyée lors du démarrage d’un appel unique via l’API v2.

**Champs Pydantic :**

* `id`: `<class 'str'>`
* `trace_id`: `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3802)

## <kbd>classe</kbd> `CallStatsReq`

Requête de statistiques agrégées sur les appels pour une plage temporelle donnée.

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `start` : `<class 'datetime.datetime'>`
* `end` : `datetime.datetime | None`
* `granularity` : `int | None`
* `usage_metrics` : `list[UsageMetricSpec] | None`
* `call_metrics` : `list[CallMetricSpec] | None`
* `filter` : `CallsFilter | None`
* `timezone` : `<class 'str'>`

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3832)

### <kbd>méthode</kbd> `validate_date_range`

```python theme={"system"}
validate_date_range() → CallStatsReq
```

Garantit que les requêtes de statistiques d’appels sont limitées à une plage de dates sûre.

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3845)

## <kbd>classe</kbd> `CallStatsRes`

Réponse contenant des statistiques d’appels sous forme de séries temporelles.

**Champs Pydantic :**

* `start` : `<class 'datetime.datetime'>`
* `end` : `<class 'datetime.datetime'>`
* `granularity` : `<class 'int'>`
* `timezone` : `<class 'str'>`
* `usage_buckets` : `list[dict[str, typing.Any]]`
* `call_buckets` : `list[dict[str, typing.Any]]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L704)

## <kbd>classe</kbd> `CallUpdateReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `call_id` : `<class 'str'>`
* `display_name` : `str | None`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L716)

## <kbd>classe</kbd> `CallUpdateRes`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L478)

## <kbd>classe</kbd> `CallsDeleteReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `call_ids` : `list[str]`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L486)

## <kbd>classe</kbd> `CallsDeleteRes`

**Champs Pydantic :**

* `num_deleted` : `<class 'int'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L597)

## <kbd>classe</kbd> `CallsFilter`

**Champs Pydantic :**

* `op_names` : `list[str] | None`
* `input_refs` : `list[str] | None`
* `output_refs` : `list[str] | None`
* `parent_ids` : `list[str] | None`
* `trace_ids` : `list[str] | None`
* `call_ids` : `list[str] | None`
* `thread_ids` : `list[str] | None`
* `turn_ids` : `list[str] | None`
* `trace_roots_only` : `bool | None`
* `wb_user_ids` : `list[str] | None`
* `wb_run_ids` : `list[str] | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L612)

## <kbd>classe</kbd> `CallsQueryReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `filter` : `CallsFilter | None`
* `limit` : `int | None`
* `offset` : `int | None`
* `sort_by` : `list[weave.trace_server.common_interface.SortBy] | None`
* `query` : `weave.trace_server.interface.query.Query | None`
* `include_costs` : `bool | None`
* `include_feedback` : `bool | None`
* `include_storage_size` : `bool | None`
* `include_total_storage_size` : `bool | None`
* `include_usernames` : `bool | None`
* `columns` : `list[str] | None`
* `expand_columns` : `list[str] | None`
* `return_expanded_column_values` : `bool | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L677)

## <kbd>classe</kbd> `CallsQueryRes`

**Champs Pydantic :**

* `calls` : `list[CallSchema]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L681)

## <kbd>classe</kbd> `CallsQueryStatsReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `filter` : `CallsFilter | None`
* `query` : `weave.trace_server.interface.query.Query | None`
* `limit` : `int | None`
* `include_total_storage_size` : `bool | None`
* `expand_columns` : `list[str] | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L697)

## <kbd>classe</kbd> `CallsQueryStatsRes`

**Champs Pydantic :**

* `count` : `<class 'int'>`
* `has_more` : `<class 'bool'>`
* `total_storage_size_bytes` : `int | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2436)

## <kbd>classe</kbd> `CallsScoreReq`

Requête permettant de mettre en file d'attente des jobs de scoring pour une liste d'appels.

Le scoring est effectué de manière asynchrone par le call\_scoring\_worker, qui consomme les messages provenant de Kafka et applique chaque scorer\_ref à chaque call\_id.

**Champs Pydantic :**

* `project_id`: `<class 'str'>`
* `call_ids`: `list[str]`
* `scorer_refs`: `list[str]`
* `wb_user_id`: `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2449)

## <kbd>classe</kbd> `CallsScoreRes`

Réponse vide pour calls\_score.

Définie comme un modèle (plutôt que de renvoyer None) afin de respecter la convention suivie dans l’ensemble de cette interface et de permettre d’ajouter ultérieurement des champs sans introduire de modification incompatible.

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L429)

## <kbd>classe</kbd> `CallsUpsertCompleteReq`

Requête permettant d’insérer ou de mettre à jour (upsert) un lot d’appels terminés.

**Champs Pydantic :**

* `batch` : `list[CompletedCallSchemaForInsert]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L435)

## <kbd>classe</kbd> `CallsUpsertCompleteRes`

Réponse à l’insertion ou à la mise à jour (upsert) d’un lot d’appels terminés.

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3924)

## <kbd>classe</kbd> `CallsUsageReq`

Requête permettant de calculer l’utilisation agrégée de plusieurs appels racines.

Ce point de terminaison renvoie les métriques d’utilisation de chaque appel racine demandé, les métriques de chaque racine correspondant à la somme de sa propre utilisation et de celle de tous ses descendants.

Remarque : tous les appels correspondants sont chargés en mémoire pour l’agrégation. Pour les ensembles de résultats très volumineux (plus de 10 000 appels), envisagez de traiter les ID d’appels racines par lots ou d’appliquer des filtres plus restrictifs au niveau de la couche applicative.

**Champs Pydantic :**

* `project_id`: `<class 'str'>`
* `call_ids`: `list[str]`
* `include_costs`: `<class 'bool'>`
* `limit`: `<class 'int'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3949)

## <kbd>classe</kbd> `CallsUsageRes`

Réponse contenant les métriques d'utilisation agrégées par appel racine.

**Champs Pydantic :**

* `call_usage` : `dict[str, dict[str, LLMAggregatedUsage]]`
* `unfinished_call_ids` : `list[str]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L271)

## <kbd>classe</kbd> `CompletedCallSchemaForInsert`

Schéma permettant d’insérer directement un appel terminé.

Représente un appel déjà terminé au moment de son insertion, dont les informations de début et de fin sont fournies ensemble. Utilisé par le point de terminaison `calls_complete`.

**Champs Pydantic :**

* `project_id`: `<class 'str'>`
* `id`: `<class 'str'>`
* `trace_id`: `<class 'str'>`
* `op_name`: `<class 'str'>`
* `started_at`: `<class 'datetime.datetime'>`
* `ended_at`: `<class 'datetime.datetime'>`
* `display_name`: `str | None`
* `parent_id`: `str | None`
* `thread_id`: `str | None`
* `turn_id`: `str | None`
* `attributes`: `dict[str, typing.Any]`
* `inputs`: `dict[str, typing.Any]`
* `output`: `typing.Any | None`
* `summary`: `<class 'SummaryInsertMap'>`
* `otel_dump`: `dict[str, typing.Any] | None`
* `exception`: `str | None`
* `wb_user_id`: `str | None`
* `wb_run_id`: `str | None`
* `wb_run_step`: `int | None`
* `wb_run_step_end`: `int | None`

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L310)

### <kbd>méthode</kbd> `serialize_typed_dicts`

```python theme={"system"}
serialize_typed_dicts(v: dict[str, Any]) → dict[str, Any]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L540)

## <kbd>classe</kbd> `CompletionsCreateReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `inputs` : `<class 'CompletionsCreateRequestInputs'>`
* `wb_user_id` : `str | None`
* `track_llm_call` : `bool | None`
* `trace_id` : `str | None`
* `parent_id` : `str | None`
* `conversation_id` : `str | None`
* `conversation_name` : `str | None`
* `source` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L490)

## <kbd>classe</kbd> `CompletionsCreateRequestInputs`

**Champs Pydantic :**

* `model` : `<class 'str'>`
* `messages` : `<class 'list'>`
* `timeout` : `float | str | None`
* `temperature` : `float | None`
* `top_p` : `float | None`
* `n` : `int | None`
* `stop` : `str | list | None`
* `max_completion_tokens` : `int | None`
* `max_tokens` : `int | None`
* `modalities` : `list | None`
* `presence_penalty` : `float | None`
* `frequency_penalty` : `float | None`
* `stream` : `bool | None`
* `logit_bias` : `dict | None`
* `user` : `str | None`
* `response_format` : `dict | type[pydantic.main.BaseModel] | None`
* `seed` : `int | None`
* `tools` : `list | None`
* `tool_choice` : `str | dict | None`
* `logprobs` : `bool | None`
* `top_logprobs` : `int | None`
* `parallel_tool_calls` : `bool | None`
* `extra_headers` : `dict | None`
* `functions` : `list | None`
* `function_call` : `str | None`
* `api_version` : `str | None`
* `prompt` : `str | None`
* `template_vars` : `dict[str, typing.Any] | None`
* `vertex_credentials` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L568)

## <kbd>classe</kbd> `CompletionsCreateRes`

**Champs Pydantic :**

* `response` : `dict[str, typing.Any]`
* `weave_call_id` : `str | None`
* `span_id` : `str | None`
* `trace_id` : `str | None`
* `conversation_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1704)

## <kbd>classe</kbd> `CostCreateInput`

**Champs Pydantic :**

* `prompt_token_cost` : `<class 'float'>`
* `completion_token_cost` : `<class 'float'>`
* `cache_read_input_token_cost` : `<class 'float'>`
* `cache_creation_input_token_cost` : `<class 'float'>`
* `prompt_token_cost_unit` : `str | None`
* `completion_token_cost_unit` : `str | None`
* `effective_date` : `datetime.datetime | None`
* `provider_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1725)

## <kbd>classe</kbd> `CostCreateReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `costs` : `dict[str, CostCreateInput]`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1732)

## <kbd>classe</kbd> `CostCreateRes`

**Champs Pydantic :**

* `ids` : `list[tuple[str, str]]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1779)

## <kbd>classe</kbd> `CostPurgeReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `query` : `<class 'weave.trace_server.interface.query.Query'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1784)

## <kbd>classe</kbd> `CostPurgeRes`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1762)

## <kbd>classe</kbd> `CostQueryOutput`

**Champs Pydantic :**

* `id` : `str | None`
* `llm_id` : `str | None`
* `prompt_token_cost` : `float | None`
* `completion_token_cost` : `float | None`
* `prompt_token_cost_unit` : `str | None`
* `completion_token_cost_unit` : `str | None`
* `effective_date` : `datetime.datetime | None`
* `provider_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1736)

## <kbd>classe</kbd> `CostQueryReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `fields` : `list[str] | None`
* `query` : `weave.trace_server.interface.query.Query | None`
* `sort_by` : `list[weave.trace_server.common_interface.SortBy] | None`
* `limit` : `int | None`
* `offset` : `int | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1775)

## <kbd>classe</kbd> `CostQueryRes`

**Champs Pydantic :**

* `results` : `list[CostQueryOutput]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2546)

## <kbd>classe</kbd> `DatasetCreateBody`

**Champs Pydantic :**

* `name`: `str | None`
* `description`: `str | None`
* `rows`: `list[dict[str, typing.Any]]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2558)

## <kbd>classe</kbd> `DatasetCreateReq`

**Champs Pydantic :**

* `name`: `str | None`
* `description`: `str | None`
* `rows`: `list[dict[str, typing.Any]]`
* `project_id`: `<class 'str'>`
* `wb_user_id`: `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2565)

## <kbd>classe</kbd> `DatasetCreateRes`

**Champs Pydantic :**

* `digest` : `<class 'str'>`
* `object_id` : `<class 'str'>`
* `version_index` : `<class 'int'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2608)

## <kbd>classe</kbd> `DatasetDeleteReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `object_id` : `<class 'str'>`
* `digests` : `list[str] | None`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2620)

## <kbd>classe</kbd> `DatasetDeleteRes`

**Champs Pydantic :**

* `num_deleted` : `<class 'int'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2597)

## <kbd>classe</kbd> `DatasetListReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `limit` : `int | None`
* `offset` : `int | None`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2573)

## <kbd>classe</kbd> `DatasetReadReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `object_id` : `<class 'str'>`
* `digest` : `<class 'str'>`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2582)

## <kbd>classe</kbd> `DatasetReadRes`

**Champs Pydantic :**

* `object_id` : `<class 'str'>`
* `digest` : `<class 'str'>`
* `version_index` : `<class 'int'>`
* `created_at` : `<class 'datetime.datetime'>`
* `name` : `<class 'str'>`
* `description` : `str | None`
* `rows` : `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2107)

## <kbd>classe</kbd> `DatasetSourceLinkPayload`

Une seule ligne de jeu de données et les sources à y lier.

**Champs Pydantic :**

* `row_digest` : `<class 'str'>`
* `sources` : `list[SourceRef]`
* `link_metadata` : `dict[str, typing.Any] | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2167)

## <kbd>classe</kbd> `DatasetSourceLinkSchema`

Schéma d’une ligne de lien vers une source de jeu de données.

**Champs Pydantic :**

* `id`: `<class 'str'>`
* `row_digest`: `<class 'str'>`
* `source_kind`: `<enum 'SourceKind'>`
* `source_id`: `<class 'str'>`
* `source_trace_id`: `<class 'str'>`
* `source_started_at`: `<class 'datetime.datetime'>`
* `source_display_name`: `<class 'str'>`
* `link_metadata`: `dict[str, typing.Any] | None`
* `added_by`: `str | None`
* `created_at`: `<class 'datetime.datetime'>`
* `updated_at`: `<class 'datetime.datetime'>`
* `deleted_at`: `datetime.datetime | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2146)

## <kbd>classe</kbd> `DatasetSourcesLinkDeleteReq`

Requête permettant de supprimer de manière réversible (soft-delete) des liens de sources de jeu de données par ID.

**Champs Pydantic :**

* `project_id`: `<class 'str'>`
* `link_ids`: `list[str]`
* `wb_user_id`: `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2161)

## <kbd>classe</kbd> `DatasetSourcesLinkDeleteRes`

Réponse à la suppression des liens de sources de jeu de données.

**Champs Pydantic :**

* `entries`: `list[DatasetSourcesLinkDeleteResEntry]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2154)

## <kbd>classe</kbd> `DatasetSourcesLinkDeleteResEntry`

Résultat de la suppression d’un seul lien.

**Champs Pydantic :**

* `link_id` : `<class 'str'>`
* `deleted` : `<class 'bool'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2115)

## <kbd>classe</kbd> `DatasetSourcesLinkReq`

Requête permettant de lier des lignes de jeu de données à leurs sources de provenance.

**Champs Pydantic :**

* `project_id`: `<class 'str'>`
* `dataset_object_id`: `<class 'str'>`
* `dataset_digest`: `<class 'str'>`
* `links`: `list[DatasetSourceLinkPayload]`
* `include_created_status`: `<class 'bool'>`
* `wb_user_id`: `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2137)

## <kbd>classe</kbd> `DatasetSourcesLinkRes`

Réponse à la liaison de lignes de jeu de données à des sources.

Une entrée par tuple aplati (row\_digest, source), dans l’ordre d’entrée.

**Champs Pydantic :**

* `entries` : `list[DatasetSourcesLinkResEntry]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2129)

## <kbd>classe</kbd> `DatasetSourcesLinkResEntry`

Résultat pour un lien (row\_digest, source) aplati unique.

**Champs Pydantic :**

* `link_id`: `<class 'str'>`
* `created`: `bool | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2184)

## <kbd>classe</kbd> `DatasetSourcesQueryReq`

Requête directe : jeu de données -> sources.

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `dataset_object_id` : `<class 'str'>`
* `row_digests` : `list[str] | None`
* `source_kinds` : `list[SourceKind] | None`
* `include_deleted` : `<class 'bool'>`
* `limit` : `int | None`
* `offset` : `int | None`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2197)

## <kbd>classe</kbd> `DatasetSourcesQueryRes`

Réponse à la requête directe jeu de données -> sources.

**Champs Pydantic :**

* `links`: `list[DatasetSourceLinkSchema]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L221)

## <kbd>classe</kbd> `EndedCallSchemaForInsert`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `id` : `<class 'str'>`
* `trace_id` : `str | None`
* `is_eval` : `bool | None`
* `ended_at` : `<class 'datetime.datetime'>`
* `started_at` : `datetime.datetime | None`
* `exception` : `str | None`
* `output` : `typing.Any | None`
* `summary` : `<class 'SummaryInsertMap'>`
* `wb_run_step_end` : `int | None`

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L258)

### <kbd>méthode</kbd> `serialize_typed_dicts`

```python theme={"system"}
serialize_typed_dicts(v: dict[str, Any]) → dict[str, Any]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L263)

## <kbd>classe</kbd> `EndedCallSchemaForInsertWithStartedAt`

Alias obsolète. `started_at` se trouve désormais dans la classe parente `EndedCallSchemaForInsert`, à utiliser de préférence. Cet alias est conservé pour que les SDK externes épinglés sur le nom `WithStartedAt` puissent continuer à l’importer. À supprimer une fois que tous les appelants internes auront migré.

**Champs Pydantic :**

* `project_id`: `<class 'str'>`
* `id`: `<class 'str'>`
* `trace_id`: `str | None`
* `is_eval`: `bool | None`
* `ended_at`: `<class 'datetime.datetime'>`
* `started_at`: `datetime.datetime | None`
* `exception`: `str | None`
* `output`: `typing.Any | None`
* `summary`: `<class 'SummaryInsertMap'>`
* `wb_run_step_end`: `int | None`

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L258)

### <kbd>méthode</kbd> `serialize_typed_dicts`

```python theme={"system"}
serialize_typed_dicts(v: dict[str, Any]) → dict[str, Any]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3405)

## <kbd>classe</kbd> `EvalResultsEvaluationSummary`

**Champs Pydantic :**

* `evaluation_call_id` : `<class 'str'>`
* `trial_count` : `<class 'int'>`
* `scorer_stats` : `list[EvalResultsScorerStats]`
* `predict_total_tokens` : `int | None`
* `predict_total_cost` : `float | None`
* `evaluation_ref` : `str | None`
* `model_ref` : `str | None`
* `display_name` : `str | None`
* `trace_id` : `str | None`
* `started_at` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3223)

## <kbd>classe</kbd> `EvalResultsFilter`

Filtre limité à une évaluation facultative.

**Champs Pydantic :**

* `evaluation_call_id` : `str | None`
* `query` : `<class 'weave.trace_server.interface.query.Query'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3236)

## <kbd>classe</kbd> `EvalResultsQueryBody`

**Champs Pydantic :**

* `evaluation_call_ids`: `list[str] | None`
* `evaluation_run_ids`: `list[str] | None`
* `require_intersection`: `<class 'bool'>`
* `include_raw_data_rows`: `<class 'bool'>`
* `resolve_row_refs`: `<class 'bool'>`
* `include_rows`: `<class 'bool'>`
* `include_summary`: `<class 'bool'>`
* `summary_require_intersection`: `bool | None`
* `include_predict_and_score_children`: `<class 'bool'>`
* `include_costs`: `<class 'bool'>`
* `sort_by`: `list[EvalResultsSortBy] | None`
* `filters`: `list[EvalResultsFilter] | None`
* `filter_logic_operator`: `typing.Literal['and', 'or']`
* `limit`: `int | None`
* `offset`: `<class 'int'>`

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3332)

### <kbd>méthode</kbd> `validate_identifiers`

```python theme={"system"}
validate_identifiers() → EvalResultsQueryBody
```

Vérifie qu’au moins un identifiant d’évaluation a été fourni.

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3344)

## <kbd>classe</kbd> `EvalResultsQueryReq`

**Champs Pydantic :**

* `evaluation_call_ids` : `list[str] | None`
* `evaluation_run_ids` : `list[str] | None`
* `require_intersection` : `<class 'bool'>`
* `include_raw_data_rows` : `<class 'bool'>`
* `resolve_row_refs` : `<class 'bool'>`
* `include_rows` : `<class 'bool'>`
* `include_summary` : `<class 'bool'>`
* `summary_require_intersection` : `bool | None`
* `include_predict_and_score_children` : `<class 'bool'>`
* `include_costs` : `<class 'bool'>`
* `sort_by` : `list[EvalResultsSortBy] | None`
* `filters` : `list[EvalResultsFilter] | None`
* `filter_logic_operator` : `typing.Literal['and', 'or']`
* `limit` : `int | None`
* `offset` : `<class 'int'>`
* `project_id` : `<class 'str'>`

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3332)

### <kbd>méthode</kbd> `validate_identifiers`

```python theme={"system"}
validate_identifiers() → EvalResultsQueryBody
```

Vérifie qu’au moins un identifiant d’évaluation a été fourni.

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3371)

## <kbd>classe</kbd> `EvalResultsQueryRes`

**Champs Pydantic :**

* `rows` : `list[EvalResultsRow]`
* `total_rows` : `<class 'int'>`
* `summary` : `ForwardRef('EvalResultsSummaryRes | None')`
* `warnings` : `list[str]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3365)

## <kbd>classe</kbd> `EvalResultsRow`

**Champs Pydantic :**

* `row_digest` : `<class 'str'>`
* `raw_data_row` : `typing.Any | None`
* `evaluations` : `list[EvalResultsRowEvaluation]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3360)

## <kbd>classe</kbd> `EvalResultsRowEvaluation`

**Champs Pydantic :**

* `evaluation_call_id` : `<class 'str'>`
* `trials` : `list[EvalResultsTrial]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3381)

## <kbd>classe</kbd> `EvalResultsScorerStats`

Statistiques d’une dimension de score aplatie unique (scorer\_key ou scorer\_key.path.to.leaf).

**Champs Pydantic :**

* `scorer_key`: `<class 'str'>`
* `path`: `str | None`
* `value_type`: `typing.Optional[typing.Literal['binary', 'continuous', 'text']]`
* `trial_count`: `<class 'int'>`
* `numeric_count`: `<class 'int'>`
* `numeric_mean`: `float | None`
* `pass_true_count`: `<class 'int'>`
* `pass_known_count`: `<class 'int'>`
* `pass_rate`: `float | None`
* `pass_signal_coverage`: `float | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3206)

## <kbd>classe</kbd> `EvalResultsSortBy`

Spécification de tri des résultats d’évaluation, qui étend SortBy

**Champs Pydantic :**

* `field`: `<class 'str'>`
* `direction`: `typing.Literal['asc', 'desc']`
* `evaluation_call_id`: `str | None`
* `mode`: `typing.Literal['value', 'difference']`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3432)

## <kbd>classe</kbd> `EvalResultsSummaryRes`

**Champs Pydantic :**

* `row_count` : `<class 'int'>`
* `evaluations` : `list[EvalResultsEvaluationSummary]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3348)

## <kbd>classe</kbd> `EvalResultsTrial`

**Champs Pydantic :**

* `predict_and_score_call_id` : `<class 'str'>`
* `predict_call_id` : `str | None`
* `model_output` : `typing.Any | None`
* `scores` : `dict[str, typing.Any]`
* `model_latency_seconds` : `float | None`
* `total_tokens` : `int | None`
* `total_cost` : `float | None`
* `scorer_call_ids` : `dict[str, str]`
* `genai_span_ref` : `list[GenAISpanRef] | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2318)

## <kbd>classe</kbd> `EvaluateModelArgs`

Arguments d’un job complet d’évaluation de modèle (chargement du modèle, exécution des prédictions et calcul des scores).

Déplacé depuis workers/evaluate\_model\_worker/evaluate\_model\_worker.py afin que les deux types de jobs (EvaluateModelArgs et RescoringArgs) puissent être regroupés dans le même module pour l’union discriminée EvalWorkerJob.

**Champs Pydantic :**

* `job_type`: `typing.Literal['evaluate_model']`
* `project_id`: `<class 'str'>`
* `evaluation_ref`: `<class 'str'>`
* `model_ref`: `<class 'str'>`
* `wb_user_id`: `<class 'str'>`
* `evaluation_call_id`: `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2304)

## <kbd>classe</kbd> `EvaluateModelReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `evaluation_ref` : `<class 'str'>`
* `model_ref` : `<class 'str'>`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2314)

## <kbd>classe</kbd> `EvaluateModelRes`

**Champs Pydantic :**

* `call_id` : `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2709)

## <kbd>classe</kbd> `EvaluationCreateBody`

**Champs Pydantic :**

* `name` : `<class 'str'>`
* `description` : `str | None`
* `dataset` : `<class 'str'>`
* `scorers` : `list[str] | None`
* `trials` : `<class 'int'>`
* `evaluation_name` : `str | None`
* `eval_attributes` : `dict[str, typing.Any] | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2731)

## <kbd>classe</kbd> `EvaluationCreateReq`

**Champs Pydantic :**

* `name` : `<class 'str'>`
* `description` : `str | None`
* `dataset` : `<class 'str'>`
* `scorers` : `list[str] | None`
* `trials` : `<class 'int'>`
* `evaluation_name` : `str | None`
* `eval_attributes` : `dict[str, typing.Any] | None`
* `project_id` : `<class 'str'>`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2738)

## <kbd>classe</kbd> `EvaluationCreateRes`

**Champs Pydantic :**

* `digest` : `<class 'str'>`
* `object_id` : `<class 'str'>`
* `version_index` : `<class 'int'>`
* `evaluation_ref` : `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2797)

## <kbd>classe</kbd> `EvaluationDeleteReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `object_id` : `<class 'str'>`
* `digests` : `list[str] | None`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2809)

## <kbd>classe</kbd> `EvaluationDeleteRes`

**Champs Pydantic :**

* `num_deleted` : `<class 'int'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2784)

## <kbd>classe</kbd> `EvaluationListReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `limit` : `int | None`
* `offset` : `int | None`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2749)

## <kbd>classe</kbd> `EvaluationReadReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `object_id` : `<class 'str'>`
* `digest` : `<class 'str'>`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2758)

## <kbd>classe</kbd> `EvaluationReadRes`

**Champs Pydantic :**

* `object_id` : `<class 'str'>`
* `digest` : `<class 'str'>`
* `version_index` : `<class 'int'>`
* `created_at` : `<class 'datetime.datetime'>`
* `name` : `<class 'str'>`
* `description` : `str | None`
* `dataset` : `<class 'str'>`
* `scorers` : `list[str]`
* `trials` : `<class 'int'>`
* `evaluation_name` : `str | None`
* `evaluate_op` : `str | None`
* `predict_and_score_op` : `str | None`
* `summarize_op` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2907)

## <kbd>classe</kbd> `EvaluationRunCreateBody`

**Champs Pydantic :**

* `evaluation`: `<class 'str'>`
* `model`: `<class 'str'>`
* `source_evaluation_run_id`: `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2918)

## <kbd>classe</kbd> `EvaluationRunCreateReq`

**Champs Pydantic :**

* `evaluation` : `<class 'str'>`
* `model` : `<class 'str'>`
* `source_evaluation_run_id` : `str | None`
* `project_id` : `<class 'str'>`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2925)

## <kbd>classe</kbd> `EvaluationRunCreateRes`

**Champs Pydantic :**

* `evaluation_run_id`: `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2985)

## <kbd>classe</kbd> `EvaluationRunDeleteReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `evaluation_run_ids` : `list[str]`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2995)

## <kbd>classe</kbd> `EvaluationRunDeleteRes`

**Champs Pydantic :**

* `num_deleted` : `<class 'int'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2960)

## <kbd>classe</kbd> `EvaluationRunFilter`

**Champs Pydantic :**

* `evaluations` : `list[str] | None`
* `models` : `list[str] | None`
* `evaluation_run_ids` : `list[str] | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2999)

## <kbd>classe</kbd> `EvaluationRunFinishBody`

Corps de requête permettant de terminer un run d’évaluation via l’API REST.

Ce modèle exclut project\_id et evaluation\_run\_id, car ces valeurs sont fournies par le chemin de l’URL dans les points de terminaison RESTful.

**Champs Pydantic :**

* `summary` : `dict[str, typing.Any] | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3010)

## <kbd>classe</kbd> `EvaluationRunFinishReq`

**Champs Pydantic :**

* `summary` : `dict[str, typing.Any] | None`
* `project_id` : `<class 'str'>`
* `evaluation_run_id` : `<class 'str'>`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3018)

## <kbd>classe</kbd> `EvaluationRunFinishRes`

**Champs Pydantic :**

* `success` : `<class 'bool'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2970)

## <kbd>classe</kbd> `EvaluationRunListReq`

**Champs Pydantic :**

* `project_id`: `<class 'str'>`
* `filter`: `EvaluationRunFilter | None`
* `limit`: `int | None`
* `offset`: `int | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2931)

## <kbd>classe</kbd> `EvaluationRunReadReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `evaluation_run_id` : `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2938)

## <kbd>classe</kbd> `EvaluationRunReadRes`

**Champs Pydantic :**

* `evaluation_run_id`: `<class 'str'>`
* `evaluation`: `<class 'str'>`
* `model`: `<class 'str'>`
* `status`: `str | None`
* `started_at`: `datetime.datetime | None`
* `finished_at`: `datetime.datetime | None`
* `summary`: `dict[str, typing.Any] | None`
* `source_evaluation_run_id`: `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2422)

## <kbd>classe</kbd> `EvaluationStatusComplete`

**Champs Pydantic :**

* `code` : `typing.Literal['complete']`
* `output` : `dict[str, typing.Any]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2417)

## <kbd>classe</kbd> `EvaluationStatusFailed`

**Champs Pydantic :**

* `code` : `typing.Literal['failed']`
* `error` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2407)

## <kbd>classe</kbd> `EvaluationStatusNotFound`

**Champs Pydantic :**

* `code`: `typing.Literal['not_found']`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2402)

## <kbd>classe</kbd> `EvaluationStatusReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `call_id` : `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2427)

## <kbd>classe</kbd> `EvaluationStatusRes`

**Champs Pydantic :**

* `status` : `EvaluationStatusNotFound | EvaluationStatusRunning | EvaluationStatusFailed | EvaluationStatusComplete`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2411)

## <kbd>classe</kbd> `EvaluationStatusRunning`

**Champs Pydantic :**

* `code` : `typing.Literal['running']`
* `completed_rows` : `<class 'int'>`
* `total_rows` : `<class 'int'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L380)

## <kbd>classe</kbd> `ExportTracePartialSuccess`

**Champs Pydantic :**

* `rejected_spans` : `<class 'int'>`
* `error_message` : `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L47)

## <kbd>classe</kbd> `ExtraKeysTypedDict`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1281)

## <kbd>classe</kbd> `Feedback`

**Champs Pydantic :**

* `id`: `<class 'str'>`
* `project_id`: `<class 'str'>`
* `weave_ref`: `<class 'str'>`
* `creator`: `str | None`
* `feedback_type`: `<class 'str'>`
* `payload`: `dict[str, typing.Any]`
* `annotation_ref`: `str | None`
* `runnable_ref`: `str | None`
* `call_ref`: `str | None`
* `trigger_ref`: `str | None`
* `queue_id`: `str | None`
* `scorer_tags`: `list[str]`
* `scorer_tag_reasons`: `dict[str, str]`
* `scorer_tag_confidences`: `dict[str, float]`
* `scorer_ratings`: `dict[str, float]`
* `scorer_rating_reasons`: `dict[str, str]`
* `scorer_rating_confidences`: `dict[str, float]`
* `span_agent_name`: `<class 'str'>`
* `span_agent_version`: `<class 'str'>`
* `span_status_code`: `<class 'str'>`
* `wb_user_id`: `str | None`
* `created_at`: `<class 'datetime.datetime'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1585)

## <kbd>classe</kbd> `FeedbackAggregateBucket`

Une ligne (tranche temporelle, groupe) de feedback agrégé issu des scorers.

**Champs Pydantic :**

* `time_bucket_start_ms`: `int | None`
* `group`: `dict[str, str]`
* `total_count`: `<class 'int'>`
* `scored_count`: `<class 'int'>`
* `tag_counts`: `dict[str, int]`
* `rating_counts`: `dict[str, int]`
* `rating_sums`: `dict[str, float]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1495)

## <kbd>classe</kbd> `FeedbackAggregateReq`

Requête permettant d’obtenir des scores agrégés par tranche temporelle et par dimension.

**Champs Pydantic :**

* `project_id`: `<class 'str'>`
* `after_ms`: `<class 'int'>`
* `before_ms`: `<class 'int'>`
* `time_bucket_seconds`: `int | None`
* `feedback_types`: `list[str]`
* `tags`: `list[str]`
* `rating_min`: `float | None`
* `rating_max`: `float | None`
* `monitor_ids`: `list[str]`
* `scorer_ids`: `list[str]`
* `span_agent_names`: `list[str]`
* `span_types`: `list[typing.Literal['agent_turn', 'agent_conversation']]`
* `group_by`: `list[typing.Literal['scorer_id', 'span_agent_name', 'span_agent_version', 'span_status_code']]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1618)

## <kbd>classe</kbd> `FeedbackAggregateRes`

Série temporelle creuse du feedback agrégé des scorers (les intervalles vides sont omis).

**Champs Pydantic :**

* `time_bucket_seconds`: `int | None`
* `after_ms`: `<class 'int'>`
* `before_ms`: `<class 'int'>`
* `buckets`: `list[FeedbackAggregateBucket]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1322)

## <kbd>classe</kbd> `FeedbackCreateBatchReq`

**Champs Pydantic :**

* `batch` : `list[FeedbackCreateReq]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1326)

## <kbd>classe</kbd> `FeedbackCreateBatchRes`

**Champs Pydantic :**

* `res` : `list[FeedbackCreateRes]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1181)

## <kbd>classe</kbd> `FeedbackCreateReq`

**Champs Pydantic :**

* `id`: `str | None`
* `project_id`: `<class 'str'>`
* `weave_ref`: `<class 'str'>`
* `creator`: `str | None`
* `feedback_type`: `<class 'str'>`
* `payload`: `dict[str, typing.Any]`
* `annotation_ref`: `str | None`
* `runnable_ref`: `str | None`
* `call_ref`: `str | None`
* `trigger_ref`: `str | None`
* `queue_id`: `str | None`
* `scorer_tags`: `list[str]`
* `scorer_tag_reasons`: `dict[str, str]`
* `scorer_tag_confidences`: `dict[str, float]`
* `scorer_ratings`: `dict[str, float]`
* `scorer_rating_reasons`: `dict[str, str]`
* `scorer_rating_confidences`: `dict[str, float]`
* `span_agent_name`: `<class 'str'>`
* `span_agent_version`: `<class 'str'>`
* `span_status_code`: `<class 'str'>`
* `wb_user_id`: `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1274)

## <kbd>classe</kbd> `FeedbackCreateRes`

**Champs Pydantic :**

* `id` : `<class 'str'>`
* `created_at` : `<class 'datetime.datetime'>`
* `wb_user_id` : `<class 'str'>`
* `payload` : `dict[str, typing.Any]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L78)

## <kbd>classe</kbd> `FeedbackDict`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1353)

## <kbd>classe</kbd> `FeedbackMetricSpec`

Spécification d’une métrique de charge utile de feedback à agréger.

**Champs Pydantic :**

* `json_path`: `<class 'str'>`
* `value_type`: `typing.Literal['numeric', 'boolean', 'categorical']`
* `aggregations`: `list[AggregationType]`
* `percentiles`: `list[float]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1637)

## <kbd>classe</kbd> `FeedbackPayloadPath`

Chemin découvert dans la charge utile du feedback, avec son type déduit.

**Champs Pydantic :**

* `json_path` : `<class 'str'>`
* `value_type` : `typing.Literal['numeric', 'boolean', 'categorical']`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1647)

## <kbd>classe</kbd> `FeedbackPayloadSchemaReq`

Requête de découverte du schéma de charge utile des feedbacks.

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `start` : `<class 'datetime.datetime'>`
* `end` : `datetime.datetime | None`
* `feedback_type` : `str | None`
* `trigger_ref` : `str | None`
* `sample_limit` : `<class 'int'>`

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1411)

### <kbd>méthode</kbd> `validate_date_range`

```python theme={"system"}
validate_date_range() → _FeedbackFilterBase
```

Garantit que les requêtes de feedback sont limitées à une plage de dates sûre.

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1664)

## <kbd>classe</kbd> `FeedbackPayloadSchemaRes`

Réponse contenant les chemins et les types découverts dans la charge utile des feedbacks.

**Champs Pydantic :**

* `paths`: `list[FeedbackPayloadPath]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1305)

## <kbd>classe</kbd> `FeedbackPurgeReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `query` : `<class 'weave.trace_server.interface.query.Query'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1310)

## <kbd>classe</kbd> `FeedbackPurgeRes`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1287)

## <kbd>classe</kbd> `FeedbackQueryReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `fields` : `list[str] | None`
* `query` : `weave.trace_server.interface.query.Query | None`
* `sort_by` : `list[weave.trace_server.common_interface.SortBy] | None`
* `limit` : `int | None`
* `offset` : `int | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1300)

## <kbd>classe</kbd> `FeedbackQueryRes`

**Champs Pydantic :**

* `result` : `list[dict[str, typing.Any]]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1314)

## <kbd>classe</kbd> `FeedbackReplaceReq`

**Champs Pydantic :**

* `id`: `str | None`
* `project_id`: `<class 'str'>`
* `weave_ref`: `<class 'str'>`
* `creator`: `str | None`
* `feedback_type`: `<class 'str'>`
* `payload`: `dict[str, typing.Any]`
* `annotation_ref`: `str | None`
* `runnable_ref`: `str | None`
* `call_ref`: `str | None`
* `trigger_ref`: `str | None`
* `queue_id`: `str | None`
* `scorer_tags`: `list[str]`
* `scorer_tag_reasons`: `dict[str, str]`
* `scorer_tag_confidences`: `dict[str, float]`
* `scorer_ratings`: `dict[str, float]`
* `scorer_rating_reasons`: `dict[str, str]`
* `scorer_rating_confidences`: `dict[str, float]`
* `span_agent_name`: `<class 'str'>`
* `span_agent_version`: `<class 'str'>`
* `span_status_code`: `<class 'str'>`
* `wb_user_id`: `str | None`
* `feedback_id`: `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1318)

## <kbd>classe</kbd> `FeedbackReplaceRes`

**Champs Pydantic :**

* `id` : `<class 'str'>`
* `created_at` : `<class 'datetime.datetime'>`
* `wb_user_id` : `<class 'str'>`
* `payload` : `dict[str, typing.Any]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1432)

## <kbd>classe</kbd> `FeedbackStatsReq`

Requête de statistiques de feedback agrégées par tranches temporelles.

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `start` : `<class 'datetime.datetime'>`
* `end` : `datetime.datetime | None`
* `feedback_type` : `str | None`
* `trigger_ref` : `str | None`
* `granularity` : `int | None`
* `timezone` : `<class 'str'>`
* `metrics` : `list[FeedbackMetricSpec]`

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1411)

### <kbd>méthode</kbd> `validate_date_range`

```python theme={"system"}
validate_date_range() → _FeedbackFilterBase
```

Garantit que les requêtes de feedback sont limitées à une plage de dates sûre.

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1448)

## <kbd>classe</kbd> `FeedbackStatsRes`

Réponse contenant des statistiques de feedback sous forme de séries temporelles.

**Champs Pydantic :**

* `start` : `<class 'datetime.datetime'>`
* `end` : `<class 'datetime.datetime'>`
* `granularity` : `<class 'int'>`
* `timezone` : `<class 'str'>`
* `buckets` : `list[dict[str, typing.Any]]`
* `window_stats` : `dict[str, dict[str, float | None]] | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1687)

## <kbd>classe</kbd> `FileContentReadReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `digest` : `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1696)

## <kbd>classe</kbd> `FileContentReadRes`

**Champs Pydantic :**

* `content` : `<class 'bytes'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1673)

## <kbd>classe</kbd> `FileCreateReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `name` : `<class 'str'>`
* `content` : `<class 'bytes'>`
* `expected_digest` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1683)

## <kbd>classe</kbd> `FileCreateRes`

**Champs Pydantic :**

* `digest`: `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1692)

## <kbd>classe</kbd> `FilesStatsReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1700)

## <kbd>classe</kbd> `FilesStatsRes`

**Champs Pydantic :**

* `total_size_bytes` : `<class 'int'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3716)

## <kbd>classe</kbd> `FullTraceServerInterface`

Interface complète de trace server prenant en charge à la fois les API V1 et les API Object.

Ce protocole représente une implémentation de trace server qui prend en charge l’ensemble des API, à savoir les anciens points de terminaison V1 et les points de terminaison Object plus récents. Utilisez ce type pour les implémentations qui doivent prendre en charge les deux versions de l’API.

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3454)

### <kbd>méthode</kbd> `agent_agents_query`

```python theme={"system"}
agent_agents_query(req: AgentsQueryReq) → AgentsQueryRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3466)

### <kbd>méthode</kbd> `agent_conversation_chat`

```python theme={"system"}
agent_conversation_chat(
    req: AgentConversationChatReq
) → AgentConversationChatRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3469)

### <kbd>méthode</kbd> `agent_conversation_spans`

```python theme={"system"}
agent_conversation_spans(
    req: AgentConversationSpansReq
) → AgentConversationSpansRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3451)

### <kbd>méthode</kbd> `agent_custom_attrs_schema`

```python theme={"system"}
agent_custom_attrs_schema(
    req: AgentCustomAttrsSchemaReq
) → AgentCustomAttrsSchemaRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3460)

### <kbd>méthode</kbd> `agent_search`

```python theme={"system"}
agent_search(req: AgentSearchReq) → AgentSearchRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3445)

### <kbd>méthode</kbd> `agent_spans_query`

```python theme={"system"}
agent_spans_query(req: AgentSpansQueryReq) → AgentSpansQueryRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3448)

### <kbd>méthode</kbd> `agent_spans_stats`

```python theme={"system"}
agent_spans_stats(req: AgentSpanStatsReq) → AgentSpanStatsRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3463)

### <kbd>méthode</kbd> `agent_traces_chat`

```python theme={"system"}
agent_traces_chat(req: AgentTraceChatReq) → AgentTraceChatRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3457)

### <kbd>méthode</kbd> `agent_versions_query`

```python theme={"system"}
agent_versions_query(req: AgentVersionsQueryReq) → AgentVersionsQueryRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3504)

### <kbd>méthode</kbd> `aliases_list`

```python theme={"system"}
aliases_list(req: AliasesListReq) → AliasesListRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3595)

### <kbd>méthode</kbd> `annotation_queue_add_calls`

```python theme={"system"}
annotation_queue_add_calls(
    req: AnnotationQueueAddCallsReq
) → AnnotationQueueAddCallsRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3575)

### <kbd>méthode</kbd> `annotation_queue_create`

```python theme={"system"}
annotation_queue_create(
    req: AnnotationQueueCreateReq
) → AnnotationQueueCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3587)

### <kbd>méthode</kbd> `annotation_queue_delete`

```python theme={"system"}
annotation_queue_delete(
    req: AnnotationQueueDeleteReq
) → AnnotationQueueDeleteRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3603)

### <kbd>méthode</kbd> `annotation_queue_items_query`

```python theme={"system"}
annotation_queue_items_query(
    req: AnnotationQueueItemsQueryReq
) → AnnotationQueueItemsQueryRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3583)

### <kbd>méthode</kbd> `annotation_queue_read`

```python theme={"system"}
annotation_queue_read(req: AnnotationQueueReadReq) → AnnotationQueueReadRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3591)

### <kbd>méthode</kbd> `annotation_queue_update`

```python theme={"system"}
annotation_queue_update(
    req: AnnotationQueueUpdateReq
) → AnnotationQueueUpdateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3579)

### <kbd>méthode</kbd> `annotation_queues_query_stream`

```python theme={"system"}
annotation_queues_query_stream(
    req: AnnotationQueuesQueryReq
) → Iterator[AnnotationQueueSchema]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3599)

### <kbd>méthode</kbd> `annotation_queues_stats`

```python theme={"system"}
annotation_queues_stats(
    req: AnnotationQueuesStatsReq
) → AnnotationQueuesStatsRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3607)

### <kbd>méthode</kbd> `annotator_queue_items_progress_update`

```python theme={"system"}
annotator_queue_items_progress_update(
    req: AnnotatorQueueItemsProgressUpdateReq
) → AnnotatorQueueItemsProgressUpdateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3475)

### <kbd>méthode</kbd> `call_end`

```python theme={"system"}
call_end(req: CallEndReq) → CallEndRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3648)

### <kbd>méthode</kbd> `call_end_v2`

```python theme={"system"}
call_end_v2(req: CallEndV2Req) → CallEndV2Res
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3476)

### <kbd>méthode</kbd> `call_read`

```python theme={"system"}
call_read(req: CallReadReq) → CallReadRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3474)

### <kbd>méthode</kbd> `call_start`

```python theme={"system"}
call_start(req: CallStartReq) → CallStartRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3485)

### <kbd>méthode</kbd> `call_start_batch`

```python theme={"system"}
call_start_batch(req: CallCreateBatchReq) → CallCreateBatchRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3647)

### <kbd>méthode</kbd> `call_start_v2`

```python theme={"system"}
call_start_v2(req: CallStartV2Req) → CallStartV2Res
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3481)

### <kbd>méthode</kbd> `call_stats`

```python theme={"system"}
call_stats(req: 'CallStatsReq') → CallStatsRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3484)

### <kbd>méthode</kbd> `call_update`

```python theme={"system"}
call_update(req: CallUpdateReq) → CallUpdateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3646)

### <kbd>méthode</kbd> `calls_complete`

```python theme={"system"}
calls_complete(req: CallsUpsertCompleteReq) → CallsUpsertCompleteRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3479)

### <kbd>méthode</kbd> `calls_delete`

```python theme={"system"}
calls_delete(req: CallsDeleteReq) → CallsDeleteRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3477)

### <kbd>méthode</kbd> `calls_query`

```python theme={"system"}
calls_query(req: CallsQueryReq) → CallsQueryRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3480)

### <kbd>méthode</kbd> `calls_query_stats`

```python theme={"system"}
calls_query_stats(req: CallsQueryStatsReq) → CallsQueryStatsRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3478)

### <kbd>méthode</kbd> `calls_query_stream`

```python theme={"system"}
calls_query_stream(req: CallsQueryReq) → Iterator[CallSchema]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3634)

### <kbd>méthode</kbd> `calls_score`

```python theme={"system"}
calls_score(req: CallsScoreReq) → CallsScoreRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3483)

### <kbd>méthode</kbd> `calls_usage`

```python theme={"system"}
calls_usage(req: 'CallsUsageReq') → CallsUsageRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3544)

### <kbd>méthode</kbd> `completions_create`

```python theme={"system"}
completions_create(req: CompletionsCreateReq) → CompletionsCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3550)

### <kbd>méthode</kbd> `completions_create_stream`

```python theme={"system"}
completions_create_stream(req: CompletionsCreateReq) → Iterator[dict[str, Any]]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3488)

### <kbd>méthode</kbd> `cost_create`

```python theme={"system"}
cost_create(req: CostCreateReq) → CostCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3490)

### <kbd>méthode</kbd> `cost_purge`

```python theme={"system"}
cost_purge(req: CostPurgeReq) → CostPurgeRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3489)

### <kbd>méthode</kbd> `cost_query`

```python theme={"system"}
cost_query(req: CostQueryReq) → CostQueryRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3657)

### <kbd>méthode</kbd> `dataset_create`

```python theme={"system"}
dataset_create(req: DatasetCreateReq) → DatasetCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3660)

### <kbd>méthode</kbd> `dataset_delete`

```python theme={"system"}
dataset_delete(req: DatasetDeleteReq) → DatasetDeleteRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3659)

### <kbd>méthode</kbd> `dataset_list`

```python theme={"system"}
dataset_list(req: DatasetListReq) → Iterator[DatasetReadRes]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3658)

### <kbd>méthode</kbd> `dataset_read`

```python theme={"system"}
dataset_read(req: DatasetReadReq) → DatasetReadRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3612)

### <kbd>méthode</kbd> `dataset_sources_link`

```python theme={"system"}
dataset_sources_link(req: DatasetSourcesLinkReq) → DatasetSourcesLinkRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3616)

### <kbd>méthode</kbd> `dataset_sources_link_delete`

```python theme={"system"}
dataset_sources_link_delete(
    req: DatasetSourcesLinkDeleteReq
) → DatasetSourcesLinkDeleteRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3620)

### <kbd>méthode</kbd> `dataset_sources_query`

```python theme={"system"}
dataset_sources_query(req: DatasetSourcesQueryReq) → DatasetSourcesQueryRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3713)

### <kbd>méthode</kbd> `eval_results_query`

```python theme={"system"}
eval_results_query(req: EvalResultsQueryReq) → EvalResultsQueryRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3629)

### <kbd>méthode</kbd> `evaluate_model`

```python theme={"system"}
evaluate_model(req: EvaluateModelReq) → EvaluateModelRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3669)

### <kbd>méthode</kbd> `evaluation_create`

```python theme={"system"}
evaluation_create(req: EvaluationCreateReq) → EvaluationCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3674)

### <kbd>méthode</kbd> `evaluation_delete`

```python theme={"system"}
evaluation_delete(req: EvaluationDeleteReq) → EvaluationDeleteRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3671)

### <kbd>méthode</kbd> `evaluation_list`

```python theme={"system"}
evaluation_list(req: EvaluationListReq) → Iterator[EvaluationReadRes]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3670)

### <kbd>méthode</kbd> `evaluation_read`

```python theme={"system"}
evaluation_read(req: EvaluationReadReq) → EvaluationReadRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3683)

### <kbd>méthode</kbd> `evaluation_run_create`

```python theme={"system"}
evaluation_run_create(req: EvaluationRunCreateReq) → EvaluationRunCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3692)

### <kbd>méthode</kbd> `evaluation_run_delete`

```python theme={"system"}
evaluation_run_delete(req: EvaluationRunDeleteReq) → EvaluationRunDeleteRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3695)

### <kbd>méthode</kbd> `evaluation_run_finish`

```python theme={"system"}
evaluation_run_finish(req: EvaluationRunFinishReq) → EvaluationRunFinishRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3689)

### <kbd>méthode</kbd> `evaluation_run_list`

```python theme={"system"}
evaluation_run_list(req: EvaluationRunListReq) → Iterator[EvaluationRunReadRes]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3686)

### <kbd>méthode</kbd> `evaluation_run_read`

```python theme={"system"}
evaluation_run_read(req: EvaluationRunReadReq) → EvaluationRunReadRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3630)

### <kbd>méthode</kbd> `evaluation_status`

```python theme={"system"}
evaluation_status(req: EvaluationStatusReq) → EvaluationStatusRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3538)

### <kbd>méthode</kbd> `feedback_aggregate`

```python theme={"system"}
feedback_aggregate(req: FeedbackAggregateReq) → FeedbackAggregateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3529)

### <kbd>méthode</kbd> `feedback_create`

```python theme={"system"}
feedback_create(req: FeedbackCreateReq) → FeedbackCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3530)

### <kbd>méthode</kbd> `feedback_create_batch`

```python theme={"system"}
feedback_create_batch(req: FeedbackCreateBatchReq) → FeedbackCreateBatchRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3539)

### <kbd>méthode</kbd> `feedback_payload_schema`

```python theme={"system"}
feedback_payload_schema(
    req: FeedbackPayloadSchemaReq
) → FeedbackPayloadSchemaRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3535)

### <kbd>méthode</kbd> `feedback_purge`

```python theme={"system"}
feedback_purge(req: FeedbackPurgeReq) → FeedbackPurgeRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3534)

### <kbd>méthode</kbd> `feedback_query`

```python theme={"system"}
feedback_query(req: FeedbackQueryReq) → FeedbackQueryRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3536)

### <kbd>méthode</kbd> `feedback_replace`

```python theme={"system"}
feedback_replace(req: FeedbackReplaceReq) → FeedbackReplaceRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3537)

### <kbd>méthode</kbd> `feedback_stats`

```python theme={"system"}
feedback_stats(req: FeedbackStatsReq) → FeedbackStatsRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3525)

### <kbd>méthode</kbd> `file_content_read`

```python theme={"system"}
file_content_read(req: FileContentReadReq) → FileContentReadRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3524)

### <kbd>méthode</kbd> `file_create`

```python theme={"system"}
file_create(req: FileCreateReq) → FileCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3526)

### <kbd>méthode</kbd> `files_stats`

```python theme={"system"}
files_stats(req: FilesStatsReq) → FilesStatsRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3442)

### <kbd>méthode</kbd> `genai_otel_export`

```python theme={"system"}
genai_otel_export(req: GenAIOTelExportReq) → GenAIOTelExportRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3555)

### <kbd>méthode</kbd> `image_create`

```python theme={"system"}
image_create(req: ImageGenerationCreateReq) → ImageGenerationCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3677)

### <kbd>méthode</kbd> `model_create`

```python theme={"system"}
model_create(req: ModelCreateReq) → ModelCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3680)

### <kbd>méthode</kbd> `model_delete`

```python theme={"system"}
model_delete(req: ModelDeleteReq) → ModelDeleteRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3679)

### <kbd>méthode</kbd> `model_list`

```python theme={"system"}
model_list(req: ModelListReq) → Iterator[ModelReadRes]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3678)

### <kbd>méthode</kbd> `model_read`

```python theme={"system"}
model_read(req: ModelReadReq) → ModelReadRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3499)

### <kbd>méthode</kbd> `obj_add_tags`

```python theme={"system"}
obj_add_tags(req: ObjAddTagsReq) → ObjAddTagsRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3493)

### <kbd>méthode</kbd> `obj_create`

```python theme={"system"}
obj_create(req: ObjCreateReq) → ObjCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3496)

### <kbd>méthode</kbd> `obj_delete`

```python theme={"system"}
obj_delete(req: ObjDeleteReq) → ObjDeleteRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3494)

### <kbd>méthode</kbd> `obj_read`

```python theme={"system"}
obj_read(req: ObjReadReq) → ObjReadRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3502)

### <kbd>méthode</kbd> `obj_remove_aliases`

```python theme={"system"}
obj_remove_aliases(req: ObjRemoveAliasesReq) → ObjRemoveAliasesRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3500)

### <kbd>méthode</kbd> `obj_remove_tags`

```python theme={"system"}
obj_remove_tags(req: ObjRemoveTagsReq) → ObjRemoveTagsRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3501)

### <kbd>méthode</kbd> `obj_set_aliases`

```python theme={"system"}
obj_set_aliases(req: ObjSetAliasesReq) → ObjSetAliasesRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3495)

### <kbd>méthode</kbd> `objs_query`

```python theme={"system"}
objs_query(req: ObjQueryReq) → ObjQueryRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3651)

### <kbd>méthode</kbd> `op_create`

```python theme={"system"}
op_create(req: OpCreateReq) → OpCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3654)

### <kbd>méthode</kbd> `op_delete`

```python theme={"system"}
op_delete(req: OpDeleteReq) → OpDeleteRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3653)

### <kbd>méthode</kbd> `op_list`

```python theme={"system"}
op_list(req: OpListReq) → Iterator[OpReadRes]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3652)

### <kbd>méthode</kbd> `op_read`

```python theme={"system"}
op_read(req: OpReadReq) → OpReadRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3439)

### <kbd>méthode</kbd> `otel_export`

```python theme={"system"}
otel_export(req: OTelExportReq) → OTelExportRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3700)

### <kbd>méthode</kbd> `prediction_create`

```python theme={"system"}
prediction_create(req: PredictionCreateReq) → PredictionCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3705)

### <kbd>méthode</kbd> `prediction_delete`

```python theme={"system"}
prediction_delete(req: PredictionDeleteReq) → PredictionDeleteRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3706)

### <kbd>méthode</kbd> `prediction_finish`

```python theme={"system"}
prediction_finish(req: PredictionFinishReq) → PredictionFinishRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3702)

### <kbd>méthode</kbd> `prediction_list`

```python theme={"system"}
prediction_list(req: PredictionListReq) → Iterator[PredictionReadRes]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3701)

### <kbd>méthode</kbd> `prediction_read`

```python theme={"system"}
prediction_read(req: PredictionReadReq) → PredictionReadRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3560)

### <kbd>méthode</kbd> `project_stats`

```python theme={"system"}
project_stats(req: ProjectStatsReq) → ProjectStatsRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3563)

### <kbd>méthode</kbd> `project_ttl_settings_read`

```python theme={"system"}
project_ttl_settings_read(
    req: ProjectTTLSettingsReadReq
) → ProjectTTLSettingsReadRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3567)

### <kbd>méthode</kbd> `project_ttl_settings_update`

```python theme={"system"}
project_ttl_settings_update(
    req: ProjectTTLSettingsUpdateReq
) → ProjectTTLSettingsUpdateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3521)

### <kbd>méthode</kbd> `refs_read_batch`

```python theme={"system"}
refs_read_batch(req: RefsReadBatchReq) → RefsReadBatchRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3631)

### <kbd>méthode</kbd> `rescore`

```python theme={"system"}
rescore(req: RescoreReq) → RescoreRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3709)

### <kbd>méthode</kbd> `score_create`

```python theme={"system"}
score_create(req: ScoreCreateReq) → ScoreCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3712)

### <kbd>méthode</kbd> `score_delete`

```python theme={"system"}
score_delete(req: ScoreDeleteReq) → ScoreDeleteRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3711)

### <kbd>méthode</kbd> `score_list`

```python theme={"system"}
score_list(req: ScoreListReq) → Iterator[ScoreReadRes]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3710)

### <kbd>méthode</kbd> `score_read`

```python theme={"system"}
score_read(req: ScoreReadReq) → ScoreReadRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3663)

### <kbd>méthode</kbd> `scorer_create`

```python theme={"system"}
scorer_create(req: ScorerCreateReq) → ScorerCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3666)

### <kbd>méthode</kbd> `scorer_delete`

```python theme={"system"}
scorer_delete(req: ScorerDeleteReq) → ScorerDeleteRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3665)

### <kbd>méthode</kbd> `scorer_list`

```python theme={"system"}
scorer_list(req: ScorerListReq) → Iterator[ScorerReadRes]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3664)

### <kbd>méthode</kbd> `scorer_read`

```python theme={"system"}
scorer_read(req: ScorerReadReq) → ScorerReadRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3624)

### <kbd>méthode</kbd> `source_datasets_query`

```python theme={"system"}
source_datasets_query(req: SourceDatasetsQueryReq) → SourceDatasetsQueryRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3507)

### <kbd>méthode</kbd> `table_create`

```python theme={"system"}
table_create(req: TableCreateReq) → TableCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3508)

### <kbd>méthode</kbd> `table_create_from_digests`

```python theme={"system"}
table_create_from_digests(
    req: TableCreateFromDigestsReq
) → TableCreateFromDigestsRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3513)

### <kbd>méthode</kbd> `table_query`

```python theme={"system"}
table_query(req: TableQueryReq) → TableQueryRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3515)

### <kbd>méthode</kbd> `table_query_stats`

```python theme={"system"}
table_query_stats(req: TableQueryStatsReq) → TableQueryStatsRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3516)

### <kbd>méthode</kbd> `table_query_stats_batch`

```python theme={"system"}
table_query_stats_batch(req: TableQueryStatsBatchReq) → TableQueryStatsBatchRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3514)

### <kbd>méthode</kbd> `table_query_stream`

```python theme={"system"}
table_query_stream(req: TableQueryReq) → Iterator[TableRowSchema]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3512)

### <kbd>méthode</kbd> `table_update`

```python theme={"system"}
table_update(req: TableUpdateReq) → TableUpdateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3503)

### <kbd>méthode</kbd> `tags_list`

```python theme={"system"}
tags_list(req: TagsListReq) → TagsListRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3572)

### <kbd>méthode</kbd> `threads_query_stream`

```python theme={"system"}
threads_query_stream(req: ThreadsQueryReq) → Iterator[ThreadSchema]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3482)

### <kbd>méthode</kbd> `trace_usage`

```python theme={"system"}
trace_usage(req: 'TraceUsageReq') → TraceUsageRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3024)

## <kbd>classe</kbd> `GenAISpanRef`

**Champs Pydantic :**

* `trace_id` : `<class 'str'>`
* `span_id` : `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L582)

## <kbd>classe</kbd> `ImageGenerationCreateReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `inputs` : `<class 'ImageGenerationRequestInputs'>`
* `wb_user_id` : `str | None`
* `track_llm_call` : `bool | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L592)

## <kbd>classe</kbd> `ImageGenerationCreateRes`

**Champs Pydantic :**

* `response` : `dict[str, typing.Any]`
* `weave_call_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L576)

## <kbd>classe</kbd> `ImageGenerationRequestInputs`

**Champs Pydantic :**

* `model` : `<class 'str'>`
* `prompt` : `<class 'str'>`
* `n` : `int | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3862)

## <kbd>classe</kbd> `LLMAggregatedUsage`

Métriques d’utilisation agrégées pour un LLM donné.

**Champs Pydantic :**

* `requests` : `<class 'int'>`
* `prompt_tokens` : `<class 'int'>`
* `completion_tokens` : `<class 'int'>`
* `total_tokens` : `<class 'int'>`
* `cache_read_input_tokens` : `<class 'int'>`
* `cache_creation_input_tokens` : `<class 'int'>`
* `prompt_tokens_total_cost` : `float | None`
* `completion_tokens_total_cost` : `float | None`
* `cache_read_input_tokens_total_cost` : `float | None`
* `cache_creation_input_tokens_total_cost` : `float | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L63)

## <kbd>classe</kbd> `LLMCostSchema`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L52)

## <kbd>classe</kbd> `LLMUsageSchema`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2816)

## <kbd>classe</kbd> `ModelCreateBody`

**Champs Pydantic :**

* `name` : `<class 'str'>`
* `description` : `str | None`
* `source_code` : `<class 'str'>`
* `attributes` : `dict[str, typing.Any] | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2835)

## <kbd>classe</kbd> `ModelCreateReq`

**Champs Pydantic :**

* `name` : `<class 'str'>`
* `description` : `str | None`
* `source_code` : `<class 'str'>`
* `attributes` : `dict[str, typing.Any] | None`
* `project_id` : `<class 'str'>`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2842)

## <kbd>classe</kbd> `ModelCreateRes`

**Champs Pydantic :**

* `digest` : `<class 'str'>`
* `object_id` : `<class 'str'>`
* `version_index` : `<class 'int'>`
* `model_ref` : `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2888)

## <kbd>classe</kbd> `ModelDeleteReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `object_id` : `<class 'str'>`
* `digests` : `list[str] | None`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2900)

## <kbd>classe</kbd> `ModelDeleteRes`

**Champs Pydantic :**

* `num_deleted` : `<class 'int'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2878)

## <kbd>classe</kbd> `ModelListReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `limit` : `int | None`
* `offset` : `int | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2854)

## <kbd>classe</kbd> `ModelReadReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `object_id` : `<class 'str'>`
* `digest` : `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2862)

## <kbd>classe</kbd> `ModelReadRes`

**Champs Pydantic :**

* `object_id` : `<class 'str'>`
* `digest` : `<class 'str'>`
* `version_index` : `<class 'int'>`
* `created_at` : `<class 'datetime.datetime'>`
* `name` : `<class 'str'>`
* `description` : `str | None`
* `source_code` : `<class 'str'>`
* `attributes` : `dict[str, typing.Any] | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L374)

## <kbd>classe</kbd> `OTelExportReq`

**Champs Pydantic :**

* `processed_spans` : `list[ProcessedResourceSpans]`
* `project_id` : `<class 'str'>`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L387)

## <kbd>classe</kbd> `OTelExportRes`

**Champs Pydantic :**

* `partial_success` : `ExportTracePartialSuccess | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L847)

## <kbd>classe</kbd> `ObjAddTagsReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `object_id` : `<class 'str'>`
* `digest` : `<class 'str'>`
* `tags` : `list[str]`
* `wb_user_id` : `str | None`

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L854)

### <kbd>méthode</kbd> `validate_tags`

```python theme={"system"}
validate_tags() → ObjAddTagsReq
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L864)

## <kbd>classe</kbd> `ObjAddTagsRes`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L720)

## <kbd>classe</kbd> `ObjCreateReq`

**Champs Pydantic :**

* `obj` : `<class 'ObjSchemaForInsert'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L724)

## <kbd>classe</kbd> `ObjCreateRes`

**Champs Pydantic :**

* `digest` : `<class 'str'>`
* `object_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L829)

## <kbd>classe</kbd> `ObjDeleteReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `object_id` : `<class 'str'>`
* `digests` : `list[str] | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L838)

## <kbd>classe</kbd> `ObjDeleteRes`

**Champs Pydantic :**

* `num_deleted` : `<class 'int'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L790)

## <kbd>classe</kbd> `ObjQueryReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `filter` : `ObjectVersionFilter | None`
* `limit` : `int | None`
* `offset` : `int | None`
* `sort_by` : `list[weave.trace_server.common_interface.SortBy] | None`
* `metadata_only` : `bool | None`
* `include_storage_size` : `bool | None`
* `include_tags_and_aliases` : `bool | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L935)

## <kbd>classe</kbd> `ObjQueryRes`

**Champs Pydantic :**

* `objs` : `list[ObjSchema]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L729)

## <kbd>classe</kbd> `ObjReadReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `object_id` : `<class 'str'>`
* `digest` : `<class 'str'>`
* `metadata_only` : `bool | None`
* `include_tags_and_aliases` : `bool | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L745)

## <kbd>classe</kbd> `ObjReadRes`

**Champs Pydantic :**

* `obj`: `<class 'ObjSchema'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L899)

## <kbd>classe</kbd> `ObjRemoveAliasesReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `object_id` : `<class 'str'>`
* `aliases` : `list[str]`
* `wb_user_id` : `str | None`

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L905)

### <kbd>méthode</kbd> `validate_aliases`

```python theme={"system"}
validate_aliases() → ObjRemoveAliasesReq
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L913)

## <kbd>classe</kbd> `ObjRemoveAliasesRes`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L868)

## <kbd>classe</kbd> `ObjRemoveTagsReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `object_id` : `<class 'str'>`
* `digest` : `<class 'str'>`
* `tags` : `list[str]`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L876)

## <kbd>classe</kbd> `ObjRemoveTagsRes`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L315)

## <kbd>classe</kbd> `ObjSchema`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `object_id` : `<class 'str'>`
* `created_at` : `<class 'datetime.datetime'>`
* `deleted_at` : `datetime.datetime | None`
* `digest` : `<class 'str'>`
* `version_index` : `<class 'int'>`
* `is_latest` : `<class 'int'>`
* `kind` : `<class 'str'>`
* `base_object_class` : `str | None`
* `leaf_object_class` : `str | None`
* `val` : `typing.Any`
* `wb_user_id` : `str | None`
* `size_bytes` : `int | None`
* `tags` : `list[str] | None`
* `aliases` : `list[str] | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L334)

## <kbd>classe</kbd> `ObjSchemaForInsert`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `object_id` : `<class 'str'>`
* `val` : `typing.Any`
* `builtin_object_class` : `str | None`
* `set_base_object_class` : `str | None`
* `expected_digest` : `str | None`
* `wb_user_id` : `str | None`

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L351)

### <kbd>méthode</kbd> `model_post_init`

```python theme={"system"}
model_post_init(context: Any) → None
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L880)

## <kbd>classe</kbd> `ObjSetAliasesReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `object_id` : `<class 'str'>`
* `digest` : `<class 'str'>`
* `aliases` : `list[str]`
* `wb_user_id` : `str | None`

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L887)

### <kbd>méthode</kbd> `validate_aliases`

```python theme={"system"}
validate_aliases() → ObjSetAliasesReq
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L895)

## <kbd>classe</kbd> `ObjSetAliasesRes`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3637)

## <kbd>classe</kbd> `ObjectInterface`

Points de terminaison d’API d’objets pour le Trace Server.

Ce protocole regroupe des API de gestion des objets qui fournissent des interfaces plus claires et plus conformes à REST. Les implémentations doivent prendre en charge à la fois ce protocole et TraceServerInterface afin de préserver la rétrocompatibilité.

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3648)

### <kbd>méthode</kbd> `call_end_v2`

```python theme={"system"}
call_end_v2(req: CallEndV2Req) → CallEndV2Res
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3647)

### <kbd>méthode</kbd> `call_start_v2`

```python theme={"system"}
call_start_v2(req: CallStartV2Req) → CallStartV2Res
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3646)

### <kbd>méthode</kbd> `calls_complete`

```python theme={"system"}
calls_complete(req: CallsUpsertCompleteReq) → CallsUpsertCompleteRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3657)

### <kbd>méthode</kbd> `dataset_create`

```python theme={"system"}
dataset_create(req: DatasetCreateReq) → DatasetCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3660)

### <kbd>méthode</kbd> `dataset_delete`

```python theme={"system"}
dataset_delete(req: DatasetDeleteReq) → DatasetDeleteRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3659)

### <kbd>méthode</kbd> `dataset_list`

```python theme={"system"}
dataset_list(req: DatasetListReq) → Iterator[DatasetReadRes]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3658)

### <kbd>méthode</kbd> `dataset_read`

```python theme={"system"}
dataset_read(req: DatasetReadReq) → DatasetReadRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3713)

### <kbd>méthode</kbd> `eval_results_query`

```python theme={"system"}
eval_results_query(req: EvalResultsQueryReq) → EvalResultsQueryRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3669)

### <kbd>méthode</kbd> `evaluation_create`

```python theme={"system"}
evaluation_create(req: EvaluationCreateReq) → EvaluationCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3674)

### <kbd>méthode</kbd> `evaluation_delete`

```python theme={"system"}
evaluation_delete(req: EvaluationDeleteReq) → EvaluationDeleteRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3671)

### <kbd>méthode</kbd> `evaluation_list`

```python theme={"system"}
evaluation_list(req: EvaluationListReq) → Iterator[EvaluationReadRes]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3670)

### <kbd>méthode</kbd> `evaluation_read`

```python theme={"system"}
evaluation_read(req: EvaluationReadReq) → EvaluationReadRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3683)

### <kbd>méthode</kbd> `evaluation_run_create`

```python theme={"system"}
evaluation_run_create(req: EvaluationRunCreateReq) → EvaluationRunCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3692)

### <kbd>méthode</kbd> `evaluation_run_delete`

```python theme={"system"}
evaluation_run_delete(req: EvaluationRunDeleteReq) → EvaluationRunDeleteRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3695)

### <kbd>méthode</kbd> `evaluation_run_finish`

```python theme={"system"}
evaluation_run_finish(req: EvaluationRunFinishReq) → EvaluationRunFinishRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3689)

### <kbd>méthode</kbd> `evaluation_run_list`

```python theme={"system"}
evaluation_run_list(req: EvaluationRunListReq) → Iterator[EvaluationRunReadRes]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3686)

### <kbd>méthode</kbd> `evaluation_run_read`

```python theme={"system"}
evaluation_run_read(req: EvaluationRunReadReq) → EvaluationRunReadRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3677)

### <kbd>méthode</kbd> `model_create`

```python theme={"system"}
model_create(req: ModelCreateReq) → ModelCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3680)

### <kbd>méthode</kbd> `model_delete`

```python theme={"system"}
model_delete(req: ModelDeleteReq) → ModelDeleteRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3679)

### <kbd>méthode</kbd> `model_list`

```python theme={"system"}
model_list(req: ModelListReq) → Iterator[ModelReadRes]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3678)

### <kbd>méthode</kbd> `model_read`

```python theme={"system"}
model_read(req: ModelReadReq) → ModelReadRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3651)

### <kbd>méthode</kbd> `op_create`

```python theme={"system"}
op_create(req: OpCreateReq) → OpCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3654)

### <kbd>méthode</kbd> `op_delete`

```python theme={"system"}
op_delete(req: OpDeleteReq) → OpDeleteRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3653)

### <kbd>méthode</kbd> `op_list`

```python theme={"system"}
op_list(req: OpListReq) → Iterator[OpReadRes]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3652)

### <kbd>méthode</kbd> `op_read`

```python theme={"system"}
op_read(req: OpReadReq) → OpReadRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3700)

### <kbd>méthode</kbd> `prediction_create`

```python theme={"system"}
prediction_create(req: PredictionCreateReq) → PredictionCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3705)

### <kbd>méthode</kbd> `prediction_delete`

```python theme={"system"}
prediction_delete(req: PredictionDeleteReq) → PredictionDeleteRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3706)

### <kbd>méthode</kbd> `prediction_finish`

```python theme={"system"}
prediction_finish(req: PredictionFinishReq) → PredictionFinishRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3702)

### <kbd>méthode</kbd> `prediction_list`

```python theme={"system"}
prediction_list(req: PredictionListReq) → Iterator[PredictionReadRes]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3701)

### <kbd>méthode</kbd> `prediction_read`

```python theme={"system"}
prediction_read(req: PredictionReadReq) → PredictionReadRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3709)

### <kbd>méthode</kbd> `score_create`

```python theme={"system"}
score_create(req: ScoreCreateReq) → ScoreCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3712)

### <kbd>méthode</kbd> `score_delete`

```python theme={"system"}
score_delete(req: ScoreDeleteReq) → ScoreDeleteRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3711)

### <kbd>méthode</kbd> `score_list`

```python theme={"system"}
score_list(req: ScoreListReq) → Iterator[ScoreReadRes]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3710)

### <kbd>méthode</kbd> `score_read`

```python theme={"system"}
score_read(req: ScoreReadReq) → ScoreReadRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3663)

### <kbd>méthode</kbd> `scorer_create`

```python theme={"system"}
scorer_create(req: ScorerCreateReq) → ScorerCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3666)

### <kbd>méthode</kbd> `scorer_delete`

```python theme={"system"}
scorer_delete(req: ScorerDeleteReq) → ScorerDeleteRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3665)

### <kbd>méthode</kbd> `scorer_list`

```python theme={"system"}
scorer_list(req: ScorerListReq) → Iterator[ScorerReadRes]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3664)

### <kbd>méthode</kbd> `scorer_read`

```python theme={"system"}
scorer_read(req: ScorerReadReq) → ScorerReadRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L749)

## <kbd>classe</kbd> `ObjectVersionFilter`

**Champs Pydantic :**

* `base_object_classes` : `list[str] | None`
* `exclude_base_object_classes` : `list[str] | None`
* `leaf_object_classes` : `list[str] | None`
* `object_ids` : `list[str] | None`
* `is_op` : `bool | None`
* `latest_only` : `bool | None`
* `tags` : `list[str] | None`
* `aliases` : `list[str] | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2460)

## <kbd>classe</kbd> `OpCreateBody`

Corps de requête permettant de créer un objet Op via l’API REST.

Ce modèle exclut project\_id, car cette valeur est fournie par le chemin de l’URL dans les points de terminaison RESTful.

**Champs Pydantic :**

* `name`: `str | None`
* `source_code`: `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2475)

## <kbd>classe</kbd> `OpCreateReq`

Modèle de requête pour créer un objet Op.

Étend OpCreateBody en y ajoutant project\_id pour l’utilisation interne de l’API.

**Champs Pydantic :**

* `name` : `str | None`
* `source_code` : `str | None`
* `project_id` : `<class 'str'>`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2487)

## <kbd>classe</kbd> `OpCreateRes`

Modèle de réponse pour la création d’un objet op.

**Champs Pydantic :**

* `digest` : `<class 'str'>`
* `object_id` : `<class 'str'>`
* `version_index` : `<class 'int'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2528)

## <kbd>classe</kbd> `OpDeleteReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `object_id` : `<class 'str'>`
* `digests` : `list[str] | None`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2540)

## <kbd>classe</kbd> `OpDeleteRes`

**Champs Pydantic :**

* `num_deleted` : `<class 'int'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2517)

## <kbd>classe</kbd> `OpListReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `limit` : `int | None`
* `offset` : `int | None`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2495)

## <kbd>classe</kbd> `OpReadReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `object_id` : `<class 'str'>`
* `digest` : `<class 'str'>`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2504)

## <kbd>classe</kbd> `OpReadRes`

Modèle de réponse pour la lecture d’un objet Op.

Le champ `code` contient le code source de l’op.

**Champs Pydantic :**

* `object_id`: `<class 'str'>`
* `digest`: `<class 'str'>`
* `version_index`: `<class 'int'>`
* `created_at`: `<class 'datetime.datetime'>`
* `code`: `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3029)

## <kbd>classe</kbd> `PredictionCreateBody`

Corps de requête permettant de créer une prédiction via l’API REST.

Ce modèle exclut `project_id`, car cette valeur provient du chemin de l’URL dans les points de terminaison RESTful.

**Champs Pydantic :**

* `model`: `<class 'str'>`
* `inputs`: `dict[str, typing.Any]`
* `output`: `typing.Any`
* `evaluation_run_id`: `str | None`
* `genai_span_ref`: `list[GenAISpanRef] | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3048)

## <kbd>classe</kbd> `PredictionCreateReq`

Modèle de requête permettant de créer une prédiction.

Étend PredictionCreateBody en ajoutant project\_id pour un usage interne de l’API.

**Champs Pydantic :**

* `model`: `<class 'str'>`
* `inputs`: `dict[str, typing.Any]`
* `output`: `typing.Any`
* `evaluation_run_id`: `str | None`
* `genai_span_ref`: `list[GenAISpanRef] | None`
* `project_id`: `<class 'str'>`
* `wb_user_id`: `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3060)

## <kbd>classe</kbd> `PredictionCreateRes`

**Champs Pydantic :**

* `prediction_id` : `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3104)

## <kbd>classe</kbd> `PredictionDeleteReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `prediction_ids` : `list[str]`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3112)

## <kbd>classe</kbd> `PredictionDeleteRes`

**Champs Pydantic :**

* `num_deleted`: `<class 'int'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3116)

## <kbd>classe</kbd> `PredictionFinishReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `prediction_id` : `<class 'str'>`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3124)

## <kbd>classe</kbd> `PredictionFinishRes`

**Champs Pydantic :**

* `success` : `<class 'bool'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3083)

## <kbd>classe</kbd> `PredictionListReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `evaluation_run_id` : `str | None`
* `limit` : `int | None`
* `offset` : `int | None`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3100)

## <kbd>classe</kbd> `PredictionListRes`

**Champs Pydantic :**

* `predictions` : `list[PredictionReadRes]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3064)

## <kbd>classe</kbd> `PredictionReadReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `prediction_id` : `<class 'str'>`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3072)

## <kbd>classe</kbd> `PredictionReadRes`

**Champs Pydantic :**

* `prediction_id` : `<class 'str'>`
* `model` : `<class 'str'>`
* `inputs` : `dict[str, typing.Any]`
* `output` : `typing.Any`
* `evaluation_run_id` : `str | None`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L366)

## <kbd>classe</kbd> `ProcessedResourceSpans`

**Champs Pydantic :**

* `entity` : `<class 'str'>`
* `project` : `<class 'str'>`
* `run_id` : `str | None`
* `resource_spans` : `<class 'opentelemetry.proto.trace.v1.trace_pb2.ResourceSpans'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1788)

## <kbd>classe</kbd> `ProjectStatsReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `include_trace_storage_size` : `bool | None`
* `include_object_storage_size` : `bool | None`
* `include_table_storage_size` : `bool | None`
* `include_file_storage_size` : `bool | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1796)

## <kbd>classe</kbd> `ProjectStatsRes`

**Champs Pydantic :**

* `trace_storage_size_bytes` : `<class 'int'>`
* `objects_storage_size_bytes` : `<class 'int'>`
* `tables_storage_size_bytes` : `<class 'int'>`
* `files_storage_size_bytes` : `<class 'int'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1807)

## <kbd>classe</kbd> `ProjectTTLSettingsReadReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1811)

## <kbd>classe</kbd> `ProjectTTLSettingsReadRes`

**Champs Pydantic :**

* `retention_days` : `int | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1817)

## <kbd>classe</kbd> `ProjectTTLSettingsUpdateReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `retention_days` : `int | None`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1825)

## <kbd>classe</kbd> `ProjectTTLSettingsUpdateRes`

**Champs Pydantic :**

* `retention_days`: `int | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1173)

## <kbd>classe</kbd> `RefsReadBatchReq`

**Champs Pydantic :**

* `refs` : `list[str]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1177)

## <kbd>classe</kbd> `RefsReadBatchRes`

**Champs Pydantic :**

* `vals` : `list[typing.Any]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2373)

## <kbd>classe</kbd> `RescoreBody`

Corps de requête pour recalculer les scores via l’API REST (exclut les champs définis par le serveur).

**Champs Pydantic :**

* `source_evaluation_run_id` : `<class 'str'>`
* `scorer_refs` : `list[str]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2386)

## <kbd>classe</kbd> `RescoreReq`

Requête complète de réévaluation (rescore), y compris les champs définis côté serveur.

**Champs Pydantic :**

* `source_evaluation_run_id` : `<class 'str'>`
* `scorer_refs` : `list[str]`
* `project_id` : `<class 'str'>`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2393)

## <kbd>classe</kbd> `RescoreRes`

Réponse à une requête de réévaluation (rescore).

**Champs Pydantic :**

* `call_id` : `<class 'str'>`
* `evaluation_run_id` : `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2336)

## <kbd>classe</kbd> `RescoringArgs`

Arguments d’un job de réévaluation (rescore) envoyé au worker evaluate-model.

Contrairement à EvaluateModelArgs, aucun modèle n’est chargé et aucune prédiction n’est exécutée. Seuls le ou les scorers sont appliqués aux prédictions existantes issues de source\_evaluation\_run\_id.

**Champs Pydantic :**

* `job_type`: `typing.Literal['rescore']`
* `project_id`: `<class 'str'>`
* `source_evaluation_run_id`: `<class 'str'>`
* `scorer_refs`: `list[str]`
* `wb_user_id`: `str | None`
* `new_evaluation_run_id`: `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3130)

## <kbd>classe</kbd> `ScoreCreateBody`

Corps de requête permettant de créer un Score via l’API REST.

Ce modèle exclut project\_id, car cette valeur provient du chemin de l’URL dans les points de terminaison RESTful.

**Champs Pydantic :**

* `prediction_id`: `<class 'str'>`
* `scorer`: `<class 'str'>`
* `value`: `typing.Any`
* `evaluation_run_id`: `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3145)

## <kbd>classe</kbd> `ScoreCreateReq`

Modèle de requête pour la création d’un Score.

Étend ScoreCreateBody en y ajoutant project\_id pour un usage interne de l’API.

**Champs Pydantic :**

* `prediction_id`: `<class 'str'>`
* `scorer`: `<class 'str'>`
* `value`: `typing.Any`
* `evaluation_run_id`: `str | None`
* `project_id`: `<class 'str'>`
* `wb_user_id`: `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3157)

## <kbd>classe</kbd> `ScoreCreateRes`

**Champs Pydantic :**

* `score_id` : `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3194)

## <kbd>classe</kbd> `ScoreDeleteReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `score_ids` : `list[str]`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3202)

## <kbd>classe</kbd> `ScoreDeleteRes`

**Champs Pydantic :**

* `num_deleted` : `<class 'int'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3179)

## <kbd>classe</kbd> `ScoreListReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `evaluation_run_id` : `str | None`
* `limit` : `int | None`
* `offset` : `int | None`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3161)

## <kbd>classe</kbd> `ScoreReadReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `score_id` : `<class 'str'>`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3169)

## <kbd>classe</kbd> `ScoreReadRes`

**Champs Pydantic :**

* `score_id` : `<class 'str'>`
* `scorer` : `<class 'str'>`
* `value` : `typing.Any`
* `evaluation_run_id` : `str | None`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2624)

## <kbd>classe</kbd> `ScorerCreateBody`

**Champs Pydantic :**

* `name` : `<class 'str'>`
* `description` : `str | None`
* `op_source_code` : `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2639)

## <kbd>classe</kbd> `ScorerCreateReq`

**Champs Pydantic :**

* `name`: `<class 'str'>`
* `description`: `str | None`
* `op_source_code`: `<class 'str'>`
* `project_id`: `<class 'str'>`
* `wb_user_id`: `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2646)

## <kbd>classe</kbd> `ScorerCreateRes`

**Champs Pydantic :**

* `digest` : `<class 'str'>`
* `object_id` : `<class 'str'>`
* `version_index` : `<class 'int'>`
* `scorer` : `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2693)

## <kbd>classe</kbd> `ScorerDeleteReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `object_id` : `<class 'str'>`
* `digests` : `list[str] | None`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2705)

## <kbd>classe</kbd> `ScorerDeleteRes`

**Champs Pydantic :**

* `num_deleted` : `<class 'int'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2682)

## <kbd>classe</kbd> `ScorerListReq`

**Champs Pydantic :**

* `project_id`: `<class 'str'>`
* `limit`: `int | None`
* `offset`: `int | None`
* `wb_user_id`: `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2658)

## <kbd>classe</kbd> `ScorerReadReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `object_id` : `<class 'str'>`
* `digest` : `<class 'str'>`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2667)

## <kbd>classe</kbd> `ScorerReadRes`

**Champs Pydantic :**

* `object_id` : `<class 'str'>`
* `digest` : `<class 'str'>`
* `version_index` : `<class 'int'>`
* `created_at` : `<class 'datetime.datetime'>`
* `name` : `<class 'str'>`
* `description` : `str | None`
* `score_op` : `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2212)

## <kbd>classe</kbd> `SourceDatasetMembership`

Appartenance d’une paire (source, dataset) unique dans la requête inverse.

**Champs Pydantic :**

* `source_kind` : `<enum 'SourceKind'>`
* `source_id` : `<class 'str'>`
* `source_trace_id` : `<class 'str'>`
* `dataset_object_id` : `<class 'str'>`
* `row_digests` : `list[str]`
* `row_digests_truncated` : `<class 'bool'>`
* `row_digests_total_count` : `<class 'int'>`
* `first_seen_at` : `<class 'datetime.datetime'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2203)

## <kbd>classe</kbd> `SourceDatasetsQueryReq`

Requête inverse : sources -> datasets.

**Champs Pydantic :**

* `project_id`: `<class 'str'>`
* `sources`: `list[SourceRef]`
* `include_deleted`: `<class 'bool'>`
* `wb_user_id`: `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2228)

## <kbd>classe</kbd> `SourceDatasetsQueryRes`

Réponse à la requête inverse sources -> datasets.

**Champs Pydantic :**

* `memberships` : `list[SourceDatasetMembership]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2087)

## <kbd>classe</kbd> `SourceKind`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2093)

## <kbd>classe</kbd> `SourceRef`

Référence à une source de provenance (un appel, un span d’agent ou une conversation).

**Champs Pydantic :**

* `source_kind` : `<enum 'SourceKind'>`
* `source_id` : `<class 'str'>`
* `source_trace_id` : `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L186)

## <kbd>classe</kbd> `StartedCallSchemaForInsert`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `id` : `str | None`
* `op_name` : `<class 'str'>`
* `display_name` : `str | None`
* `trace_id` : `str | None`
* `parent_id` : `str | None`
* `thread_id` : `str | None`
* `turn_id` : `str | None`
* `started_at` : `<class 'datetime.datetime'>`
* `attributes` : `dict[str, typing.Any]`
* `inputs` : `dict[str, typing.Any]`
* `otel_dump` : `dict[str, typing.Any] | None`
* `wb_user_id` : `str | None`
* `wb_run_id` : `str | None`
* `wb_run_step` : `int | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L104)

## <kbd>classe</kbd> `SummaryInsertMap`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L109)

## <kbd>classe</kbd> `SummaryMap`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1011)

## <kbd>classe</kbd> `TableAppendSpec`

**Champs Pydantic :**

* `append` : `<class 'TableAppendSpecPayload'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1007)

## <kbd>classe</kbd> `TableAppendSpecPayload`

**Champs Pydantic :**

* `row` : `dict[str, typing.Any]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L943)

## <kbd>classe</kbd> `TableCreateFromDigestsReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `row_digests` : `list[str]`
* `expected_digest` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L952)

## <kbd>classe</kbd> `TableCreateFromDigestsRes`

**Champs Pydantic :**

* `digest` : `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L939)

## <kbd>classe</kbd> `TableCreateReq`

**Champs Pydantic :**

* `table` : `<class 'TableSchemaForInsert'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1063)

## <kbd>classe</kbd> `TableCreateRes`

**Champs Pydantic :**

* `digest` : `<class 'str'>`
* `row_digests` : `list[str]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1028)

## <kbd>classe</kbd> `TableInsertSpec`

**Champs Pydantic :**

* `insert` : `<class 'TableInsertSpecPayload'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1023)

## <kbd>classe</kbd> `TableInsertSpecPayload`

**Champs Pydantic :**

* `index`: `<class 'int'>`
* `row`: `dict[str, typing.Any]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1019)

## <kbd>classe</kbd> `TablePopSpec`

**Champs Pydantic :**

* `pop` : `<class 'TablePopSpecPayload'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1015)

## <kbd>classe</kbd> `TablePopSpecPayload`

**Champs Pydantic :**

* `index` : `<class 'int'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1092)

## <kbd>classe</kbd> `TableQueryReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `digest` : `<class 'str'>`
* `filter` : `TableRowFilter | None`
* `limit` : `int | None`
* `offset` : `int | None`
* `sort_by` : `list[weave.trace_server.common_interface.SortBy] | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1127)

## <kbd>classe</kbd> `TableQueryRes`

**Champs Pydantic :**

* `rows` : `list[TableRowSchema]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1140)

## <kbd>classe</kbd> `TableQueryStatsBatchReq`

**Champs Pydantic :**

* `project_id`: `<class 'str'>`
* `digests`: `list[str] | None`
* `include_storage_size`: `bool | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1169)

## <kbd>classe</kbd> `TableQueryStatsBatchRes`

**Champs Pydantic :**

* `tables` : `list[TableStatsRow]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1131)

## <kbd>classe</kbd> `TableQueryStatsReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `digest` : `<class 'str'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1159)

## <kbd>classe</kbd> `TableQueryStatsRes`

**Champs Pydantic :**

* `count` : `<class 'int'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1079)

## <kbd>classe</kbd> `TableRowFilter`

**Champs Pydantic :**

* `row_digests`: `list[str] | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1057)

## <kbd>classe</kbd> `TableRowSchema`

**Champs Pydantic :**

* `digest` : `<class 'str'>`
* `val` : `typing.Any`
* `original_index` : `int | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L357)

## <kbd>classe</kbd> `TableSchemaForInsert`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `rows` : `list[dict[str, typing.Any]]`
* `expected_digest` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1163)

## <kbd>classe</kbd> `TableStatsRow`

**Champs Pydantic :**

* `count`: `<class 'int'>`
* `digest`: `<class 'str'>`
* `storage_size_bytes`: `int | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1035)

## <kbd>classe</kbd> `TableUpdateReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `base_digest` : `<class 'str'>`
* `updates` : `list[TableAppendSpec | TablePopSpec | TableInsertSpec]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L1041)

## <kbd>classe</kbd> `TableUpdateRes`

**Champs Pydantic :**

* `digest` : `<class 'str'>`
* `updated_row_digests` : `list[str]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L917)

## <kbd>classe</kbd> `TagsListReq`

**Champs Pydantic :**

* `project_id` : `<class 'str'>`
* `wb_user_id` : `str | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L922)

## <kbd>classe</kbd> `TagsListRes`

**Champs Pydantic :**

* `tags` : `list[str]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2237)

## <kbd>classe</kbd> `ThreadSchema`

**Champs Pydantic :**

* `thread_id` : `<class 'str'>`
* `turn_count` : `<class 'int'>`
* `start_time` : `<class 'datetime.datetime'>`
* `last_updated` : `<class 'datetime.datetime'>`
* `first_turn_id` : `str | None`
* `last_turn_id` : `str | None`
* `p50_turn_duration_ms` : `float | None`
* `p99_turn_duration_ms` : `float | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2260)

## <kbd>classe</kbd> `ThreadsQueryFilter`

**Champs Pydantic :**

* `after_datetime` : `datetime.datetime | None`
* `before_datetime` : `datetime.datetime | None`
* `thread_ids` : `list[str] | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L2278)

## <kbd>classe</kbd> `ThreadsQueryReq`

Interroge les threads avec des statistiques agrégées basées uniquement sur les appels de tour de conversation.

Les appels de tour de conversation sont les enfants directs des contextes de thread (où call.id == turn\_id). On obtient ainsi des statistiques pertinentes au niveau de la conversation, sans inclure tous les détails d’implémentation imbriqués.

**Champs Pydantic :**

* `project_id`: `<class 'str'>`
* `filter`: `ThreadsQueryFilter | None`
* `limit`: `int | None`
* `offset`: `int | None`
* `sort_by`: `list[weave.trace_server.common_interface.SortBy] | None`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3437)

## <kbd>classe</kbd> `TraceServerInterface`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3454)

### <kbd>méthode</kbd> `agent_agents_query`

```python theme={"system"}
agent_agents_query(req: AgentsQueryReq) → AgentsQueryRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3466)

### <kbd>méthode</kbd> `agent_conversation_chat`

```python theme={"system"}
agent_conversation_chat(
    req: AgentConversationChatReq
) → AgentConversationChatRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3469)

### <kbd>méthode</kbd> `agent_conversation_spans`

```python theme={"system"}
agent_conversation_spans(
    req: AgentConversationSpansReq
) → AgentConversationSpansRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3451)

### <kbd>méthode</kbd> `agent_custom_attrs_schema`

```python theme={"system"}
agent_custom_attrs_schema(
    req: AgentCustomAttrsSchemaReq
) → AgentCustomAttrsSchemaRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3460)

### <kbd>méthode</kbd> `agent_search`

```python theme={"system"}
agent_search(req: AgentSearchReq) → AgentSearchRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3445)

### <kbd>méthode</kbd> `agent_spans_query`

```python theme={"system"}
agent_spans_query(req: AgentSpansQueryReq) → AgentSpansQueryRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3448)

### <kbd>méthode</kbd> `agent_spans_stats`

```python theme={"system"}
agent_spans_stats(req: AgentSpanStatsReq) → AgentSpanStatsRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3463)

### <kbd>méthode</kbd> `agent_traces_chat`

```python theme={"system"}
agent_traces_chat(req: AgentTraceChatReq) → AgentTraceChatRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3457)

### <kbd>méthode</kbd> `agent_versions_query`

```python theme={"system"}
agent_versions_query(req: AgentVersionsQueryReq) → AgentVersionsQueryRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3504)

### <kbd>méthode</kbd> `aliases_list`

```python theme={"system"}
aliases_list(req: AliasesListReq) → AliasesListRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3595)

### <kbd>méthode</kbd> `annotation_queue_add_calls`

```python theme={"system"}
annotation_queue_add_calls(
    req: AnnotationQueueAddCallsReq
) → AnnotationQueueAddCallsRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3575)

### <kbd>méthode</kbd> `annotation_queue_create`

```python theme={"system"}
annotation_queue_create(
    req: AnnotationQueueCreateReq
) → AnnotationQueueCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3587)

### <kbd>méthode</kbd> `annotation_queue_delete`

```python theme={"system"}
annotation_queue_delete(
    req: AnnotationQueueDeleteReq
) → AnnotationQueueDeleteRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3603)

### <kbd>méthode</kbd> `annotation_queue_items_query`

```python theme={"system"}
annotation_queue_items_query(
    req: AnnotationQueueItemsQueryReq
) → AnnotationQueueItemsQueryRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3583)

### <kbd>méthode</kbd> `annotation_queue_read`

```python theme={"system"}
annotation_queue_read(req: AnnotationQueueReadReq) → AnnotationQueueReadRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3591)

### <kbd>méthode</kbd> `annotation_queue_update`

```python theme={"system"}
annotation_queue_update(
    req: AnnotationQueueUpdateReq
) → AnnotationQueueUpdateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3579)

### <kbd>méthode</kbd> `annotation_queues_query_stream`

```python theme={"system"}
annotation_queues_query_stream(
    req: AnnotationQueuesQueryReq
) → Iterator[AnnotationQueueSchema]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3599)

### <kbd>méthode</kbd> `annotation_queues_stats`

```python theme={"system"}
annotation_queues_stats(
    req: AnnotationQueuesStatsReq
) → AnnotationQueuesStatsRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3607)

### <kbd>méthode</kbd> `annotator_queue_items_progress_update`

```python theme={"system"}
annotator_queue_items_progress_update(
    req: AnnotatorQueueItemsProgressUpdateReq
) → AnnotatorQueueItemsProgressUpdateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3475)

### <kbd>méthode</kbd> `call_end`

```python theme={"system"}
call_end(req: CallEndReq) → CallEndRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3476)

### <kbd>méthode</kbd> `call_read`

```python theme={"system"}
call_read(req: CallReadReq) → CallReadRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3474)

### <kbd>méthode</kbd> `call_start`

```python theme={"system"}
call_start(req: CallStartReq) → CallStartRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3485)

### <kbd>méthode</kbd> `call_start_batch`

```python theme={"system"}
call_start_batch(req: CallCreateBatchReq) → CallCreateBatchRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3481)

### <kbd>méthode</kbd> `call_stats`

```python theme={"system"}
call_stats(req: 'CallStatsReq') → CallStatsRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3484)

### <kbd>méthode</kbd> `call_update`

```python theme={"system"}
call_update(req: CallUpdateReq) → CallUpdateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3479)

### <kbd>méthode</kbd> `calls_delete`

```python theme={"system"}
calls_delete(req: CallsDeleteReq) → CallsDeleteRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3477)

### <kbd>méthode</kbd> `calls_query`

```python theme={"system"}
calls_query(req: CallsQueryReq) → CallsQueryRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3480)

### <kbd>méthode</kbd> `calls_query_stats`

```python theme={"system"}
calls_query_stats(req: CallsQueryStatsReq) → CallsQueryStatsRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3478)

### <kbd>méthode</kbd> `calls_query_stream`

```python theme={"system"}
calls_query_stream(req: CallsQueryReq) → Iterator[CallSchema]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3634)

### <kbd>méthode</kbd> `calls_score`

```python theme={"system"}
calls_score(req: CallsScoreReq) → CallsScoreRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3483)

### <kbd>méthode</kbd> `calls_usage`

```python theme={"system"}
calls_usage(req: 'CallsUsageReq') → CallsUsageRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3544)

### <kbd>méthode</kbd> `completions_create`

```python theme={"system"}
completions_create(req: CompletionsCreateReq) → CompletionsCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3550)

### <kbd>méthode</kbd> `completions_create_stream`

```python theme={"system"}
completions_create_stream(req: CompletionsCreateReq) → Iterator[dict[str, Any]]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3488)

### <kbd>méthode</kbd> `cost_create`

```python theme={"system"}
cost_create(req: CostCreateReq) → CostCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3490)

### <kbd>méthode</kbd> `cost_purge`

```python theme={"system"}
cost_purge(req: CostPurgeReq) → CostPurgeRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3489)

### <kbd>méthode</kbd> `cost_query`

```python theme={"system"}
cost_query(req: CostQueryReq) → CostQueryRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3612)

### <kbd>méthode</kbd> `dataset_sources_link`

```python theme={"system"}
dataset_sources_link(req: DatasetSourcesLinkReq) → DatasetSourcesLinkRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3616)

### <kbd>méthode</kbd> `dataset_sources_link_delete`

```python theme={"system"}
dataset_sources_link_delete(
    req: DatasetSourcesLinkDeleteReq
) → DatasetSourcesLinkDeleteRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3620)

### <kbd>méthode</kbd> `dataset_sources_query`

```python theme={"system"}
dataset_sources_query(req: DatasetSourcesQueryReq) → DatasetSourcesQueryRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3629)

### <kbd>méthode</kbd> `evaluate_model`

```python theme={"system"}
evaluate_model(req: EvaluateModelReq) → EvaluateModelRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3630)

### <kbd>méthode</kbd> `evaluation_status`

```python theme={"system"}
evaluation_status(req: EvaluationStatusReq) → EvaluationStatusRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3538)

### <kbd>méthode</kbd> `feedback_aggregate`

```python theme={"system"}
feedback_aggregate(req: FeedbackAggregateReq) → FeedbackAggregateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3529)

### <kbd>méthode</kbd> `feedback_create`

```python theme={"system"}
feedback_create(req: FeedbackCreateReq) → FeedbackCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3530)

### <kbd>méthode</kbd> `feedback_create_batch`

```python theme={"system"}
feedback_create_batch(req: FeedbackCreateBatchReq) → FeedbackCreateBatchRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3539)

### <kbd>méthode</kbd> `feedback_payload_schema`

```python theme={"system"}
feedback_payload_schema(
    req: FeedbackPayloadSchemaReq
) → FeedbackPayloadSchemaRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3535)

### <kbd>méthode</kbd> `feedback_purge`

```python theme={"system"}
feedback_purge(req: FeedbackPurgeReq) → FeedbackPurgeRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3534)

### <kbd>méthode</kbd> `feedback_query`

```python theme={"system"}
feedback_query(req: FeedbackQueryReq) → FeedbackQueryRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3536)

### <kbd>méthode</kbd> `feedback_replace`

```python theme={"system"}
feedback_replace(req: FeedbackReplaceReq) → FeedbackReplaceRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3537)

### <kbd>méthode</kbd> `feedback_stats`

```python theme={"system"}
feedback_stats(req: FeedbackStatsReq) → FeedbackStatsRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3525)

### <kbd>méthode</kbd> `file_content_read`

```python theme={"system"}
file_content_read(req: FileContentReadReq) → FileContentReadRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3524)

### <kbd>méthode</kbd> `file_create`

```python theme={"system"}
file_create(req: FileCreateReq) → FileCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3526)

### <kbd>méthode</kbd> `files_stats`

```python theme={"system"}
files_stats(req: FilesStatsReq) → FilesStatsRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3442)

### <kbd>méthode</kbd> `genai_otel_export`

```python theme={"system"}
genai_otel_export(req: GenAIOTelExportReq) → GenAIOTelExportRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3555)

### <kbd>méthode</kbd> `image_create`

```python theme={"system"}
image_create(req: ImageGenerationCreateReq) → ImageGenerationCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3499)

### <kbd>méthode</kbd> `obj_add_tags`

```python theme={"system"}
obj_add_tags(req: ObjAddTagsReq) → ObjAddTagsRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3493)

### <kbd>méthode</kbd> `obj_create`

```python theme={"system"}
obj_create(req: ObjCreateReq) → ObjCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3496)

### <kbd>méthode</kbd> `obj_delete`

```python theme={"system"}
obj_delete(req: ObjDeleteReq) → ObjDeleteRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3494)

### <kbd>méthode</kbd> `obj_read`

```python theme={"system"}
obj_read(req: ObjReadReq) → ObjReadRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3502)

### <kbd>méthode</kbd> `obj_remove_aliases`

```python theme={"system"}
obj_remove_aliases(req: ObjRemoveAliasesReq) → ObjRemoveAliasesRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3500)

### <kbd>méthode</kbd> `obj_remove_tags`

```python theme={"system"}
obj_remove_tags(req: ObjRemoveTagsReq) → ObjRemoveTagsRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3501)

### <kbd>méthode</kbd> `obj_set_aliases`

```python theme={"system"}
obj_set_aliases(req: ObjSetAliasesReq) → ObjSetAliasesRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3495)

### <kbd>méthode</kbd> `objs_query`

```python theme={"system"}
objs_query(req: ObjQueryReq) → ObjQueryRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3439)

### <kbd>méthode</kbd> `otel_export`

```python theme={"system"}
otel_export(req: OTelExportReq) → OTelExportRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3560)

### <kbd>méthode</kbd> `project_stats`

```python theme={"system"}
project_stats(req: ProjectStatsReq) → ProjectStatsRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3563)

### <kbd>méthode</kbd> `project_ttl_settings_read`

```python theme={"system"}
project_ttl_settings_read(
    req: ProjectTTLSettingsReadReq
) → ProjectTTLSettingsReadRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3567)

### <kbd>méthode</kbd> `project_ttl_settings_update`

```python theme={"system"}
project_ttl_settings_update(
    req: ProjectTTLSettingsUpdateReq
) → ProjectTTLSettingsUpdateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3521)

### <kbd>méthode</kbd> `refs_read_batch`

```python theme={"system"}
refs_read_batch(req: RefsReadBatchReq) → RefsReadBatchRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3631)

### <kbd>méthode</kbd> `rescore`

```python theme={"system"}
rescore(req: RescoreReq) → RescoreRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3624)

### <kbd>méthode</kbd> `source_datasets_query`

```python theme={"system"}
source_datasets_query(req: SourceDatasetsQueryReq) → SourceDatasetsQueryRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3507)

### <kbd>méthode</kbd> `table_create`

```python theme={"system"}
table_create(req: TableCreateReq) → TableCreateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3508)

### <kbd>méthode</kbd> `table_create_from_digests`

```python theme={"system"}
table_create_from_digests(
    req: TableCreateFromDigestsReq
) → TableCreateFromDigestsRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3513)

### <kbd>méthode</kbd> `table_query`

```python theme={"system"}
table_query(req: TableQueryReq) → TableQueryRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3515)

### <kbd>méthode</kbd> `table_query_stats`

```python theme={"system"}
table_query_stats(req: TableQueryStatsReq) → TableQueryStatsRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3516)

### <kbd>méthode</kbd> `table_query_stats_batch`

```python theme={"system"}
table_query_stats_batch(req: TableQueryStatsBatchReq) → TableQueryStatsBatchRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3514)

### <kbd>méthode</kbd> `table_query_stream`

```python theme={"system"}
table_query_stream(req: TableQueryReq) → Iterator[TableRowSchema]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3512)

### <kbd>méthode</kbd> `table_update`

```python theme={"system"}
table_update(req: TableUpdateReq) → TableUpdateRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3503)

### <kbd>méthode</kbd> `tags_list`

```python theme={"system"}
tags_list(req: TagsListReq) → TagsListRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3572)

### <kbd>méthode</kbd> `threads_query_stream`

```python theme={"system"}
threads_query_stream(req: ThreadsQueryReq) → Iterator[ThreadSchema]
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3482)

### <kbd>méthode</kbd> `trace_usage`

```python theme={"system"}
trace_usage(req: 'TraceUsageReq') → TraceUsageRes
```

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L88)

## <kbd>classe</kbd> `TraceStatus`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3881)

## <kbd>classe</kbd> `TraceUsageReq`

Requête permettant de calculer l’utilisation par appel pour une trace, avec agrégation des descendants.

Ce point de terminaison renvoie les métriques d’utilisation de chaque appel de la trace, les métriques de chaque appel incluant la somme de sa propre utilisation et de celle de tous ses descendants. Utilisez-le dans la vue de trace pour afficher les métriques agrégées par appel.

Remarque : tous les appels correspondants sont chargés en mémoire pour l’agrégation. Pour des ensembles de résultats très volumineux (plus de 10 000 appels), envisagez d’utiliser des filtres plus précis ou une pagination au niveau de la couche applicative.

**Champs Pydantic :**

* `project_id`: `<class 'str'>`
* `filter`: `CallsFilter | None`
* `query`: `weave.trace_server.interface.query.Query | None`
* `include_costs`: `<class 'bool'>`
* `limit`: `<class 'int'>`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3912)

## <kbd>classe</kbd> `TraceUsageRes`

Réponse contenant les métriques d’utilisation par appel (chacune inclut les contributions des appels descendants).

**Champs Pydantic :**

* `call_usage` : `dict[str, dict[str, LLMAggregatedUsage]]`
* `unfinished_call_ids` : `list[str]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L3755)

## <kbd>classe</kbd> `UsageMetricSpec`

Spécification d’une métrique d’utilisation à agréger (regroupée par modèle).

**Champs Pydantic :**

* `metric`: `typing.Literal['input_tokens', 'output_tokens', 'total_tokens', 'cache_read_input_tokens', 'cache_creation_input_tokens', 'input_cost', 'output_cost', 'total_cost']`
* `aggregations`: `list[AggregationType]`
* `percentiles`: `list[float]`

***

[Source](https://github.com/wandb/weave/blob/v0.53.1/weave/trace_server/trace_server_interface.py#L95)

## <kbd>classe</kbd> `WeaveSummarySchema`
