new • Rust AI Agent SDK

new: Create a new retrieval result

new

Method

</div>

This is a method of the RetrievalResult class in the rag module.

Create a new retrieval result

Signature

python
def new(query: impl Into<String>, strategy: RetrievalStrategy) -> Self

Parameters

ParamField impl Into&lt;String&gt;

No description available.

ParamField RetrievalStrategy

No description available.

Returns

ResponseField Self

The result of the operation.