buster/packages/ai/src/tools/visualization-tools/create-dashboards-tool/create-dashboards-delta.ts

17 lines
573 B
TypeScript
Raw Normal View History

2025-08-08 06:09:45 +08:00
import type { CreateDashboardsAgentContext, CreateDashboardsInput } from './create-dashboards-tool';
export function createCreateDashboardsDelta<
TAgentContext extends CreateDashboardsAgentContext = CreateDashboardsAgentContext,
>(context: TAgentContext) {
return async (_delta: Partial<CreateDashboardsInput>) => {
const messageId = context?.messageId;
console.info('[create-dashboards] Input delta received', {
hasFiles: !!_delta.files,
fileCount: _delta.files?.length,
messageId,
timestamp: new Date().toISOString(),
});
};
}