chatgpt@2.0.0
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
Param | Type | Description |
---|---|---|
message | string | The prompt |
options | DeepResearchOptions | Model, 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
Param | Type | Description |
---|---|---|
message | string | The prompt |
options | PromptOptions | Model, 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
Name | Type | Description |
---|---|---|
model | string | Which mode to use, i.e., o3-deep-research . |
tools | string | An 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
Name | Type | Description |
---|---|---|
model | string | Which mode to use, i.e., o3-mini-2025-01-31 . |