1
1
import { ScrollArea } from "@/components/ui/scroll-area" ;
2
- import { ChevronRight , ChevronLeft , FunctionSquare } from "lucide-react" ;
2
+ import { ChevronRight , ChevronLeft , FunctionSquare , Clipboard } from "lucide-react" ;
3
3
import type { Team , AssistantAgentConfig , ToolConfig , Component } from "@/types/datamodel" ;
4
4
import { Button } from "@/components/ui/button" ;
5
5
import { Badge } from "@/components/ui/badge" ;
@@ -145,11 +145,33 @@ export function AgentDetailsSidebar({ selectedTeam }: AgentDetailsSidebarProps)
145
145
const assistantAgent = participant . config as AssistantAgentConfig ;
146
146
return (
147
147
< div key = { index } className = "text-sm text-white/50" >
148
- < div className = "flex items-center justify-between" >
149
- < h5 className = "text-white font-semibold text-lg flex items-center gap-2" >
150
- < KagentLogo className = "h-5 w-5" />
151
- { participant . label }
152
- </ h5 >
148
+ < div className = "flex items-start flex-col space-y-2" >
149
+ < div className = "flex items-center justify-between w-full" >
150
+ < div className = "inline-flex justify-center items-center gap-2" >
151
+ < KagentLogo className = "h-5 w-5" />
152
+ < h5 className = "text-white font-semibold text-base" > { participant . label } </ h5 >
153
+ </ div >
154
+ < div >
155
+ < TooltipProvider >
156
+ < Tooltip >
157
+ < TooltipTrigger asChild >
158
+ < Button
159
+ variant = "link"
160
+ size = "sm"
161
+ onClick = { async ( ) => await navigator . clipboard . writeText ( JSON . stringify ( selectedTeam ) ) }
162
+ className = "px-0 text-white/80 hover:text-white"
163
+ >
164
+ < Clipboard className = "h-4 w-4 mr-2" />
165
+ </ Button >
166
+ </ TooltipTrigger >
167
+ < TooltipContent >
168
+ < p > Copy JSON representation</ p >
169
+ </ TooltipContent >
170
+ </ Tooltip >
171
+ </ TooltipProvider >
172
+ </ div >
173
+ </ div >
174
+
153
175
< TooltipProvider >
154
176
< Tooltip >
155
177
< TooltipTrigger asChild >
@@ -158,7 +180,7 @@ export function AgentDetailsSidebar({ selectedTeam }: AgentDetailsSidebarProps)
158
180
</ Badge >
159
181
</ TooltipTrigger >
160
182
< TooltipContent >
161
- < p > Model agent is using</ p >
183
+ < p > The model agent is using</ p >
162
184
</ TooltipContent >
163
185
</ Tooltip >
164
186
</ TooltipProvider >
0 commit comments