New

remoteagent utils (#166)

Yaroslav
2 months ago

Commit: 37e0403

Date: October 24, 2025 at 6:57 AM

1. `getUserFunctionCallAt` returns a non-nil response if the last session event is a user function call response.

2. `toMissingRemoteSessionParts` collects parts from all the events not present in the remote agent session. An event is considered present in a remote session if there's an event at a higher index with remote agent as an author.

3. `presentAsUserMessage` takes an event authored by another agent and converts it to a user event describing the provided event, eg: