new • Rust AI Agent SDK

new: Create a new search result item

new

Method

</div>

This is a method of the SearchResultItem class in the knowledge module.

Create a new search result item

Signature

python
def new(id: impl Into<String>, text: impl Into<String>, score: f32) -> Self

Parameters

ParamField impl Into&lt;String&gt;

No description available.

ParamField impl Into&lt;String&gt;

No description available.

ParamField f32

No description available.

Returns

ResponseField Self

The result of the operation.