> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-workspaces-notebooks.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">
    ソース
  </a>;

<div id="api-overview">
  # API 概要
</div>

***

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

<div id="class-feedbackquery">
  ## <kbd>class</kbd> `FeedbackQuery`
</div>

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

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

<div id="method-__init__">
  ### <kbd>method</kbd> `__init__`
</div>

```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.53.1/weave/trace/feedback.py#L145" />

<div id="method-execute">
  ### <kbd>method</kbd> `execute`
</div>

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

***

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

<div id="method-refresh">
  ### <kbd>method</kbd> `refresh`
</div>

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

***

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

<div id="method-refs">
  ### <kbd>method</kbd> `refs`
</div>

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

***

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

<div id="class-feedbacks">
  ## <kbd>class</kbd> `Feedbacks`
</div>

各種ユーティリティを提供する Feedback オブジェクトのコレクション。

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

<div id="method-__init__-2">
  ### <kbd>method</kbd> `__init__`
</div>

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

***

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

<div id="method-refs-2">
  ### <kbd>method</kbd> `refs`
</div>

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

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

***

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

<div id="class-reffeedbackquery">
  ## <kbd>class</kbd> `RefFeedbackQuery`
</div>

特定の ref に関連付けられたフィードバックを扱うためのオブジェクト。

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

<div id="method-__init__-3">
  ### <kbd>method</kbd> `__init__`
</div>

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

***

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

<div id="method-add">
  ### <kbd>method</kbd> `add`
</div>

```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.53.1/weave/trace/feedback.py#L247" />

<div id="method-add_note">
  ### <kbd>method</kbd> `add_note`
</div>

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

***

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

<div id="method-add_reaction">
  ### <kbd>method</kbd> `add_reaction`
</div>

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

***

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

<div id="method-execute-2">
  ### <kbd>method</kbd> `execute`
</div>

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

***

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

<div id="method-purge">
  ### <kbd>method</kbd> `purge`
</div>

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

***

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

<div id="method-refresh-2">
  ### <kbd>method</kbd> `refresh`
</div>

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

***

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

<div id="method-refs-3">
  ### <kbd>method</kbd> `refs`
</div>

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