Build Context • Rust AI Agent SDK
build_context: Build context string from chunks.
build_context
Function
</div>
This function is defined in the rag module.
Build context string from chunks.
Signature
def build_context(chunks: &[ContextChunk]) -> StringParameters
ParamField
&[ContextChunk]No description available.
Returns
ResponseField
StringThe result of the operation.
Uses
enumeratejoin
Source
View on GitHubpraisonai/src/rag/mod.rs at line 604