Represents a block of system-level prompts or instructions in the conversation.

Example

const promptExample: PromptBlock = {
schema: '### System: {system}',
message: 'Some system message'
};

Hierarchy

  • PromptBlock

Properties

Properties

message?: string

Optional default message content for the system.

Used if a dynamic value isn't provided for {system} placeholder.

schema: string

The schema or format for the system message.

Can include placeholders like {system} which can be programmatically replaced with actual messages later.

Generated using TypeDoc