effect-io-ai

Package: @effect/ai
Module: Prompt

Prompt.SystemMessage

Message representing system instructions or context.

Example

import { Prompt } from "@effect/ai"

const systemMessage: Prompt.SystemMessage = Prompt.makeMessage("system", {
  content: "You are a helpful assistant specialized in mathematics. " +
   "Always show your work step by step."
})

Signature

export interface SystemMessage extends BaseMessage<"system", SystemMessageOptions> {
  /**
   * The system instruction or context as plain text.
   */
  readonly content: string
}

Source

Since v1.0.0