Documentation Index
Fetch the complete documentation index at: https://anvil.servicetitan.com/llms.txt
Use this file to discover all available pages before exploring further.
MarkdownMessage displays rich formatted responses with markdown support.
Documentation Index
Fetch the complete documentation index at: https://anvil.servicetitan.com/llms.txt
Use this file to discover all available pages before exploring further.
import { MarkdownMessage } from "@servicetitan/anvil2-ext-atlas";
function MarkdownMessageExample() {
return (
<MarkdownMessage
message="Here are some options:\n\n1. **Option A** - First choice\n2. **Option B** - Second choice"
/>
);
}
import { MarkdownMessage } from "@servicetitan/anvil2-ext-atlas";
function MarkdownWithToolbox() {
return (
<MarkdownMessage
message="Here is a detailed response with **formatting**."
toolboxProps={{
onLike: () => handleLike(),
onDislike: () => handleDislike(),
onRetry: () => handleRetry(),
}}
/>
);
}
import { MarkdownMessage } from "@servicetitan/anvil2-ext-atlas";
import CustomLogo from "./custom-logo.svg";
function CustomBrandedMessage() {
return (
<MarkdownMessage
message="Hello from the custom assistant!"
svgIcon={CustomLogo}
assistant="My Assistant"
/>
);
}
<MarkdownMessage
message="**Bold** and *italic*"
error="Error message"
svgIcon={CustomIcon}
assistant="Atlas"
onRetry={handleRetry}
toolboxProps={{
onLike: handleLike,
onDislike: handleDislike,
}}
/>
MarkdownMessage PropsWas this page helpful?