new • Rust AI Agent SDK

new: Create a new context chunk

new

Method

</div>

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

Create a new context chunk

Signature

python
def new(content: impl Into<String>, source: 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.