effect-io-ai

Package: @effect/ai
Module: Prompt

Prompt.MessageConstructorParams

A utility type for specifying the parameters required to construct a specific message for a prompt.

Signature

type MessageConstructorParams<M> = Omit<M, MessageTypeId | "role" | "options"> & {
  /**
   * Optional provider-specific options for this message.
   */
  readonly options?: Part["options"] | undefined
}

Source

Since v1.0.0