Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.praison.ai/llms.txt

Use this file to discover all available pages before exploring further.

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.