SuiteScript 2.1 Free Embed Usage Method Syntax

SuiteScript 2.1 syntax for calling llm.getRemainingFreeEmbedUsage() from the N/llm module.

·2 min read·View Oracle Docs

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:

suitescript
1// Add additional code
2...
3
4const embedUsage = llm.getRemainingFreeEmbedUsage();
5
6...
7// Add additional code

The 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:

ElementShown in the syntax sample
Callllm.getRemainingFreeEmbedUsage()
Assigned variableembedUsage
Script version contextSuiteScript 2.1
Example statusSyntax 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/llm member 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?
The documented member syntax is presented in a SuiteScript 2.1 context. The article shows the invocation form on the llm object as llm.getRemainingFreeEmbedUsage().
Does the article include a complete working script example for using llm.getRemainingFreeEmbedUsage()?
No. The article labels the snippet as syntax only and explicitly directs readers to the N/llm Module Script Samples for complete implementations and broader examples.
How is the llm.getRemainingFreeEmbedUsage() call presented in the snippet—assigned to a variable or used inline?
The snippet shows the call assigned to a variable named embedUsage (const embedUsage = llm.getRemainingFreeEmbedUsage()). The surrounding ellipses and comments indicate additional code is omitted from the syntax presentation.
Can I infer script structure or behavior from the variable name embedUsage or the omitted sections in the snippet?
No. The article warns against treating the omitted sections as prescribed script structure or inferring additional behavior from the variable name alone. It emphasizes that the snippet confirms only the written form of the call.
Source: Syntax Oracle NetSuite Help Center. This article was generated from official Oracle documentation and enriched with additional context and best practices.

Was this article helpful?

More in AI

View all AI articles →