Get Messages • AI Agent SDK

get_messages: Get session message history.

get_messages

Method

</div>

This is a method of the GatewaySessionProtocol class in the protocols module.

Get session message history.

Signature

python
def get_messages(limit: Optional[int]) -> List[GatewayMessage]

Parameters

ParamField Optional[int]

No description available.

Returns

ResponseField List[GatewayMessage]

The result of the operation.

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 1292