Skip to main content

OPENAI_THREAD

Create or reuse an OpenAI thread. If cfg.reuse and cfg.storeIn are provided the thread id may be reused. The created thread is written to the flow context.

At a glance

  • Category LLM
  • Version: 1.0.9
  • Applications: all
  • Scope: all
  • Default Service: OPENAI_COMPLETION

Config Options

NameDescriptionDefaultRequiredResolvedConstraintsConditional Rules
reuseIf true and storeIn provided, try to reuse a persisted thread idNonefalsefalseNoneNone
storeInStorage location for persisting thread id: page/session/browser.NonefalsefalseNoneNone

Outputs

TypeDescriptionOptional
threadCreated thread objectfalse

Examples

Create a new thread and persist id

- step: OPENAI_THREAD
reuse: true
storeIn: "session"

See Also

General Resources: