Prompt is a validated wrapper for user input and tool-result payloads.
Constructor
{ text: string }{ toolResult: ToolOutcomesType }
PromptConfigurationConflict is thrown if both or neither are set.
Create and normalize user and tool messages for chat calls
Prompt is a validated wrapper for user input and tool-result payloads.
new Prompt(options)
{ text: string }{ toolResult: ToolOutcomesType }PromptConfigurationConflict is thrown if both or neither are set.
getSnapshot(): PromptSnapshot
getNormalizedSnapshot(): NormalizedPromptSnapshot
toString(): string
const message = new Prompt({ text: 'Show my Base balance' })