Skip to main content

weave.trace.feedback

Classes for working with feedback on a project or ref level.


API Overview

Classes


class Feedbacks

A collection of Feedback objects with utilities.

method __init__

__init__(
show_refs: 'bool',
feedbacks: 'Iterable[Feedback] | None' = None
)None

method refs

refs() → Refs

Return the unique refs associated with these feedbacks.


class FeedbackQuery

Lazy-loading object for fetching feedback from the server.

method __init__

__init__(
entity: 'str',
project: 'str',
query: 'Query',
offset: 'int | None' = None,
limit: 'int | None' = None,
show_refs: 'bool' = False
)

method execute

execute() → Feedbacks

method refresh

refresh() → Feedbacks

method refs

refs() → Refs

class RefFeedbackQuery

Object for interacting with feedback associated with a particular ref.

method __init__

__init__(ref: 'str')None

method add

add(
feedback_type: 'str',
payload: 'dict[str, Any] | None' = None,
creator: 'str | None' = None,
**kwargs: 'dict[str, Any]'
)str

Add feedback to the ref.

feedback_type: A string identifying the type of feedback. The "wandb." prefix is reserved. creator: The name to display for the originator of the feedback.


method add_note

add_note(note: 'str', creator: 'str | None' = None)str

method add_reaction

add_reaction(emoji: 'str', creator: 'str | None' = None)str

method execute

execute() → Feedbacks

method purge

purge(feedback_id: 'str')None

method refresh

refresh() → Feedbacks

method refs

refs() → Refs