Get Segment • AI Agent SDK
get_segment: Get token count for a segment.
get_segment
Method
</div>
This is a method of the ContextLedger class in the models module.
Get token count for a segment.
Signature
def get_segment(segment: ContextSegment) -> intParameters
ParamField
ContextSegmentNo description available.
Returns
ResponseField
intThe result of the operation.
Used By
Source
View on GitHubpraisonaiagents/context/models.py at line 64