factor_agent.llm.scripted.ScriptedBackend#
- class ScriptedBackend(replies)[source]#
Bases:
objectAnswer each request with the next reply of a fixed list.
requestskeeps every request received, in order; calls from several threads take the replies one at a time, in the order they arrive.- Raises:
- RuntimeError
From
completewhen every reply has been used.
Methods#
Return the next scripted reply and keep |
|
Build from |
Attributes#
- ScriptedBackend.OPTIONS = ('replies',)#
The options a role’s config may give besides
backendandmodel;repliesis needed.