Skip to main content

UiPromptProposedMessage

@gravity-rail/sdk


@gravity-rail/sdk / UiPromptProposedMessage

Interface: UiPromptProposedMessage

The draft card of a proposed_message prompt.

A projection of the gated call's own arguments, made by lib.ai.proposed_messages: what the card shows and which fields the member may change. The call itself, with every argument, stays in the Chat's history as the model wrote it; Send runs that call, with the member's changes to :attr:editableFields applied.

Properties​

body​

body: string

The message text


cc?​

optional cc: string | null

Copied addresses; email only


editableFields​

editableFields: UiPromptProposedMessageEditableFieldsItem[]

The fields the member may change before sending


sendsAs​

sendsAs: UiPromptProposedMessageSendsAs

member: from the member's own connected account. app: as the workspace's installed app.


service​

service: UiPromptProposedMessageService

Where the message goes


subject?​

optional subject: string | null

Email subject; email only


thread?​

optional thread: string | null

The thread or message the post replies to; absent for a new message


to​

to: string

Destination as the call names it: email addresses, or a Slack or Teams channel, conversation or user id


tool​

tool: string

The tool that sends the message, e.g. slack_post_as_member