OpenAI Agents JS (@openai/agents): an Agent's instructions carry its system context.
withMemory(baseInstructions, query) returns the instructions to give the Agent for the turn,
the governed memory context prepended to the developer's base instructions (or just the memory
when there are no base instructions), and remember persists the turn after run(agent, …).
Structural, so @openai/agents stays an optional peer dependency.
OpenAI Agents JS (
@openai/agents): an Agent'sinstructionscarry its system context.withMemory(baseInstructions, query)returns the instructions to give the Agent for the turn, the governed memory context prepended to the developer's base instructions (or just the memory when there are no base instructions), andrememberpersists the turn afterrun(agent, …). Structural, so@openai/agentsstays an optional peer dependency.