apps/opik-documentation/python-sdk-docs/source/rest_api/clients/annotation_queues.rst
The Annotation Queues client provides methods for managing annotation queues in the Opik platform. Annotation queues enable human-in-the-loop workflows for reviewing and annotating traces or threads.
.. autoclass:: opik.rest_api.annotation_queues.client.AnnotationQueuesClient :members: :undoc-members: :show-inheritance: :inherited-members: :exclude-members: with_raw_response
.. code-block:: python
import opik
client = opik.Opik()
queue = client.create_annotation_queue( name="Review Queue", scope="trace", description="Queue for reviewing model outputs", instructions="Check for accuracy and relevance" )
traces = client.search_traces(project_name="my-project") queue.add_traces(traces[:10])
existing_queue = client.get_annotation_queue("queue-id")
queues = client.get_annotation_queues()
queue.update(description="Updated description")
queue.remove_traces(traces[:5])
queue.delete()