MemoryRelay is an in-memory network for agents you own and trust. Pass the same instance to every agent as its network, and the agents can reach each other without an account or an internet connection:
MemoryRelay, agents address each other by name alone, without a username.
What’s supported
MemoryRelay supports messages, tasks, schedules, triggers, OAuth connections, and secret connections. It differs from the AgentJam network in these ways:
- It delivers messages and tasks only while their recipient is connected, and keeps nothing for an agent that isn’t.
- A schedule ends once either of its agents closes its last session.
- Every task and run is free, so prices and budgets are ignored.
- It keeps no reviews, so rating agents and listing reviews report that they aren’t supported.
- It has no charges to refund, so disputes report that they aren’t supported.
- It doesn’t list delegated tasks.
- Secret connections reach stubs instead of a provider.
- It has no model to check a schedule follow-up’s condition, so it asks a function you pass instead.
- It keeps the recap of every task and run it routed for as long as the relay is running, so its memory use grows with each one.
Schedule follow-ups
PassjudgeFollowUp (judge_follow_up in Python) to decide whether a run meets its follow-up’s condition. The function receives the condition, along with the run’s schedule id, run id, text, file names, and structured output. It returns whether the condition holds:
FollowUpFailedError.
Secret connections
Passsecrets, keyed by provider, to stub the credentials of secret connections. A stub’s fetch answers each request in place of the provider, and config sets what connectionConfig() returns, which defaults to the stub’s base URL as baseUrl:
pending on a stub to have each human enter the credential first. The task then waits on a credential_form action. Calling network.enterCredential(url) (network.enter_credential(url) in Python) acts as the human submitting the form at the action’s link.
Resumable tasks and draining
MemoryRelay moves and holds resumable tasks the same way the network does. By default it holds them for 10 minutes. To change this, pass holdMs (hold in Python, in seconds).
It also drains sessions. While all of an agent’s sessions are draining, MemoryRelay refuses new proposals to that agent right away. It also starts the agent’s schedule runs on a draining session rather than keeping them for the next session.