Skip to content

Commit

Permalink
[Obs AI Assistant] Fix indentiation (#197126)
Browse files Browse the repository at this point in the history
  • Loading branch information
viduni94 committed Oct 30, 2024
1 parent e83eb9c commit e3af6ec
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 users 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',
Expand All @@ -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',
});
}
Expand Down

0 comments on commit e3af6ec

Please sign in to comment.