Skip to main content

Function: composeActionExamples

composeActionExamples(actionsData, count): string

Composes a set of example conversations based on provided actions and a specified count. It randomly selects examples from the provided actions and formats them with generated names.

Parameters

NameTypeDescription
actionsDataAction[]An array of Action objects from which to draw examples.
countnumberThe number of examples to generate.

Returns

string

A string containing formatted examples of conversations.