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

# feedback

> Référence du SDK Python pour weave.trace.feedback

export const SourceLink = ({url}) => <a href={url} target="_blank" rel="noopener noreferrer" className="source-link">
    Source
  </a>;

<div id="api-overview">
  # Aperçu de l’API
</div>

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.42/weave/trace/feedback.py#L84" />

## <kbd>class</kbd> `FeedbackQuery`

Objet chargé à la demande pour récupérer les feedback depuis le serveur.

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.42/weave/trace/feedback.py#L97" />

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

```python theme={null}
__init__(
    entity: 'str',
    project: 'str',
    query: 'Query',
    offset: 'int | None' = None,
    limit: 'int | None' = None,
    show_refs: 'bool' = False
)
```

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.42/weave/trace/feedback.py#L145" />

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

```python theme={null}
execute() → Feedbacks
```

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.42/weave/trace/feedback.py#L126" />

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

```python theme={null}
refresh() → Feedbacks
```

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.42/weave/trace/feedback.py#L151" />

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

```python theme={null}
refs() → Refs
```

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.42/weave/trace/feedback.py#L21" />

## <kbd>class</kbd> `Feedbacks`

Une collection d’objets Feedback accompagnée d’utilitaires.

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.42/weave/trace/feedback.py#L26" />

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

```python theme={null}
__init__(
    show_refs: 'bool',
    feedbacks: 'Iterable[Feedback] | None' = None
) → None
```

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.42/weave/trace/feedback.py#L32" />

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

```python theme={null}
refs() → Refs
```

Renvoie les refs uniques associées à ces feedback.

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.42/weave/trace/feedback.py#L168" />

## <kbd>class</kbd> `RefFeedbackQuery`

Objet permettant d’interagir avec les feedback associés à une ref donnée.

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.42/weave/trace/feedback.py#L173" />

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

```python theme={null}
__init__(ref: 'str') → None
```

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.42/weave/trace/feedback.py#L219" />

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

```python theme={null}
add(
    feedback_type: 'str',
    payload: 'dict[str, Any] | None' = None,
    creator: 'str | None' = None,
    annotation_ref: 'str | None' = None,
    **kwargs: 'dict[str, Any]'
) → str
```

Ajoutez un feedback à la ref.

feedback\_type : Chaîne qui identifie le type de feedback. Le préfixe "wandb." est réservé. creator : Le nom à afficher pour l'auteur du feedback.

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.42/weave/trace/feedback.py#L247" />

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

```python theme={null}
add_note(note: 'str', creator: 'str | None' = None) → str
```

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.42/weave/trace/feedback.py#L238" />

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

```python theme={null}
add_reaction(emoji: 'str', creator: 'str | None' = None) → str
```

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.42/weave/trace/feedback.py#L145" />

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

```python theme={null}
execute() → Feedbacks
```

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.42/weave/trace/feedback.py#L256" />

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

```python theme={null}
purge(feedback_id: 'str') → None
```

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.42/weave/trace/feedback.py#L126" />

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

```python theme={null}
refresh() → Feedbacks
```

***

<SourceLink url="https://github.com/wandb/weave/blob/v0.52.42/weave/trace/feedback.py#L151" />

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

```python theme={null}
refs() → Refs
```
