Skip to content

Commit edfcfe7

Browse files
committed
Updated examples
1 parent fd21517 commit edfcfe7

File tree

2 files changed

+39
-12
lines changed

2 files changed

+39
-12
lines changed

packages/module/patternfly-docs/content/extensions/chatbot/examples/Messages/MessageWithDeepThinking.tsx

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,29 @@ import Message from '@patternfly/chatbot/dist/dynamic/Message';
33
import patternflyAvatar from './patternfly_avatar.jpg';
44

55
export const MessageWithDeepThinkingExample: FunctionComponent = () => (
6-
<Message
7-
name="Bot"
8-
role="bot"
9-
avatar={patternflyAvatar}
10-
content="This example has a body description that's within the recommended limit of 2 lines."
11-
deepThinking={{
12-
toggleContent: 'Show thinking',
13-
subheading: 'Thought for 3 seconds',
14-
body: "Here's why I said this."
15-
}}
16-
/>
6+
<>
7+
<Message
8+
name="Bot"
9+
role="bot"
10+
avatar={patternflyAvatar}
11+
content="This example has a body description that's within the recommended limit of 2 lines."
12+
deepThinking={{
13+
toggleContent: 'Show thinking',
14+
subheading: 'Thought for 3 seconds',
15+
body: "Here's why I said this."
16+
}}
17+
/>
18+
<Message
19+
name="Bot"
20+
role="bot"
21+
avatar={patternflyAvatar}
22+
content="This example has deep thinking that is collapsed by default:"
23+
deepThinking={{
24+
isDefaultExpanded: false,
25+
toggleContent: 'Show thinking',
26+
subheading: 'Thought for 3 seconds',
27+
body: "Here's why I said this."
28+
}}
29+
/>
30+
</>
1731
);

packages/module/patternfly-docs/content/extensions/chatbot/examples/Messages/MessageWithToolCall.tsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,27 @@ export const MessageWithToolCallExample: FunctionComponent = () => {
3131
name="Bot"
3232
role="bot"
3333
avatar={patternflyAvatar}
34-
content="This example has an expandable tool call title, with an additional description::"
34+
content="This example has an expandable tool call title, with an additional description:"
3535
toolCall={{
3636
titleText: "Calling 'awesome_tool_expansion'",
3737
expandableContent: 'This is the expandable content for the tool call.',
3838
isLoading: toolCallsAreLoading,
3939
loadingText: "Loading 'awesome_tool_expansion'"
4040
}}
4141
/>
42+
<Message
43+
name="Bot"
44+
role="bot"
45+
avatar={patternflyAvatar}
46+
content="This example has an expandable tool call that is expanded by default:"
47+
toolCall={{
48+
isDefaultExpanded: true,
49+
titleText: "Calling 'awesome_tool_expansion'",
50+
expandableContent: 'This is the expandable content for the tool call.',
51+
isLoading: toolCallsAreLoading,
52+
loadingText: "Loading 'awesome_tool_expansion'"
53+
}}
54+
/>
4255
</FlexItem>
4356
</Flex>
4457
);

0 commit comments

Comments
 (0)