LLM Supported Models and Capabilities in NetSuite 2026.1
Discover LLM model support and capabilities in NetSuite 2026.1 for enhanced AI-driven text generation.
Starting in NetSuite 2026.1, new enhancements to the LLM (Large Language Model) capabilities have been introduced, specifically detailing the available models for text generation. This update allows developers to understand which models to use with the llm.generateText(options) and llm.generateTextStreamed(options) methods, alongside their supported features. The inclusion of retrieval-augmented generation (RAG) provides a way to enrich responses by utilizing additional documents, offering a more informative output from the AI.
Supported Models and Their Capabilities
The following table summarizes the LLM models available and their respective features:
| Model Family | Model Code | RAG Support | Preambles Support | Notes |
|---|---|---|---|---|
| ModelFamily.COHERE_COMMAND | cohere.command-a-03-2025 | Yes | Yes | - |
| ModelFamily.COHERE_COMMAND_LATEST | cohere.command-a-03-2025 | Yes | Yes | - |
| ModelFamily.GPT_OSS | openai.gpt-oss-120b | No | Yes | - |
| ModelFamily.GPT_OSS_LATEST | openai.gpt-oss-120b | No | Yes | - |
Key Features Explained
- Retrieval-Augmented Generation (RAG): This is an advanced feature that allows users to incorporate external documents into the generation process. By passing an array of
llm.Documentobjects through theoptions.documentsparameter, the LLM references this content to provide enhanced and contextually relevant responses. The output includesllm.Citationobjects, which indicate the source of the information used in the response. - Preambles: Developers can set an initial context for the LLM using the
options.preambleparameter. This acts as a guiding message that shapes the generation process, allowing for more tailored responses.
Using the LLM in SuiteScript
Method Overview
- The methods
llm.generateText(options)andllm.generateTextStreamed(options)are primarily used for generating responses from the LLM. While similar,generateTextreturns a complete response, andgenerateTextStreamedallows developers to access the response in real-time, token by token.
Important Parameters for LLM Methods
options.prompt(required): The prompt text that guides the LLM.options.chatHistory(optional): It allows the inclusion of previous messages to inform the current response.options.documents(optional): Relevant documents for enriched context in response generation, applicable only to certain models.
Practical Note
When utilizing these features, always remember to test with various models and parameters to find the optimal output for your specific use case. The inclusion of contextual documents can significantly enhance the relevance of generated responses.
Who This Affects
This update impacts several roles and modules within the NetSuite environment:
- Developers: Those implementing AI functionalities within applications.
- Administrators: Users overseeing SuiteScript configurations and AI Preferences.
- Product Managers: Professionals looking to leverage AI for enhanced customer interactions and information retrieval.
Key Takeaways
- NetSuite 2026.1 introduces support for various LLM models with distinct capabilities.
- Retrieval-augmented generation enhances response quality by integrating external documents.
- Preambles provide context, guiding the LLM towards generating more relevant outputs.
- The LLM methods are viable for both complete and streamed responses, offering flexibility for developers.
- Effective use of options can lead to significantly improved AI interactions based on specific business needs.
Frequently Asked Questions (4)
What models support Retrieval-Augmented Generation (RAG) in NetSuite 2026.1?
How do I enrich LLM responses using external documents in NetSuite 2026.1?
Is it possible to preconfigure a context for LLM responses in NetSuite 2026.1?
What's the difference between generateText and generateTextStreamed methods in SuiteScript?
Weekly Update History (1)
Updated llm.ModelFamily to add Cohere Command A (cohere.command-a-03-2025) to the list of supported models for the N/llm module.
View Oracle DocsWas this article helpful?
More in SuiteScript
- N/https Module: Binary File Support in NetSuite 2025.2
NetSuite 2026.1 adds binary file support to N/https for streamlined file handling.
- API Governance Units Calculation in NetSuite 2026.1
NetSuite 2026.1 introduces examples illustrating API governance unit calculations for both user event and scheduled scripts.
- Attach and Detach Operations in NetSuite 2026.1
Attach and detach operations for record relationships in NetSuite enhance data management and connectivity.
- Create-Form Operation in NetSuite 2026.1 REST Web Services
Create-form operation in NetSuite 2026.1 APIs streamlines record creation and enhances efficiency.
Also from NetSuite 2026.1
- Custom Labels for Additional Item Prices in NetSuite 2026.1
Custom labels enhance transaction summaries in NetSuite, improving clarity for item prices.
- Applied Trans Date and Period Enhancements in NetSuite 20...
Latest updates in NetSuite 2024.1 enhance Accounting SuiteApps with transaction line distribution features.
- Data Not Copied from Production to Sandbox in NetSuite 2026.1
In NetSuite 2026.1, key data like domains and customer roles are not copied to sandbox accounts during refreshes, impacting setup.
- Available Items Only Feature in NetSuite 2026.1
Available items only filtering boosts sales efficiency in NetSuite 2026.1 with Intelligent Item Recommendations.
Advertising
Reach SuiteScript Professionals
Put your product in front of NetSuite experts who work with SuiteScript every day.
Sponsor This Category