mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-16 21:08:17 +00:00
* feat: register SDK-backed agents through agent management * fix: gate SDK binding writes and preserve native lifecycle
11 lines
347 B
JavaScript
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);
|
|
},
|
|
};
|