Detect Strategy • Rust AI Agent SDK

detect_strategy: Detect the best rewriting strategy for a query

detect_strategy

Method

</div>

This is a method of the QueryRewriterAgent class in the specialized_agents module.

Detect the best rewriting strategy for a query

Signature

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

Parameters

ParamField &str

No description available.

ParamField bool

No description available.

Returns

ResponseField RewriteStrategy

The result of the operation.