SuiteScript 2.1 Free Embed Usage Method Syntax
SuiteScript 2.1 syntax for calling llm.getRemainingFreeEmbedUsage() from the N/llm module.
SuiteScript 2.1 documents llm.getRemainingFreeEmbedUsage() as a call on llm, assigning its result to embedUsage. Oracle labels the snippet as syntax rather than a functional example. Use it to confirm the invocation form, then consult the linked N/llm script samples when a complete implementation is required.
What is the documented syntax?
Oracle provides the following member syntax:
1// Add additional code2...3 4const embedUsage = llm.getRemainingFreeEmbedUsage();5 6...7// Add additional codeThe example places the call in a SuiteScript 2.1 context and assigns its result to a variable named embedUsage. The surrounding comments and ellipses indicate that additional code is omitted from the syntax presentation.
What does this syntax example establish?
The documented invocation is llm.getRemainingFreeEmbedUsage() on llm. It also shows one possible assignment statement:
| Element | Shown in the syntax sample |
|---|---|
| Call | llm.getRemainingFreeEmbedUsage() |
| Assigned variable | embedUsage |
| Script version context | SuiteScript 2.1 |
| Example status | Syntax only; not a functional example |
The source does not provide a complete script in this syntax topic. It specifically directs readers to N/llm Module Script Samples for complete examples.
Where can you find broader N/llm examples?
The linked N/llm sample collection covers several module features, including sending a prompt and receiving a response, evaluating a prompt, providing source documents, receiving a partial response, using tools, and finding similar items using embeddings. These samples provide broader context than the member-level syntax shown here.
That distinction matters when reviewing this call: the snippet confirms its written form, but it is not presented as a complete implementation. Avoid treating the omitted sections as prescribed script structure or inferring additional behavior from the variable name alone.
What related syntax references are available?
The following related articles remain useful navigation points for other SuiteScript topics:
- llm.getRemainingUsage() Syntax in SuiteScript 2026.2
- runtime.isNextActive() Syntax in NetSuite 2026.2
- NetSuite Record Syntax for SuiteScript 2.x Operations
- Field Object Syntax in SuiteScript 2.x Programming
- N/http Module Syntax for SuiteScript Redirects
Who This Affects
- Developers reviewing SuiteScript 2.1
N/llmmember syntax - Teams looking for a complete N/llm script example rather than a member-level code fragment
- Reviewers validating that a script uses the documented call form
Key Takeaways
- The documented SuiteScript 2.1 call is
llm.getRemainingFreeEmbedUsage(). - Oracle's syntax sample assigns the call result to
embedUsage. - The published snippet is not a functional example and includes placeholders for additional code.
- For complete N/llm implementations, use the linked N/llm Module Script Samples.
Frequently Asked Questions (4)
Is llm.getRemainingFreeEmbedUsage() shown as a SuiteScript 2.1 call only?
Does the article include a complete working script example for using llm.getRemainingFreeEmbedUsage()?
How is the llm.getRemainingFreeEmbedUsage() call presented in the snippet—assigned to a variable or used inline?
Can I infer script structure or behavior from the variable name embedUsage or the omitted sections in the snippet?
Was this article helpful?
More in AI
- Prompt Studio: Generative AI Management in NetSuite 2026.1
Prompt Studio in NetSuite 2026.1 enhances generative AI management, enabling customization of prompts and Text Enhance actions.
- N/llm Module: Usage Limits and Additional Requests in NetSuite
In NetSuite 2026.1, the N/llm module sets usage limits and options for additional requests via Oracle Cloud.
- SuiteCloud Agent Skills for AI Development in NetSuite 2026.1
SuiteCloud Agent Skills enhance development workflows with AI-driven guidance in NetSuite 2026.1, improving automation and process standardization.
- Required Features and Permissions for NetSuite AI Connector
Ensure Server SuiteScript and OAuth 2.0 are enabled for secure usage of the NetSuite AI Connector Service.
Advertising
Reach AI Professionals
Put your product in front of NetSuite experts who work with AI every day.
Sponsor This Category