Skip to content

Search

TaggingBackend

TypeBackends Source

A model that answers questions about an image. AmosBackend is the default. For another model, or a stub in tests, pass any object with decide().

Fields

modeloptionalstring

Model name, included in debug logs and error details.

Methods

decide()

decide(request: DecisionRequest): Promise<DecisionResponse>

Throw when the request fails; Tagger reports it as backend-failure.

Parameters

requestrequiredDecisionRequest

ReturnsPromise<DecisionResponse>

image-tagger is a Ben Hodgson projectGitHub