Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.illa.io/llms.txt

Use this file to discover all available pages before exploring further.

Prompt is a validated wrapper for user input and tool-result payloads.

Constructor

new Prompt(options)
Accepted options (discriminated):
  • { text: string }
  • { toolResult: ToolOutcomesType }
PromptConfigurationConflict is thrown if both or neither are set.

Methods

getSnapshot

getSnapshot(): PromptSnapshot

getNormalizedSnapshot

getNormalizedSnapshot(): NormalizedPromptSnapshot

toString

toString(): string

Example

const message = new Prompt({ text: 'Show my Base balance' })