mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-09-29 12:22:40 +00:00
🛎️ feat: Wake Agents on Background Tool Completion (#15350)
* feat: wake agents for background tool completion * fix: isolate background completion contracts * fix: anchor background completion identity * fix: close background completion delivery gaps * fix: preserve manual background polling * fix: preserve legacy tool group identity * fix: close background wakeup identity gaps * test: type background wakeup enqueue mock * fix: preserve background completion identity * test: type activity phase fixture * test: mock phase media query * fix: arbitrate background result ownership * fix: retain tool step routing helper * test: expand phase groups before identity checks * fix: preserve background completion ownership * fix: bound durable background results * fix: type wakeup input budget export * chore: sort background handler imports * fix: persist timed-out background completions * fix: reconcile background completion ownership * fix: type background completion capabilities * fix: harden background completion terminalization * test: type missing completion evidence * fix: require evidence for completion retirement * chore: satisfy background completion static checks * test: cover automatic background completion wakeups * test: assert background wakeup agent identity * fix: wake capability-fenced trigger deliveries * test: keep capability shield fixture public * test: assert capability worker wakeup * fix: close background completion ownership gaps * test: satisfy completion lease static checks * fix: preserve artifact completion wakeups * fix: close background delivery recovery gaps * fix: simplify background receipt guidance * fix: recover dead background completion batches * fix: fence background completion recovery * fix: recheck background recovery ownership * fix: fence unpublished background continuations * test: await background message hydration
This commit is contained in:
parent
e3ccaba5af
commit
2ae6c8aea9
39 changed files with 5083 additions and 243 deletions
|
|
@ -611,10 +611,14 @@ function getDefaultHandlers({
|
|||
});
|
||||
}
|
||||
aggregateContent({ event, data });
|
||||
if (validationDetails != null) {
|
||||
const runStep = stepMap?.get(data?.result?.id);
|
||||
const toolCall = contentParts?.[runStep?.index]?.tool_call;
|
||||
if (toolCall != null) {
|
||||
const stepId = data?.result?.id;
|
||||
const runStep = stepMap?.get(stepId);
|
||||
const toolCall = contentParts?.[runStep?.index]?.tool_call;
|
||||
if (toolCall != null) {
|
||||
if (typeof stepId === 'string') {
|
||||
toolCall.stepId = stepId;
|
||||
}
|
||||
if (validationDetails != null) {
|
||||
toolCall.inputValidationError = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue