Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions samples/annotated.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
/**
* Determines if a child table extends a parent table
*
* This function checks the table hierarchy to determine if the specified child table
* is an extension of the parent table. It uses the TableUtils API to examine the
* table relationships in the system.
*
* @param {string} parent - The name of the parent table to check
* @param {string} child - The name of the child table to verify as an extension
* Determines if one table extends another in the ServiceNow database schema
*
* @function isTableExtended
* @param {string} parent - The name of the potential parent table
* @param {string} child - The name of the potential child table
* @returns {boolean} True if the child table extends the parent table, false otherwise
* @example
* // Check if the incident table extends the task table
* if(isTableExtended('task', 'incident')) {
* gs.info('Incident extends task');
* }
*/
function isTableExtended(parent, child){
gs.include("j2js");
Expand Down
1 change: 1 addition & 0 deletions src/snowdoc/llm_jsdoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ def run_gemini(system_prompt, user_prompt):

• Infer missing param / return types (string, number, boolean, GlideRecord, Array<Object>, Object, Date).
• Any function whose name starts with “_” is private (`@private`).
• Include an `@example` usage block demonstrating how to instantiate and use the Script Include.
• Never include method bodies when operating in `signature` mode."""

USER_PROMPT_TEMPLATE = """
Expand Down