Skip to main content
Prompt is a validated wrapper for user input and tool-result payloads.

Constructor

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

Methods

getSnapshot

getNormalizedSnapshot

toString

Example