HAIP Overview
USER
, AGENT
, SYSTEM
HAI
, TRANSACTION_START
, MESSAGE_START
.HAI
containing its capabilities and auth credentials.
The server validates the auth credentials.HAI
message with its capabilities.
The client is now ready to communicate.START_TRANSACTION
message.
The server creates a transaction and sends back the transaction id.START_TRANSACTION
{token: "Bearer TOKEN" }
. This can be then validated on the server by implementing the method:
null
which acts causes the authentication to fail.
MESSAGE
for all transactions.
We also set the amount of credits the user has access to, this depends on if flow control has been enabled.
transaction.getReplayWindow();
.
The history size is determined by windowSize
(number of messages) and windowTime
(duration).