@@ -10,33 +10,33 @@ import {
10
10
import { useSession } from "next-auth/react" ;
11
11
import { useEffect , useRef , useState } from "react" ;
12
12
import AISpinner from "./AISpinner" ;
13
- import { GrafanaEmbed } from "./McpQueryPage /GrafanaEmbed" ;
13
+ import { GrafanaEmbed } from "./TorchAgentPage /GrafanaEmbed" ;
14
14
import {
15
15
useAnimatedCounter ,
16
16
useAutoScroll ,
17
17
useThinkingMessages ,
18
18
useTokenCalculator ,
19
- } from "./McpQueryPage /hooks" ;
19
+ } from "./TorchAgentPage /hooks" ;
20
20
import {
21
21
ChunkMetadata ,
22
22
LoaderWrapper ,
23
- McpQueryPageContainer ,
24
23
QuerySection ,
25
24
ResponseText ,
26
25
ResultsSection ,
27
26
ScrollToBottomButton ,
28
- } from "./McpQueryPage/styles" ;
29
- import { TodoList } from "./McpQueryPage/TodoList" ;
30
- import { ToolUse } from "./McpQueryPage/ToolUse" ;
31
- import { MessageWrapper , ParsedContent } from "./McpQueryPage/types" ;
27
+ TorchAgentPageContainer ,
28
+ } from "./TorchAgentPage/styles" ;
29
+ import { TodoList } from "./TorchAgentPage/TodoList" ;
30
+ import { ToolUse } from "./TorchAgentPage/ToolUse" ;
31
+ import { MessageWrapper , ParsedContent } from "./TorchAgentPage/types" ;
32
32
import {
33
33
extractGrafanaLinks ,
34
34
formatElapsedTime ,
35
35
formatTokenCount ,
36
36
renderTextWithLinks ,
37
- } from "./McpQueryPage /utils" ;
37
+ } from "./TorchAgentPage /utils" ;
38
38
39
- export const McpQueryPage = ( ) => {
39
+ export const TorchAgentPage = ( ) => {
40
40
const session = useSession ( ) ;
41
41
const theme = useTheme ( ) ;
42
42
@@ -51,10 +51,10 @@ export const McpQueryPage = () => {
51
51
const [ typingSpeed ] = useState ( 10 ) ;
52
52
const [ thinkingMessageIndex , setThinkingMessageIndex ] = useState ( 0 ) ;
53
53
const [ startTime , setStartTime ] = useState < number | null > ( null ) ;
54
- const [ elapsedTime , setElapsedTime ] = useState ( 0 ) ; // in seconds
55
- const [ totalTokens , setTotalTokens ] = useState ( 0 ) ; // track total tokens for display
56
- const [ completedTokens , setCompletedTokens ] = useState ( 0 ) ; // final token count after completion
57
- const [ completedTime , setCompletedTime ] = useState ( 0 ) ; // final time after completion
54
+ const [ elapsedTime , setElapsedTime ] = useState ( 0 ) ;
55
+ const [ totalTokens , setTotalTokens ] = useState ( 0 ) ;
56
+ const [ completedTokens , setCompletedTokens ] = useState ( 0 ) ;
57
+ const [ completedTime , setCompletedTime ] = useState ( 0 ) ;
58
58
const [ error , setError ] = useState ( "" ) ;
59
59
const [ debugVisible , setDebugVisible ] = useState ( false ) ;
60
60
@@ -554,14 +554,14 @@ export const McpQueryPage = () => {
554
554
// Authentication check
555
555
if ( session . status === "loading" ) {
556
556
return (
557
- < McpQueryPageContainer >
557
+ < TorchAgentPageContainer >
558
558
< QuerySection sx = { { padding : "20px" , textAlign : "center" } } >
559
559
< AISpinner />
560
560
< Typography variant = "h6" sx = { { mt : 2 } } >
561
561
Checking authentication...
562
562
</ Typography >
563
563
</ QuerySection >
564
- </ McpQueryPageContainer >
564
+ </ TorchAgentPageContainer >
565
565
) ;
566
566
}
567
567
@@ -571,7 +571,7 @@ export const McpQueryPage = () => {
571
571
! ( session . data as any ) ?. accessToken
572
572
) {
573
573
return (
574
- < McpQueryPageContainer >
574
+ < TorchAgentPageContainer >
575
575
< QuerySection sx = { { padding : "20px" , textAlign : "center" } } >
576
576
< Typography variant = "h4" gutterBottom >
577
577
Authentication Required
@@ -584,7 +584,7 @@ export const McpQueryPage = () => {
584
584
Please sign in to continue.
585
585
</ Typography >
586
586
</ QuerySection >
587
- </ McpQueryPageContainer >
587
+ </ TorchAgentPageContainer >
588
588
) ;
589
589
}
590
590
@@ -743,7 +743,7 @@ export const McpQueryPage = () => {
743
743
} ;
744
744
745
745
return (
746
- < McpQueryPageContainer >
746
+ < TorchAgentPageContainer >
747
747
{ showScrollButton && (
748
748
< Tooltip title = "Go to bottom and resume auto-scroll" >
749
749
< ScrollToBottomButton
@@ -758,10 +758,45 @@ export const McpQueryPage = () => {
758
758
) }
759
759
760
760
< Typography variant = "h4" gutterBottom >
761
- PyTorch Grafana Agent
761
+ TorchAgent
762
762
</ Typography >
763
+
764
+ < Typography
765
+ variant = "body1"
766
+ paragraph
767
+ sx = { {
768
+ mb : 3 ,
769
+ p : 2 ,
770
+ backgroundColor : "background.paper" ,
771
+ borderRadius : 1 ,
772
+ border : "1px solid" ,
773
+ borderColor : "divider" ,
774
+ } }
775
+ >
776
+ Welcome to TorchAgent, your intelligent assistant for PyTorch
777
+ infrastructure analysis and monitoring. This tool helps you create
778
+ custom time-series visualizations, analyze CI/CD metrics, and gain
779
+ insights into the PyTorch development workflow. Simply describe what
780
+ you'd like to explore, and TorchAgent will generate the appropriate
781
+ queries and dashboards for you. Data we have access to:
782
+ < ul >
783
+ < li >
784
+ PyTorch GitHub repository data (comments, issues, PRs, including
785
+ text inside of these)
786
+ </ li >
787
+ < li >
788
+ PyTorch GitHub Actions CI data (build/test/workflow results, error
789
+ log classifications, duration, runner types)
790
+ </ li >
791
+ < li >
792
+ CI cost / duration data: how long does the average job/workflow run)
793
+ </ li >
794
+ < li > Benchmarking data in the benchmarking database</ li >
795
+ </ ul >
796
+ </ Typography >
797
+
763
798
< Typography variant = "body1" paragraph >
764
- What timeseries should we create for you ?
799
+ What can I help you graph today ?
765
800
</ Typography >
766
801
767
802
< QuerySection >
@@ -892,6 +927,6 @@ export const McpQueryPage = () => {
892
927
</ Box >
893
928
) }
894
929
</ ResultsSection >
895
- </ McpQueryPageContainer >
930
+ </ TorchAgentPageContainer >
896
931
) ;
897
932
} ;
0 commit comments