mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-10-20 17:13:44 +00:00
📨 feat: Continue Bound Child Agents from Events (#15112)
* feat: add authenticated agent event ingress * style: sort agent ingress imports * fix: harden agent event ingress * fix: bind event provenance to API keys * fix: inspect event input with legacy PII filters * fix: scope event status reads to source keys * fix: bind event status reads to remote sources * feat: add bound event-driven child turns * fix: harden event-bound child continuations * fix: satisfy event binding type contracts * fix: close event actor lifecycle races * fix: harden event actor dispatch continuity * fix: fence event actor resume lifecycle * fix: bind event actor state to lifecycle * fix: preserve cascade write outcomes * test: type cascade failure injection * style: sort cascade test imports * fix: harden event child lifecycle boundaries * fix: make event cleanup retryable * fix: annotate event retention clock * fix: reconcile partial cascade metadata * fix: recheck event binding expiry on resume * fix: fence event actors by retention deadline * fix: close event actor lifecycle races * fix: harden event child lease acquisition * fix: lazy-load event child lease adapter
This commit is contained in:
parent
8f9fae0a6e
commit
1de88e7e91
47 changed files with 3888 additions and 246 deletions
|
|
@ -1230,7 +1230,9 @@ class BaseClient {
|
|||
const hasAddedConvo = options?.req?.body?.addedConvo != null;
|
||||
const reqCtx = {
|
||||
userId: options?.req?.user?.id,
|
||||
isTemporary: options?.req?.body?.isTemporary,
|
||||
isTemporary:
|
||||
options?.req?._agentEventBindingRetention?.isTemporary ?? options?.req?.body?.isTemporary,
|
||||
expiredAt: options?.req?._agentEventBindingRetention?.expiredAt,
|
||||
interfaceConfig: options?.req?.config?.interfaceConfig,
|
||||
};
|
||||
const savedMessage = await db.saveMessage(
|
||||
|
|
@ -1306,6 +1308,7 @@ class BaseClient {
|
|||
const conversation = await db.saveConvo(reqCtx, fieldsToKeep, {
|
||||
context: 'api/app/clients/BaseClient.js - saveMessageToDatabase #saveConvo',
|
||||
unsetFields,
|
||||
noUpsert: req?._agentEventBindingParentConversationId != null,
|
||||
createdAtOnInsert: shouldSetCreatedAtOnInsert ? validCreatedAtOnInsert : undefined,
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue