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_history_size

Method
This is a method of the Agent class in the agent module.
Get the current number of messages in chat history.

Signature

def get_history_size() -> int

Returns

Returns
int
The result of the operation.

Source

View on GitHub

praisonaiagents/agent/agent.py at line 4273