add • Rust AI Agent SDK

add: Add an entry to context

add

Method

</div>

This is a method of the ContextAgent class in the specialized module.

Add an entry to context

Signature

python
def add(&mut self, role: impl Into<String>, content: impl Into<String>) -> ()

Parameters

ParamField impl Into&lt;String&gt;

No description available.

ParamField impl Into&lt;String&gt;

No description available.

Returns

ResponseField ()

The result of the operation.