readonlymessages:AgentHarnessMessagePort
On the Agent Runtime
The runtime adapter builds the port fromhost, which carries the protected members of the Agent class.
append()callsthis.messages.append(), which assigns the message’sseqand writes its row in one commit.appendMany()callsthis.messages.appendMany(), which commits the whole batch together.all()callsthis.messages.all(), which returns the whole history in order.last()callsthis.messages.last(), with the count when one is given.count()callsthis.messages.count(). The log is append-only, so the count is also theseqof the last message.AgentMessageandStoredMessageare the runtime SDK’s own types.
AgentHarnessMessagePort
Existing Agent message-log semantics, without framework conversion helpers. Methods all()all():ReturnsPromise<StoredMessage[]>
Promise<StoredMessage[]>
append()
append(Parametersmessage):Promise<number>
Returns
Promise<number>
appendMany()
appendMany(Parametersmessages):Promise<number>
Returns
Promise<number>
count()
count():ReturnsPromise<number>
Promise<number>
last()
Call Signature
last():ReturnsPromise<StoredMessage|undefined>
Promise<StoredMessage | undefined>
Call Signature
last(Parameterscount):Promise<StoredMessage[]>
Returns
Promise<StoredMessage[]>