MessageRenderers
Defined in: react/src/ui/message.tsx:30
Extended by
Section titled “Extended by”Properties
Section titled “Properties”labels?
Section titled “labels?”optional labels?: ConversationLabelOverrides;Defined in: react/src/ui/message.tsx:45
onRespond?
Section titled “onRespond?”optional onRespond?: RespondToRequest;Defined in: react/src/ui/message.tsx:43
onSource?
Section titled “onSource?”optional onSource?: (source) => void;Defined in: react/src/ui/message.tsx:42
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
source |
SourcePart |
Returns
Section titled “Returns”void
onStartClientTool?
Section titled “onStartClientTool?”optional onStartClientTool?: (requestId) => Promise<RespondResult>;Defined in: react/src/ui/message.tsx:38
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
requestId |
string |
Returns
Section titled “Returns”Promise<RespondResult>
renderApproval?
Section titled “renderApproval?”optional renderApproval?: (actions) => ReactNode;Defined in: react/src/ui/message.tsx:35
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
actions |
RequestActions |
Returns
Section titled “Returns”ReactNode
renderForm?
Section titled “renderForm?”optional renderForm?: (props) => ReactNode;Defined in: react/src/ui/message.tsx:37
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
props |
SchemaFormProps |
Returns
Section titled “Returns”ReactNode
renderPart?
Section titled “renderPart?”optional renderPart?: (part, context) => ReactNode;Defined in: react/src/ui/message.tsx:34
Return undefined for the default, null to hide a part. Unknown data draws nothing.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
part |
DisplayPart |
context |
PartRenderContext |
Returns
Section titled “Returns”ReactNode
renderRequest?
Section titled “renderRequest?”optional renderRequest?: (actions) => ReactNode;Defined in: react/src/ui/message.tsx:36
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
actions |
RequestActions |
Returns
Section titled “Returns”ReactNode
renderText?
Section titled “renderText?”optional renderText?: (part, context) => ReactNode;Defined in: react/src/ui/message.tsx:32
Import Markdown separately and pass it here. Plain text is the default.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
part |
TextPart |
context |
PartRenderContext |
Returns
Section titled “Returns”ReactNode
requests?
Section titled “requests?”optional requests?: readonly RequestView[];Defined in: react/src/ui/message.tsx:44
specialistLabels?
Section titled “specialistLabels?”optional specialistLabels?: Readonly<Record<string, string>>;Defined in: react/src/ui/message.tsx:41
Keyed by run id or registered agentId; never parsed from an opaque run id.
toolLabels?
Section titled “toolLabels?”optional toolLabels?: Readonly<Record<string, string>>;Defined in: react/src/ui/message.tsx:39