chainfury_server.engines.registry module

class chainfury_server.engines.registry.EngineInterface[source]

Bases: object

property engine_name: str
run(chatbot: ChatBot, prompt: ApiPromptBody, db: Session, start: float, store_ir: bool, store_io: bool) CFPromptResult[source]

This is the main entry point for the engine. It should return a CFPromptResult.

stream(chatbot: ChatBot, prompt: ApiPromptBody, db: Session, start: float, store_ir: bool, store_io: bool) Generator[Tuple[CFPromptResult | Dict[str, Any], bool], None, None][source]

This is the main entry point for the engine. It should return a CFPromptResult.

submit(chatbot: ChatBot, prompt: ApiPromptBody, db: Session, start: float, store_ir: bool, store_io: bool) CFPromptResult[source]

This is the main entry point for the engine. It should return a CFPromptResult.

class chainfury_server.engines.registry.EngineRegistry[source]

Bases: object

get(name: str) EngineInterface | None[source]
register(engine: EngineInterface) None[source]