Suggestion Adapters

Suggestion adapters for providing starter prompts, contextual actions, and guided composer options to assistant-ui runtimes.

API Reference

createSuggestionAdapter

const createSuggestionAdapter: (options: CreateSuggestionAdapterOptions) => SuggestionAdapter;

SuggestionAdapter

SuggestionAdapter
key?string | number | symbol | undefined

Changes when the adapter should regenerate suggestions for a settled run.

generate( options: SuggestionAdapterGenerateOptions, ) => | Promise<readonly ThreadSuggestion[]> | AsyncGenerator<readonly ThreadSuggestion[], void>