> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-serverless-sft-revamp.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# feedback

> weave.trace.feedback の Python SDK リファレンス

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

# API 概要

***

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

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

サーバー からフィードバックを取得するための遅延読み込み用 オブジェクト です。

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

### <kbd>method</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.24/weave/trace/feedback.py#L145" />

### <kbd>method</kbd> `execute`

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

***

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

### <kbd>method</kbd> `refresh`

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

***

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

### <kbd>method</kbd> `refs`

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

***

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

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

ユーティリティを備えた Feedback オブジェクト のコレクションです。

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

### <kbd>method</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.24/weave/trace/feedback.py#L32" />

### <kbd>method</kbd> `refs`

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

これらのフィードバックに関連付けられた一意の ref を返します。

***

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

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

特定の ref に関連付けられたフィードバックを操作するための オブジェクト です。

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

### <kbd>method</kbd> `__init__`

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

***

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

### <kbd>method</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
```

ref にフィードバックを追加します。

feedback\_type: フィードバックの種類を識別する文字列。"wandb." プレフィックスは予約済みです。creator: フィードバックの作成者として表示する名前。

***

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

### <kbd>method</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.24/weave/trace/feedback.py#L238" />

### <kbd>method</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.24/weave/trace/feedback.py#L145" />

### <kbd>method</kbd> `execute`

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

***

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

### <kbd>method</kbd> `purge`

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

***

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

### <kbd>method</kbd> `refresh`

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

***

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

### <kbd>method</kbd> `refs`

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