Skip to main content

core.botevent

Home > @medplum/core > BotEvent

BotEvent interface

Signature:

export interface BotEvent<T = unknown> 

Properties

Property

Modifiers

Type

Description

bot

readonly

Reference<Bot>

contentType

readonly

string

headers?

readonly

Record<string, string | string[] | undefined>

(Optional) Headers from the original request, when invoked by HTTP request

input

readonly

T

requester?

readonly

Reference<Bot | ClientApplication | Patient | Practitioner | RelatedPerson>

(Optional)

responseStream?

readonly

BotResponseStream

(Optional) Optional response stream when invoked with SSE (Server Side Events)

secrets

readonly

Record<string, ProjectSetting>

traceId?

readonly

string

(Optional)