diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/service/create_service.ts b/x-pack/plugins/observability_solution/observability_ai_assistant/public/service/create_service.ts index 9e0adc5a94d8f..7232078d2efe8 100644 --- a/x-pack/plugins/observability_solution/observability_ai_assistant/public/service/create_service.ts +++ b/x-pack/plugins/observability_solution/observability_ai_assistant/public/service/create_service.ts @@ -72,10 +72,6 @@ export function createService({ return of( createFunctionRequestMessage({ name: 'context', - args: { - queries: [], - categories: [], - }, }), createFunctionResponseMessage({ name: 'context', diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/context.ts b/x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/context.ts index 05bbdd6ac57c6..baf006844c516 100644 --- a/x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/context.ts +++ b/x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/context.ts @@ -151,7 +151,6 @@ async function retrieveSuggestions({ }) { const recallResponse = await client.recall({ queries, - categories: [], }); return recallResponse.entries.map((entry) => omit(entry, 'labels', 'is_correction')); diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/get_context_function_request_if_needed.ts b/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/get_context_function_request_if_needed.ts index 74cc19d8aa153..e5ea0ad0ff829 100644 --- a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/get_context_function_request_if_needed.ts +++ b/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/get_context_function_request_if_needed.ts @@ -28,9 +28,5 @@ export function getContextFunctionRequestIfNeeded( return createFunctionRequestMessage({ name: CONTEXT_FUNCTION_NAME, - args: { - queries: [], - categories: [], - }, }); } diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/index.test.ts b/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/index.test.ts index 4ffc8dc926fc7..5d43fdad58eb3 100644 --- a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/index.test.ts +++ b/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/index.test.ts @@ -1232,7 +1232,7 @@ describe('Observability AI Assistant client', () => { role: MessageRole.Assistant, function_call: { name: CONTEXT_FUNCTION_NAME, - arguments: JSON.stringify({ queries: [], categories: [] }), + arguments: JSON.stringify({}), trigger: MessageRole.Assistant, }, }, @@ -1456,7 +1456,7 @@ describe('Observability AI Assistant client', () => { role: MessageRole.Assistant, function_call: { name: CONTEXT_FUNCTION_NAME, - arguments: JSON.stringify({ queries: [], categories: [] }), + arguments: JSON.stringify({}), trigger: MessageRole.Assistant, }, }, diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/chat/chat_body.test.tsx b/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/chat/chat_body.test.tsx index e39bcf5d1891e..65ac65264f307 100644 --- a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/chat/chat_body.test.tsx +++ b/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/chat/chat_body.test.tsx @@ -40,7 +40,7 @@ describe('', () => { role: 'assistant', function_call: { name: CONTEXT_FUNCTION_NAME, - arguments: '{"queries":[],"categories":[]}', + arguments: '{}', trigger: 'assistant', }, content: '', @@ -88,7 +88,7 @@ describe('', () => { role: 'assistant', function_call: { name: CONTEXT_FUNCTION_NAME, - arguments: '{"queries":[],"categories":[]}', + arguments: '{}', trigger: 'assistant', }, content: '',