factor_agent.llm.base.AskingAgain#

class AskingAgain(backend)[source]#

Bases: object

A backend that asks backend again when it answers something that is not a reply.

A campaign calls every role’s backend through one, its own backends and those passed in alike.

ProviderReplyMalformed is retried after each wait of ASK_AGAIN_WAITS and raised once they are spent; every other error is raised at once.

Methods#

AskingAgain.complete

Complete request with backend, asking again after an answer that was not a reply.