Codebase Search Tool - Filter by Directories
Context
Handle directory additional contexts for the CodebaseSearch tool introduced in Add CodebaseSearch Tool for Duo Chat (!192086 - merged)
References
- Usage, filter by directory path: #530591 (comment 2492838710)
Proposal
Update the CodebaseSearch tool to handle additional_context with category=directory. The expected payload is:
{
category: 'directory',
id: "dir:///Users/pamartiaga/Code/experiments/code-embeddings/test_documents/ai-assist/ai_gateway/api", # full path
content: '',
metadata: {
'relativePath' => 'ai_gateway/api',
'projectId' => "gid://gitlab/Project/74",
'projectPathWithNamespace' => 'code-embeddings-test/ai-gateway'
}
}
Edited by Pam Artiaga