Skip to content

Commit 6a94c19

Browse files
committed
update library prompts for config
1 parent 1dde36e commit 6a94c19

2 files changed

Lines changed: 31 additions & 15 deletions

File tree

internal/api/user/list_prompts.go

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,33 +18,49 @@ var defaultPrompts = []*userv1.Prompt{
1818
// CreatedAt: timestamppb.New(time.Time{}),
1919
// UpdatedAt: timestamppb.New(time.Time{}),
2020
// Title: "Enhance Academic Writing (Powered by XtraGPT)",
21-
// Content: "Suggest context-aware academic paper writing enhancements for selected text.",
21+
// Content: "Suggest context-aware academic paper writing enhancements for the selected text.",
2222
// IsUserPrompt: false,
2323
// },
2424
{
2525
Id: "2",
2626
CreatedAt: timestamppb.New(time.Time{}),
2727
UpdatedAt: timestamppb.New(time.Time{}),
28-
Title: "Review (Powered by XtraMCP)",
29-
Content: "Review my paper and identify issues",
28+
Title: "Search Relevant Papers (Powered by XtraMCP)",
29+
Content: "First, understand my paper and extract the key ideas into an optimized query to find papers that are relevant to my work. Then search for relevant papers to read.\n\nOptional Args:\ntop_k: 10\nStart Date: None (e.g. 2018-12-31)\nEnd Date: None (e.g. 2025-12-31)",
3030
IsUserPrompt: false,
3131
},
3232
{
3333
Id: "3",
3434
CreatedAt: timestamppb.New(time.Time{}),
3535
UpdatedAt: timestamppb.New(time.Time{}),
36-
Title: "Find Relevant Papers (Powered by XtraMCP)",
37-
Content: "Find me relevant papers to read",
36+
Title: "Paper Review (Powered by XtraMCP)",
37+
Content: "Call review_paper and evaluate my paper.\n\nOptional Args:\nTarget Venue: None (e.g. ICML, NeurIPS, CVPR)\nSeverity Level (blocker | major | minor | nit): Major\nSpecific Sections (default: entire paper): None (e.g. Abstract, Results, <section name in paper>)",
38+
IsUserPrompt: false,
39+
},
40+
{
41+
Id: "4",
42+
CreatedAt: timestamppb.New(time.Time{}),
43+
UpdatedAt: timestamppb.New(time.Time{}),
44+
Title: "Verify Citations (Powered by XtraMCP)",
45+
Content: "Call verify_citations to check the validity of all citations in my paper and identify any potential issues such as incorrect formatting, missing information, or inaccurate references.",
46+
IsUserPrompt: false,
47+
},
48+
{
49+
Id: "5",
50+
CreatedAt: timestamppb.New(time.Time{}),
51+
UpdatedAt: timestamppb.New(time.Time{}),
52+
Title: "Deep Research (Powered by XtraMCP)",
53+
Content: "First, understand my paper and extract the key ideas into an optimized query. Do deep research and compare my papers against others.",
54+
IsUserPrompt: false,
55+
},
56+
{
57+
Id: "6",
58+
CreatedAt: timestamppb.New(time.Time{}),
59+
UpdatedAt: timestamppb.New(time.Time{}),
60+
Title: "Online Research (Powered by XtraMCP)",
61+
Content: "Understand my paper and run online search to find the latest papers related to my work.",
3862
IsUserPrompt: false,
3963
},
40-
// {
41-
// Id: "4",
42-
// CreatedAt: timestamppb.New(time.Time{}),
43-
// UpdatedAt: timestamppb.New(time.Time{}),
44-
// Title: "Deep Research (Powered by XtraMCP)",
45-
// Content: "Do deep research and compare my papers against others",
46-
// IsUserPrompt: false,
47-
// },
4864
}
4965

5066
func (s *UserServer) ListPrompts(

webapp/_webapp/src/components/message-entry-container/tools/xtramcp/review-paper.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ export const ReviewPaperCard = ({ functionName, message, preparing, animated }:
140140
<span className="font-medium">Filtered:</span> "{result.metadata.severity_threshold}" and above
141141
</div>
142142
)}
143-
{result.metadata.sections_to_review && (
143+
{result.metadata.sections_reviewed && (
144144
<div>
145-
<span className="font-medium">Sections reviewed:</span> {formatArray(result.metadata.sections_to_review)}
145+
<span className="font-medium">Sections reviewed:</span> {formatArray(result.metadata.sections_reviewed)}
146146
</div>
147147
)}
148148
</div>

0 commit comments

Comments
 (0)