From 741eac4cfff1845a505796db99098aa1bf94683e Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 11 Oct 2026 20:19:31 +0200 Subject: [PATCH] Fix required tool call in AI agent --- apps/api/src/app/endpoints/ai/ai.service.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/api/src/app/endpoints/ai/ai.service.spec.ts b/apps/api/src/app/endpoints/ai/ai.service.spec.ts index b2bb63addc..25ca009416 100644 --- a/apps/api/src/app/endpoints/ai/ai.service.spec.ts +++ b/apps/api/src/app/endpoints/ai/ai.service.spec.ts @@ -892,7 +892,7 @@ describe('AiService', () => { }); }); - it('Restricts the routing to endpoints with zero data retention, limits the number of steps, requires a tool call in the first step and allows no tool call in the last step', async () => { + it('Restricts the routing to endpoints with zero data retention, disables the reasoning, limits the number of steps, requires a tool call in the first step and allows no tool call in the last step', async () => { mockRowMatches({}); await aiService.getActivitiesFromRows({ @@ -905,6 +905,7 @@ describe('AiService', () => { expect(chat).toHaveBeenCalledWith('agent-model', { provider: { require_parameters: true, zdr: true }, + reasoning: { effort: 'none' }, usage: { include: true } });