File size: 542 Bytes
dcb2a99
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""Base class for all reasoning strategies."""

from typing import Dict, Any

class ReasoningStrategy:
    """Base class for reasoning strategies."""
    async def reason(self, query: str, context: Dict[str, Any]) -> Dict[str, Any]:
        """Apply reasoning strategy to query with context.
        
        Args:
            query: The query to reason about
            context: Additional context for reasoning
            
        Returns:
            Dictionary containing reasoning results
        """
        raise NotImplementedError