add • Rust AI Agent SDK

add: Add a segment to the ledger

add

Method

</div>

This is a method of the ContextLedger class in the context module.

Add a segment to the ledger

Signature

python
def add(&mut self, segment: ContextSegment) -> ()

Parameters

ParamField ContextSegment

No description available.

Returns

ResponseField ()

The result of the operation.