LibreChat/api/server/services/Endpoints/agents
Danny Avila d1eb4528e1 🔧 feat: Lazy file provisioning — defer uploads to tool invocation time
Move file provisioning from eager (at chat-request start) to lazy
(at tool invocation time via ON_TOOL_EXECUTE). Files are now only
uploaded to code env / vector DB when the LLM actually calls the
respective tool.

- resources.ts: primeResources no longer provisions; computes
  provisionState (which files need code env / vector DB uploads)
  with staleness check and single credential load
- handlers.ts: add provisionFiles callback to ToolExecuteOptions,
  called once per tool-call batch before execution
- initialize.ts: pass provisionState through InitializedAgent
- initialize.js: implement provisionFiles closure that provisions
  files in parallel, batches DB updates, clears state after use;
  store provisionState in agentToolContexts for all agent types
2026-06-25 12:34:07 -04:00
..
addedConvo.js 🧠 feat: Add Memory as an Agent Capability with Inline Tools and Ephemeral Badge (#13869) 2026-06-24 17:14:13 -04:00
addedConvo.spec.js 🧭 feat: Scope Model Spec Skills (#13522) 2026-06-05 10:22:02 -04:00
build.js 🗂️ feat: Add Private Chat Projects (#13467) 2026-06-03 15:29:18 -04:00
index.js 🚧 chore: merge latest dev build to main repo (#3844) 2024-08-31 16:33:51 -04:00
initialize.js 🔧 feat: Lazy file provisioning — defer uploads to tool invocation time 2026-06-25 12:34:07 -04:00
initialize.spec.js 🗄️ fix: Gate Request-Scoped MCP Servers Out of Persistent Tool Cache (#13672) 2026-06-13 11:26:49 -04:00
skillDeps.js 🔧 feat: Lazy file provisioning — defer uploads to tool invocation time 2026-06-25 12:34:07 -04:00
skillDeps.spec.js 🗂️ feat: Add Deployment Skill Directory (#13523) 2026-06-05 10:24:28 -04:00
title.js 🏷️ fix: Preserve Generated Conversation Title on Stop (#13568) 2026-06-07 08:59:05 -04:00
title.test.js 🏷️ fix: Preserve Generated Conversation Title on Stop (#13568) 2026-06-07 08:59:05 -04:00