chainfury_server.engines.fury module

class chainfury_server.engines.fury.FuryEngine[source]

Bases: EngineInterface

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.fury.FuryThoughts(db, prompt_id)[source]

Bases: object

__call__(thought)[source]

Call self as a function.

chainfury_server.engines.fury.create_prompt(db: Session, chatbot_id: str, input_prompt: str, session_id: str) Prompt[source]