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
Copy file name to clipboardexpand all lines: client/agents/compliai/config.js
+112-69
Original file line number
Diff line number
Diff line change
@@ -61,8 +61,8 @@ Extract and read the full content from a webpage, PDF, DOCX, or any multimedia o
61
61
"toolSpec": {
62
62
"name": "ecfr",
63
63
"description": `
64
-
Access the Electronic Code of Federal Regulations (eCFR) API to retrieve regulatory information. This tool provides a direct interface to the official eCFR API endpoints.
65
-
64
+
Access the Electronic Code of Federal Regulations (eCFR) API to retrieve regulatory information. The eCFR contains the official codified text of federal regulations currently in effect.
65
+
66
66
WHEN TO USE THIS TOOL:
67
67
- Use this tool FIRST for ANY questions about current federal regulatory requirements or definitions
68
68
- Reach for this tool IMMEDIATELY when users ask "what is the law/regulation on X?"
@@ -74,39 +74,71 @@ Extract and read the full content from a webpage, PDF, DOCX, or any multimedia o
74
74
- Check this tool when analyzing regulatory compliance questions
75
75
- Turn to this tool for finding legal definitions within regulations
76
76
- Combine with the Federal Register tool to get both current regulations and regulatory history
77
-
78
-
MULTI-STEP RESEARCH APPROACH:
79
-
For complex regulatory questions, use a structured research process:
80
-
1. Begin by identifying the relevant CFR title based on the subject matter (e.g., Title 40 for environmental regulations)
81
-
2. Use the structure endpoint to understand the organization of a title and its parts
82
-
3. Navigate from higher levels (title) to more specific levels (part, section) as needed
83
-
4. For citation-based queries, use the ancestry endpoint to locate the specific provision
84
-
5. Retrieve the full XML of relevant parts to analyze complete regulatory context
85
-
6. Compare the same regulation across different dates to understand changes over time
86
-
7. Use the titles endpoint to check recency and ensure you're working with up-to-date regulations
87
-
8. For historical research, use specific dates to retrieve past versions of regulatory text
88
-
9. When analyzing related provisions, examine the broader part or subpart, not just individual sections
89
-
10. Cross-reference eCFR findings with Federal Register documents to understand regulatory intent and history
90
-
77
+
78
+
MULTI-STEP RESEARCH APPROACH - CRITICAL:
79
+
1. ALWAYS START WITH THE SEARCH ENDPOINTS to identify relevant content and avoid hallucinations
80
+
- Begin with "/search/v1/results" to find matching sections and get their exact IDs
81
+
- Use "/search/v1/counts/titles" to identify which titles contain relevant content
82
+
- Only after identifying specific content through search should you access versioner endpoints
83
+
84
+
2. For exploring regulatory structure:
85
+
- First use "/admin/v1/agencies.json" to identify relevant agencies and their CFR references
86
+
- Then use "/versioner/v1/titles.json" to get title information and current dates
87
+
- Only then navigate to specific title structures or content
88
+
89
+
3. For specific regulatory text:
90
+
- First confirm the title, part, and section exist via search
91
+
- Then use ancestry or structure endpoints to validate the hierarchy
92
+
- Finally retrieve full content with the correct identifiers
93
+
94
+
4. For date-based research:
95
+
- Always check "/versioner/v1/titles.json" to get valid date ranges
96
+
- Never use future dates or invalid dates in requests
97
+
- Use actual dates from the titles endpoint to ensure data exists for that point in time
98
+
99
+
5. Additional steps for thorough research:
100
+
- Compare the same regulation across different dates to understand changes over time
101
+
- When analyzing related provisions, examine the broader part or subpart, not just individual sections
102
+
- Cross-reference eCFR findings with Federal Register documents for regulatory intent and history
@@ -232,22 +277,6 @@ Extract and read the full content from a webpage, PDF, DOCX, or any multimedia o
232
277
"issue_date[gte]": {
233
278
"type": "string",
234
279
"description": "Content added on or after issue date (YYYY-MM-DD)"
235
-
},
236
-
"last_modified_after": {
237
-
"type": "string",
238
-
"description": "Content modified after date (YYYY-MM-DD)"
239
-
},
240
-
"last_modified_on_or_after": {
241
-
"type": "string",
242
-
"description": "Content modified on or after date (YYYY-MM-DD)"
243
-
},
244
-
"last_modified_before": {
245
-
"type": "string",
246
-
"description": "Content modified before date (YYYY-MM-DD)"
247
-
},
248
-
"last_modified_on_or_before": {
249
-
"type": "string",
250
-
"description": "Content modified on or before date (YYYY-MM-DD)"
251
280
}
252
281
}
253
282
}
@@ -262,30 +291,44 @@ Extract and read the full content from a webpage, PDF, DOCX, or any multimedia o
262
291
"name": "federalRegister",
263
292
"description": `
264
293
Access the Federal Register API to retrieve regulatory documents and information. The Federal Register is the official journal of the U.S. government that contains federal agency regulations, proposed rules, public notices, executive orders and other presidential documents.
265
-
294
+
266
295
WHEN TO USE THIS TOOL:
267
-
- Use this tool FIRST for ANY questions about federal regulations, rules, notices, or executive orders
268
-
- Use whenever a user asks about recent government actions, policy changes, or regulatory updates
269
-
- Reach for this tool LIBERALLY to find authoritative information from government sources
270
-
- Use to AUGMENT search results with official regulatory information
271
-
- Use when asked about specific agencies' recent actions or publications
272
-
- Use to find detailed information about executive orders, including their full text
273
-
- Check this tool PROACTIVELY when answering questions about regulated industries or activities
274
-
- Use when seeking information about the regulatory process or timeline for a particular rule
275
-
- Combine with the eCFR tool for comprehensive regulatory research
276
-
277
-
MULTI-STEP RESEARCH APPROACH:
278
-
For complex regulatory questions, use a structured research process:
279
-
1. Begin with a broad search to identify relevant documents and agencies
280
-
2. Use the facets endpoint to understand the distribution of documents by agency, type, or date
281
-
3. Narrow your search with more specific parameters based on initial findings
282
-
4. Retrieve full documents for the most relevant results
283
-
5. For regulatory history, search for related documents using RIN numbers or docket IDs
284
-
6. When analyzing a regulatory area, check both final rules and proposed rules
285
-
7. For comprehensive analysis, combine Federal Register searches with eCFR lookups
286
-
8. Use public inspection documents to get early access to soon-to-be-published regulations
287
-
9. Check both current and historical documents to trace regulatory evolution
288
-
10. Always verify findings with the most authoritative and recent sources
296
+
- Use this tool FIRST for ANY questions about current federal regulatory requirements or definitions
297
+
- Reach for this tool IMMEDIATELY when users ask "what is the law/regulation on X?"
298
+
- Use PROACTIVELY to find specific regulatory language, definitions, and requirements
299
+
- Reference this tool to verify regulatory citations (e.g., "40 CFR 60.4")
300
+
- Use when a user needs the EXACT TEXT of a current regulation
301
+
- Consult this resource for technical regulatory standards and specifications
302
+
- Use to determine jurisdictional boundaries in regulatory matters
303
+
- Check this tool when analyzing regulatory compliance questions
304
+
- Turn to this tool for finding legal definitions within regulations
305
+
- Combine with the Federal Register tool to get both current regulations and regulatory history
306
+
307
+
MULTI-STEP RESEARCH APPROACH:
308
+
1. ALWAYS START WITH THE SEARCH ENDPOINTS to identify relevant content and avoid hallucinations
309
+
- Begin with "/search/v1/results" to find matching sections and get their exact IDs
310
+
- Use "/search/v1/counts/titles" to identify which titles contain relevant content
311
+
- Only after identifying specific content through search should you access versioner endpoints
312
+
313
+
2. For exploring regulatory structure:
314
+
- First use "/admin/v1/agencies.json" to identify relevant agencies and their CFR references
315
+
- Then use "/versioner/v1/titles.json" to get title information and current dates
316
+
- Only then navigate to specific title structures or content
317
+
318
+
3. For specific regulatory text:
319
+
- First confirm the title, part, and section exist via search
320
+
- Then use ancestry or structure endpoints to validate the hierarchy
321
+
- Finally retrieve full content with the correct identifiers
322
+
323
+
4. For date-based research:
324
+
- Always check "/versioner/v1/titles.json" to get valid date ranges
325
+
- Never use future dates or invalid dates in requests
326
+
- Use actual dates from the titles endpoint to ensure data exists for that point in time
327
+
328
+
5. Additional steps for thorough research:
329
+
- Compare the same regulation across different dates to understand changes over time
330
+
- When analyzing related provisions, examine the broader part or subpart, not just individual sections
331
+
- Cross-reference eCFR findings with Federal Register documents for regulatory intent and history
0 commit comments