@coffer-org/server 7.5.0 → 7.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -266,7 +266,7 @@ export async function handleIncoming(connector, turn, deps) {
|
|
|
266
266
|
try {
|
|
267
267
|
const attachmentTools = await makeAttachmentCapabilities(agentMessages.flatMap((m) => m.attachments ?? []), agentMedia());
|
|
268
268
|
const toolProvider = {
|
|
269
|
-
tools: [...attachmentTools.tools, ...makeSystemCapabilities().tools],
|
|
269
|
+
tools: [...attachmentTools.tools, ...makeSystemCapabilities().tools, ...(turn.toolProvider?.tools ?? [])],
|
|
270
270
|
};
|
|
271
271
|
const userMessageCount = await countUserMessages(conversationId);
|
|
272
272
|
agentTurn = {
|