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: packages/web/src/features/chat/agent.ts
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -200,19 +200,19 @@ When you have sufficient context, output your answer as a structured markdown re
200
200
**Required Response Format:**
201
201
- **CRITICAL**: You MUST always prefix your answer with a \`${ANSWER_TAG}\` tag at the very top of your response
202
202
- **CRITICAL**: You MUST provide your complete response in markdown format with embedded code references
203
-
- **CODE REFERENCE REQUIREMENT**: Whenever you mention, discuss, or refer to ANY specific part of the code (files, functions, variables, methods, classes, imports, etc.), you MUST immediately follow with a code reference using the format \`${fileReferenceToString({fileName: 'filename'})}\` or \`${fileReferenceToString({fileName: 'filename',range: {startLine: 1,endLine: 10}})}\` (where the numbers are the start and end line numbers of the code snippet). This includes:
204
-
- Files (e.g., "The \`auth.ts\` file" → must include \`${fileReferenceToString({fileName: 'auth.ts'})}\`)
205
-
- Function names (e.g., "The \`getRepos()\` function" → must include \`${fileReferenceToString({fileName: 'auth.ts',range: {startLine: 15,endLine: 20}})}\`)
206
-
- Variable names (e.g., "The \`suggestionQuery\` variable" → must include \`${fileReferenceToString({fileName: 'search.ts',range: {startLine: 42,endLine: 42}})}\`)
207
-
- Code patterns (e.g., "using \`file:\${suggestionQuery}\` pattern" → must include \`${fileReferenceToString({fileName: 'search.ts',range: {startLine: 10,endLine: 15}})}\`)
203
+
- **CODE REFERENCE REQUIREMENT**: Whenever you mention, discuss, or refer to ANY specific part of the code (files, functions, variables, methods, classes, imports, etc.), you MUST immediately follow with a code reference using the format \`${fileReferenceToString({repo: 'repository',path: 'filename'})}\` or \`${fileReferenceToString({repo: 'repository',path: 'filename',range: {startLine: 1,endLine: 10}})}\` (where the numbers are the start and end line numbers of the code snippet). This includes:
204
+
- Files (e.g., "The \`auth.ts\` file" → must include \`${fileReferenceToString({repo: 'repository',path: 'auth.ts'})}\`)
205
+
- Function names (e.g., "The \`getRepos()\` function" → must include \`${fileReferenceToString({repo: 'repository',path: 'auth.ts',range: {startLine: 15,endLine: 20}})}\`)
206
+
- Variable names (e.g., "The \`suggestionQuery\` variable" → must include \`${fileReferenceToString({repo: 'repository',path: 'search.ts',range: {startLine: 42,endLine: 42}})}\`)
208
207
- Any code snippet or line you're explaining
209
208
- Class names, method calls, imports, etc.
210
209
- Some examples of both correct and incorrect code references:
- Be clear and very concise. Use bullet points where appropriate
217
217
- Do NOT explain code without providing the exact location reference. Every code mention requires a corresponding \`${FILE_REFERENCE_PREFIX}\` reference
218
218
- If you cannot provide a code reference for something you're discussing, do not mention that specific code element
@@ -221,7 +221,7 @@ When you have sufficient context, output your answer as a structured markdown re
221
221
**Example answer structure:**
222
222
\`\`\`markdown
223
223
${ANSWER_TAG}
224
-
Authentication in Sourcebot is built on NextAuth.js with a session-based approach using JWT tokens and Prisma as the database adapter ${fileReferenceToString({fileName: 'auth.ts',range: {startLine: 135,endLine: 140}})}. The system supports multiple authentication providers and implements organization-based authorization with role-defined permissions.
224
+
Authentication in Sourcebot is built on NextAuth.js with a session-based approach using JWT tokens and Prisma as the database adapter ${fileReferenceToString({repo: 'github.com/sourcebot-dev/sourcebot',path: 'auth.ts',range: {startLine: 135,endLine: 140}})}. The system supports multiple authentication providers and implements organization-based authorization with role-defined permissions.
0 commit comments