mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-09-15 22:13:29 +00:00
🔍 chore: TEMP diagnostics for lazy code provisioning (revert)
This commit is contained in:
parent
58f285cb90
commit
b84594d450
2 changed files with 8 additions and 0 deletions
|
|
@ -454,6 +454,9 @@ const initializeClient = async ({
|
|||
...getSkillToolDeps(),
|
||||
provisionFiles: async (toolNames, agentId) => {
|
||||
const ctx = agentToolContexts.get(agentId);
|
||||
logger.warn(
|
||||
`[e2e-diag provisionFiles] agentId=${agentId} tools=${JSON.stringify(toolNames)} hasCtx=${!!ctx} hasProvisionState=${!!ctx?.provisionState} codeEnvFiles=${ctx?.provisionState?.codeEnvFiles?.length ?? 'na'} vectorDBFiles=${ctx?.provisionState?.vectorDBFiles?.length ?? 'na'} codeApiKey=${!!ctx?.provisionState?.codeApiKey}`,
|
||||
);
|
||||
if (!ctx?.provisionState) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2289,6 +2289,11 @@ function buildHandoffResponses(graph, parsed) {
|
|||
function provisioningToolResponses({ text, toolNames }) {
|
||||
const codeLabel = getMarkerValue(text, EXECUTE_CODE_MARKER);
|
||||
if (codeLabel) {
|
||||
console.warn(
|
||||
`[e2e-diag fake-model] execute_code marker; advertised=${toolNames.has(
|
||||
EXECUTE_CODE_TOOL_NAME,
|
||||
)} tools=${JSON.stringify([...toolNames])}`,
|
||||
);
|
||||
if (!toolNames.has(EXECUTE_CODE_TOOL_NAME)) {
|
||||
return {
|
||||
responses: [`E2E execute_code unavailable: ${EXECUTE_CODE_TOOL_NAME} was not advertised.`],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue