jina.types.request.mixin module

class jina.types.request.mixin.DocsPropertyMixin[source]

Bases: object

Mixin class of docs property.

abstract body()[source]

Requred body property

property docs: jina.types.arrays.document.DocumentArray

Get the :class: DocumentArray with sequence body.docs as content.

Return type

DocumentArray

class jina.types.request.mixin.GroundtruthPropertyMixin[source]

Bases: object

Mixin class of groundtruths property.

abstract body()[source]

Requred body property

property groundtruths: jina.types.arrays.document.DocumentArray

Get the groundtruths in :class: DocumentArray type.

Return type

DocumentArray

class jina.types.request.mixin.CommandMixin[source]

Bases: object

Mixin class of command property.

abstract proto()[source]

Requred proto property

property command: str

Get the command.

Return type

str