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: Optional[Iterable[Feedback]] = 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: Optional[int] = None,
limit: Optional[int] = 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: Optional[dict[str, Any]] = None,
creator: Optional[str] = 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: Optional[str] = None)str

method add_reaction

add_reaction(emoji: str, creator: Optional[str] = None)str

method execute

execute() → Feedbacks

method purge

purge(feedback_id: str)None

method refresh

refresh() → Feedbacks

method refs

refs() → Refs