You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This guide details how to work with issues within Crashlytics. The agent should read this guide before prioritizing issues or presenting issue data to the user.
"guides the coding agent through choosing a Firebase App ID in the current project",
10
-
},
11
-
async(uri)=>{
12
-
return{
13
-
contents: [
14
-
{
15
-
uri,
16
-
type: "text",
17
-
text: `
3
+
exportconstRESOURCE_CONTENT=`
18
4
### Firebase App ID
19
5
The Firebase App ID is used to identify a mobile or web client application to Firebase back end services such as Crashlytics or Remote Config. Use the information below to find the developer's App ID.
### Instructions for Working with Firebase Crashlytics Tools
5
+
6
+
Only ask the user one question at a time. Do not proceed without user instructions. Upon receiving user instructions, refer to the relevant resources for guidance.
7
+
8
+
Use the \`firebase_read_resources\` tool to access the following guides.
9
+
10
+
1. [Firebase App Id Guide](firebase://guides/app_id)
11
+
This guide provides crucial instructions for obtaining the application's App Id which is required for all API calls.
This guide details how to work with issues within Crashlytics. The agent should read this guide before prioritizing issues or presenting issue data to the user.
This guide provides instructions on investigating the root causes of crashes and exceptions reported in Crashlytics issues.
21
+
22
+
### Check That You Are Connected
23
+
24
+
Verify that you can read the app's Crashlytics data by getting the topVersions report. This report will tell you which app versions have the most events.
25
+
a. Call the \`firebase_get_environment\` tool if you need to find the app_id.
26
+
b. Call the \`crashlytics_get_report\` tool to read the \`topVersions\` report.
27
+
c. If you haven't read the reports guide, then the tool will include it in the response. This is OK. Simply call the tool again.
28
+
d. Help the user resolve any issues that arise when trying to connect.
29
+
30
+
After confirming you can access Crashlytics, inquire about the desired actions. Your capabilities include:
31
+
32
+
- Reading Crashlytics reports.
33
+
- Investigating bug reports using Crashlytics event data.
34
+
- Proposing code changes to resolve identified bugs.
35
+
`.trim();
36
+
37
+
exportconstcrashlytics_connect=resource(
38
+
{
39
+
uri: "firebase://guides/crashlytics/connect",
40
+
name: "crashlytics_connect_guide",
41
+
title: "Firebase Crashlytics Connect Guide",
42
+
description: "Guides the coding agent to connect to Firebase Crashlytics.",
"Guides the coding agent when working with Crashlytics issues, including prioritization rules and procedures for diagnosing and fixing crashes. ",
10
-
},
11
-
async(uri)=>{
12
-
return{
13
-
contents: [
14
-
{
15
-
uri,
16
-
type: "text",
17
-
text: `
3
+
constRESOURCE_CONTENT=`
18
4
### How to Display Issues
19
5
20
6
When displaying a list of issues, favor the following format:
@@ -28,11 +14,11 @@ When displaying a list of issues, favor the following format:
28
14
29
15
Follow these steps to fetch issues and prioritize them.
30
16
31
-
1. Use the 'crashlytics_get_top_issues' tool to fetch up to 20 issues.
17
+
1. Use the 'crashlytics_get_report' tool to fetch the 'topIssues' report.
32
18
1a. Analyze the user's query and apply the appropriate filters. Use the information in the [Firebase Crashlytics Reports Guide](firebase://guides/crashlytics/reports) to further construct appropriate report requests.
33
19
1b. If the user asks for crashes, then set the *issueErrorType* filter to *FATAL*.
34
20
1c. If the user asks about a particular time range, then set both the *intervalStartTime* and *intervalEndTime*.
35
-
2. Use the 'crashlytics_get_top_versions' tool to fetch the top versions for this app.
21
+
2. Use the 'crashlytics_get_report' tool to fetch the 'topVersions' for this app.
36
22
3. If the user instructions include statements about prioritization, use those instructions.
37
23
4. If the user instructions do not include statements about prioritization, then prioritize the returned issues using the following criteria:
38
24
4a. The app versions for the issue include the most recent version of the app.
@@ -41,9 +27,19 @@ Follow these steps to fetch issues and prioritize them.
41
27
5. Return the top 5 issues, with a brief description each in a numerical list with the recommended format.
42
28
5a. Describe the rationale for the prioritization order.
43
29
6. Ask the user if they would like to diagnose and fix any of the issues presented before taking any action.
44
-
`.trim(),
45
-
},
46
-
],
30
+
`.trim();
31
+
32
+
exportconstcrashlytics_issues=resource(
33
+
{
34
+
uri: "firebase://guides/crashlytics/issues",
35
+
name: "crashlytics_issues_guide",
36
+
title: "Firebase Crashlytics Issues Guide",
37
+
description:
38
+
"Guides the coding agent when working with Crashlytics issues, including prioritization rules and procedures for diagnosing and fixing crashes. ",
0 commit comments