Skip to main content

chatgpt@2.0.0

deepResearch(message, options)
prompt(message, options)

This adaptor exports the following from common:

cursor()
dataPath()
dataValue()
dateFns
each()
field()
fields()
fn()
lastReferenceValue()
merge()
sourceValue()

Functions

deepResearch

deepResearch(message, options) ⇒ operation

Prompt GPT deep research interface

ParamTypeDescription
messagestringThe prompt
optionsDeepResearchOptionsModel, tools and other parameters (https://platform.openai.com/docs/guides/deep-research)

Example

deepResearch(
`Evaluate if the following company qualifies as a sustainable fashion brand:

INPUT: ${JSON.stringify($.data)}
Return JSON only with:
- sustainabilityStatus: "Certified", "Likely", or "Unverified"
- materialsUsed
- certifications
- confidenceLevel (0–5)
- researchNotes`,
{
model: 'o3-deep-research',
max_tool_calls: 1
}
)

prompt

prompt(message, options) ⇒ operation

Prompt the GPT chat interface to respond

ParamTypeDescription
messagestringThe prompt
optionsPromptOptionsModel, Reasoning Effort, Response Form and other parameters (https://platform.openai.com/docs/api-reference/chat/create)

Example

prompt(`Filter these emails and pick out the most urgent: ${JSON.stringify($.data)}`);

Interfaces

DeepResearchOptions

Options provided to Chat Responses Create (https://platform.openai.com/docs/guides/deep-research)

Properties

NameTypeDescription
modelstringWhich mode to use, i.e., o3-deep-research.
toolsstringAn array of tools to use for the search. Default [{"type": "web_search_preview"}] See (https://platform.openai.com/docs/guides/deep-research#tools)

PromptOptions

Options provided to Chat Completions Create (https://platform.openai.com/docs/api-reference/chat/create)

Properties

NameTypeDescription
modelstringWhich mode to use, i.e., o3-mini-2025-01-31.