Skip to main content

delete_history

Method
This is a method of the Agent class in the agent module.
Delete a specific message from chat history by index. Supports negative indexing (-1 for last message, etc.).

Signature

Parameters

int
required
Message index (0-based, supports negative indexing)

Returns

bool
True if deleted, False if index out of range

Source

View on GitHub

praisonaiagents/agent/agent.py at line 4234