Skip to main content

detect_strategy

Method
This is a method of the QueryRewriterAgent class in the specialized_agents module.
Detect the best rewriting strategy for a query

Signature

def detect_strategy(&self, query: &str, has_chat_history: bool) -> RewriteStrategy

Parameters

query
&str
required
No description available.
has_chat_history
bool
required
No description available.

Returns

Returns
RewriteStrategy
The result of the operation.