new • Rust AI Agent SDK

new: Create a new RAG result

new

Method

</div>

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

Create a new RAG result

Signature

python
def new(answer: impl Into<String>, context: ContextPack) -> Self

Parameters

ParamField impl Into&lt;String&gt;

No description available.

ParamField ContextPack

No description available.

Returns

ResponseField Self

The result of the operation.