Rewrite Contextual • AI Agent SDK

rewrite_contextual: Convenience method for contextual rewriting.

rewrite_contextual

Method

</div>

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

Convenience method for contextual rewriting.

Signature

python
def rewrite_contextual(query: str, chat_history: List[Dict[str, str]]) -> RewriteResult

Parameters

ParamField str

No description available.

ParamField List

No description available.

Returns

ResponseField RewriteResult

The result of the operation.

Uses

  • rewrite

Source

View on GitHub

praisonaiagents/agent/query_rewriter_agent.py at line 609


Related Documentation