serena.tools.query_project_tools#
Source code: serena/tools/query_project_tools.py
- class ListQueryableProjectsTool(agent)[source]#
Bases:
Tool,ToolMarkerOptional,ToolMarkerDoesNotRequireActiveProjectTool for listing all projects that can be queried by the QueryProjectTool.
- Parameters:
agent (SerenaAgent)
- class QueryProjectTool(agent)[source]#
Bases:
Tool,ToolMarkerOptional,ToolMarkerDoesNotRequireActiveProjectTool for querying external project information (i.e. information from projects other than the current one), by executing a read-only tool.
- Parameters:
agent (SerenaAgent)
- apply(project_name, tool_name, tool_params_json)[source]#
Queries a project by executing a read-only Serena tool. The tool will be executed in the context of the project. Use this to query information from projects other than the activated project.
- Parameters:
project_name (str) – the name of the project to query (or root path)
tool_name (str) – the name of the tool to execute in the other project. The tool must be read-only.
tool_params_json (str) – the parameters to pass to the tool, encoded as a JSON string
- Return type:
str