Skip to main content

@elizaos/core v1.0.6 / v2 / composePromptFromState

Function: composePromptFromState()

composePromptFromState(options): string

Function to compose a prompt using a provided template and state.

Parameters​

• options

Object containing state and template information.

• options.state: State

The state object containing values to fill the template.

• options.template: TemplateType

The template to be used for composing the prompt.

Returns​

string

The composed prompt output.

Defined in​

packages/core/src/specs/v2/utils.ts:74