File tree Expand file tree Collapse file tree 1 file changed +11
-19
lines changed
typescript-sdk/apps/dojo/src/app/[integrationId]/feature/tool_based_generative_ui Expand file tree Collapse file tree 1 file changed +11
-19
lines changed Original file line number Diff line number Diff line change @@ -22,29 +22,21 @@ export default function ToolBasedGenerativeUI({ params }: ToolBasedGenerativeUIP
2222 // agent lock to the relevant agent
2323 agent = "tool_based_generative_ui"
2424 >
25- < Chat />
25+ < div className = "min-h-full w-full flex items-center justify-center" >
26+ < Haiku />
27+ < CopilotSidebar
28+ defaultOpen = { true }
29+ labels = { {
30+ title : "Haiku Generator" ,
31+ initial : "I'm a haiku generator 👋. How can I help you?" ,
32+ } }
33+ clickOutsideToClose = { false }
34+ />
35+ </ div >
2636 </ CopilotKit >
2737 ) ;
2838}
2939
30- function Chat ( ) {
31- const { visibleMessages } = useCopilotChat ( ) ;
32- console . log ( "VISIBLE MESSAGES" , visibleMessages ) ;
33- return (
34- < div className = "min-h-full w-full flex items-center justify-center" >
35- < Haiku />
36- < CopilotSidebar
37- defaultOpen = { true }
38- labels = { {
39- title : "Haiku Generator" ,
40- initial : "I'm a haiku generator 👋. How can I help you?" ,
41- } }
42- clickOutsideToClose = { false }
43- />
44- </ div >
45- ) ;
46- }
47-
4840function Haiku ( ) {
4941 const [ haiku , setHaiku ] = useState < {
5042 japanese : string [ ] ;
You can’t perform that action at this time.
0 commit comments