File tree Expand file tree Collapse file tree 2 files changed +39
-12
lines changed
packages/module/patternfly-docs/content/extensions/chatbot/examples/Messages Expand file tree Collapse file tree 2 files changed +39
-12
lines changed Original file line number Diff line number Diff line change @@ -3,15 +3,29 @@ import Message from '@patternfly/chatbot/dist/dynamic/Message';
33import patternflyAvatar from './patternfly_avatar.jpg' ;
44
55export 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) ;
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments