module function · N/llm

evaluatePromptStreamed()

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.

Implementation
Not started
Design
Open for proposals suggest how it should read
Proposals
A
Signature
llm.evaluatePromptStreamed(options)
Module
N/llm
Returns
llm.StreamedResponse
Governance
100
Script types
Server scripts
Version
SuiteScript 2.x, documented for 2.1; since NetSuite 2025.1
call shapefrom Oracle's parameter table
1llm.evaluatePromptStreamed({2    id:        /* string | number, required */,3    ociConfig: /* Object, optional */,4    timeout:   /* number, optional */,5    variables: /* Object, optional */6});
Oracle reference for this method
ParameterTypeRequiredDescription
options.idstring | numberrequiredID of the prompt to evaluate.
options.ociConfigObjectoptionalImportant: This object is no longer supported. Any values specified in this object are ignored.
options.timeoutnumberoptionalTimeout in milliseconds, defaults to 30,000.
options.variablesObjectoptionalValues for the variables that are used in the prompt. Provide these values as an object with key-value pairs. For an example, see the Syntax section. You can use Prompt Studio to generate a SuiteScript example that uses this method and includes the variables for a prompt in the correct format. When viewing a prompt in Prompt Studio, click Show SuiteScript Example to generate SuiteScript code with all of the variables that prompt uses. You can then use this code in your scripts and provide a value for each variable.
B

No Mynt syntax yet.

Nothing in the language compiles to llm.evaluatePromptStreamed(options) today. How should it read?

C

Competing syntax for evaluatePromptStreamed, from GitHub Discussions. Select two or more to compare them side by side.

All discussions

Loading proposals from GitHub…

D

Write the Mynt you wish you could write.

A good proposal shows the syntax, the SuiteScript it should become, and argues for it: why it is clearer, how it fits the rest of the language, what it makes harder.

  • Clarity. Does it say what happens, without ceremony?
  • Consistency. Does it read like load, save and Ref[field]?
  • Expressiveness. Does it cover the cases people actually write?
  • Honesty. Does it hide a NetSuite cost, such as governance, that a reader should see?

N/llm · llm.evaluatePromptStreamed(options)

Suggest syntax for evaluatePromptStreamed