N/llm
The N/llm module supports generative artificial intelligence (AI) capabilities in SuiteScript.
Oracle reference0 of 13 methods have Mynt syntax 0%
0 implemented0 in progress0 planned0 under consideration13 open for proposals
Module functions
- llm.createChatMessage(options) Creates a chat message based on a specified role and text. Open for proposals ·
- llm.createDocument(options) Creates a document to be used as source content when calling the LLM. Open for proposals ·
- llm.createTool(options) Creates a tool the LLM can request. Open for proposals ·
- llm.createToolParameter(options) Creates a tool parameter for a tool. Open for proposals ·
- llm.createToolResult(options) Creates a tool result to send back to the LLM. Open for proposals ·
- llm.embed(options) Returns the embeddings from the LLM for a given input. Open for proposals ·
- llm.evaluatePrompt(options) Takes the ID of an existing prompt and values for variables used in the prompt and returns the response from the LLM. Open for proposals ·
- llm.evaluatePromptStreamed(options) Takes the ID of an existing prompt and values for variables used in the prompt and returns the streamed response from the LLM. Open for proposals ·
- llm.generateText(options) Takes a prompt and parameters for the LLM and returns the response from the LLM. Open for proposals ·
- llm.generateTextStreamed(options) Takes a prompt and parameters for the LLM and returns the streamed response from the LLM. Open for proposals ·
- llm.getRemainingFreeUsage() Deprecated. Open for proposals ·
- llm.getRemainingFreeEmbedUsage() Deprecated. Open for proposals ·
- llm.getRemainingUsage() Returns the number of NetSuite AI Units remaining. Open for proposals ·