Code generation properties

  • Release version: Yokohama
  • Updated January 30, 2025
  • 1 minute to read
  • You can adjust how code generation functions on an instance using several advanced properties.

    Note:
    To open the System Properties [sys_properties] table, enter sys_properties.list in the navigation filter.
    Table 1. Properties for code generation
    Property Description
    sn_now_assist_code.enable_code_assist

    Enables using code generation in supported script editors.

    • Type: true | false
    • Default value: true
    • Location: System Property [sys_properties] table
    • Learn more: You can also enable code generation from Now Assist Admin. For more information, see Activate a Now Assist skill.
    sn_now_assist_code.enable_promptless_experience

    Enables using code completion in the script editor.

    • Type: true | false
    • Default value: false
    • Location: System Property [sys_properties] table
    sn_now_assist_code.enable_prompt_modal

    Enables using the Code with Now Assist dialog box to provide text prompts.

    sn_now_assist_code.show_ai_code_line_marker

    Enables tracking which lines of code are AI-generated. This code is indicated by a line next to the lines of code in a script editor. If you edit AI-generated code, the line indicator doesn’t appear for those lines of code.

    sn_now_assist_code.collect_schema_for_code_assist

    Specifies whether to collect the data schema of the table that a business rule or client script runs on when using code generation. If you set this property to false, you can receive code suggestions quicker but may get less contextual suggestions.

    • Type: true | false
    • Default value: true
    • Location: System Property [sys_properties] table
    sn_now_assist_code.code_assist_model_provider

    All requests for the Now Assist for Code model are redirected to Azure OpenAI for evaluation and response. Additionally, you’ll get access to the Code Explain and Code Summarize features.