Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions codebase_rag/tools/semantic_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ async def semantic_search_functions(query: str, top_k: int = 5) -> str:

return response

return Tool(semantic_search_functions, name=td.AgenticToolName.SEMANTIC_SEARCH)
return Tool(semantic_search_functions, name=td.AgenticToolName.SEMANTIC_SEARCH, description=td.SEMANTIC_SEARCH)


def create_get_function_source_tool() -> Tool:
Expand All @@ -153,4 +153,4 @@ async def get_function_source_by_id(node_id: int) -> str:

return cs.MSG_SEMANTIC_SOURCE_FORMAT.format(id=node_id, code=source_code)

return Tool(get_function_source_by_id, name=td.AgenticToolName.GET_FUNCTION_SOURCE)
return Tool(get_function_source_by_id, name=td.AgenticToolName.GET_FUNCTION_SOURCE, description=td.GET_FUNCTION_SOURCE)