From f1530f0fed35e4b14e0a7a14691eb2a81fbc5233 Mon Sep 17 00:00:00 2001 From: Viduni Wickramarachchi Date: Wed, 30 Oct 2024 09:10:23 -0400 Subject: [PATCH] [Obs AI Assistant] Fix indentiation (#197126) --- .../server/service/chat_function_client/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/chat_function_client/index.ts b/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/chat_function_client/index.ts index 9fa0f184da784..ad4b7f0a4fc92 100644 --- a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/chat_function_client/index.ts +++ b/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/chat_function_client/index.ts @@ -56,7 +56,7 @@ export class ChatFunctionClient { this.registerFunction( { name: GET_DATA_ON_SCREEN_FUNCTION_NAME, - description: 'Retrieve the structured data of content currently visible on the user’s screen. Use this tool to understand what the user is viewing at this moment to provide more accurate and context-aware responses to their questions.', + description: `Retrieve the structured data of content currently visible on the user's screen. Use this tool to understand what the user is viewing at this moment to provide more accurate and context-aware responses to their questions.`, visibility: FunctionVisibility.AssistantOnly, parameters: { type: 'object', @@ -82,7 +82,9 @@ export class ChatFunctionClient { ); this.registerAdhocInstruction({ - text: `The ${GET_DATA_ON_SCREEN_FUNCTION_NAME} function will retrieve specific content from the user’s screen by specifying a data key. Use this tool to provide context-aware responses. Available data: ${dedent(allData.map((data) => `${data.name}: ${data.description}`).join('\n'))}`, + text: `The ${GET_DATA_ON_SCREEN_FUNCTION_NAME} function will retrieve specific content from the user's screen by specifying a data key. Use this tool to provide context-aware responses. Available data: ${dedent( + allData.map((data) => `${data.name}: ${data.description}`).join('\n') + )}`, instruction_type: 'application_instruction', }); }