LibreChat/e2e/setup/sdk-runtime.cjs
Danny Avila fad2c51da4
Some checks are pending
Docker Dev Images Build / publish (push) Waiting to run
Sync Helm Chart Tags / Ignore non-main push (push) Waiting to run
Sync Helm Chart Tags / Sync chart tags (push) Waiting to run
🏇 feat: Register SDK-Backed Agents for Native Chat (#18114)
* feat: register SDK-backed agents through agent management

* fix: gate SDK binding writes and preserve native lifecycle
2026-11-13 13:02:53 -05:00

11 lines
347 B
JavaScript

const { Run } = require('@librechat/agents');
module.exports = {
protocolVersion: 1,
async createRun({ config, identity }) {
if (!Object.isFrozen(identity) || identity.runId !== config.runId || !identity.userId) {
throw new Error('SDK runtime identity was not established by the host');
}
return Run.create(config);
},
};