Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.praison.ai/llms.txt

Use this file to discover all available pages before exploring further.

get_segment

Method
This is a method of the ContextLedger class in the models module.
Get token count for a segment.

Signature

def get_segment(segment: ContextSegment) -> int

Parameters

segment
ContextSegment
required
No description available.

Returns

Returns
int
The result of the operation.

Used By

Source

View on GitHub

praisonaiagents/context/models.py at line 64