background_agents.deep_think_agent module
Deep think agent – multi-perspective analysis with synthesis.
Analyses a problem from several independent viewpoints, then synthesises the perspectives into a single coherent conclusion.
- async background_agents.deep_think_agent.run_deep_think(prompt, openrouter, redis=None, task_id='', perspectives=None)[source]
Run a multi-perspective deep-thinking analysis.
- Parameters:
prompt (
str) – The question or problem to analyse.openrouter (
Any) – AnOpenRouterClientinstance.redis (
Any|None) – Optional async Redis for progress updates.task_id (
str) – Optional identifier for progress tracking.perspectives (
list[tuple[str,str]] |None) – Custom list of(name, system_instruction)tuples. Defaults toPERSPECTIVES.
- Return type: