> ## 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.

# フィードバック

> Python SDK reference for weave.trace.feedback

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

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

***

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

<h2 id="class-feedbackquery">
  <kbd>クラス</kbd> `FeedbackQuery`
</h2>

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

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

<h3 id="method-__init__">
  <kbd>メソッド</kbd> `__init__`
</h3>

```python theme={"system"}
__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" />

<h3 id="method-execute">
  <kbd>メソッド</kbd> `execute`
</h3>

```python theme={"system"}
execute() → Feedbacks
```

***

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

<h3 id="method-refresh">
  <kbd>メソッド</kbd> `refresh`
</h3>

```python theme={"system"}
refresh() → Feedbacks
```

***

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

<h3 id="method-refs">
  <kbd>メソッド</kbd> `refs`
</h3>

```python theme={"system"}
refs() → Refs
```

***

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

<h2 id="class-feedbacks">
  <kbd>クラス</kbd> `Feedbacks`
</h2>

フィードバックオブジェクトのコレクションで、ユーティリティを提供します。

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

<h3 id="method-__init__-2">
  <kbd>メソッド</kbd> `__init__`
</h3>

```python theme={"system"}
__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" />

<h3 id="method-refs-2">
  <kbd>メソッド</kbd> `refs`
</h3>

```python theme={"system"}
refs() → Refs
```

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

***

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

<h2 id="class-reffeedbackquery">
  <kbd>クラス</kbd> `RefFeedbackQuery`
</h2>

特定の ref に関連付けられたフィードバックとやり取りするためのオブジェクト。

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

<h3 id="method-__init__-3">
  <kbd>メソッド</kbd> `__init__`
</h3>

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

***

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

<h3 id="method-add">
  <kbd>メソッド</kbd> `add`
</h3>

```python theme={"system"}
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: フィードバックのタイプを識別する string。「wandb.」接頭辞は予約されています。creator: フィードバックの作成者の表示名。

***

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

<h3 id="method-add_note">
  <kbd>メソッド</kbd> `add_note`
</h3>

```python theme={"system"}
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" />

<h3 id="method-add_reaction">
  <kbd>メソッド</kbd> `add_reaction`
</h3>

```python theme={"system"}
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" />

<h3 id="method-execute-2">
  <kbd>メソッド</kbd> `execute`
</h3>

```python theme={"system"}
execute() → Feedbacks
```

***

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

<h3 id="method-purge">
  <kbd>メソッド</kbd> `purge`
</h3>

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

***

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

<h3 id="method-refresh-2">
  <kbd>メソッド</kbd> `refresh`
</h3>

```python theme={"system"}
refresh() → Feedbacks
```

***

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

<h3 id="method-refs-3">
  <kbd>メソッド</kbd> `refs`
</h3>

```python theme={"system"}
refs() → Refs
```
