serena.tools.config_tools#


class OpenDashboardTool(agent)[source]#

Bases: Tool, ToolMarkerOptional, ToolMarkerDoesNotRequireActiveProject

Opens the Serena web dashboard in the default web browser. The dashboard provides logs, session information, and tool usage statistics.

Parameters:

agent (SerenaAgent)

apply()[source]#

Opens the Serena web dashboard in the default web browser.

Return type:

str

class ActivateProjectTool(agent)[source]#

Bases: Tool, ToolMarkerDoesNotRequireActiveProject

Activates a project based on the project name or path.

Parameters:

agent (SerenaAgent)

apply(project, session_id)[source]#

Activates the project with the given name or path.

Parameters:
  • project (str) – the name of a registered project to activate or a path to a project directory

  • session_id (str)

Return type:

str

class RemoveProjectTool(agent)[source]#

Bases: Tool, ToolMarkerDoesNotRequireActiveProject, ToolMarkerOptional

Removes a project from the Serena configuration.

Parameters:

agent (SerenaAgent)

apply(project_name)[source]#

Removes a project from the Serena configuration.

Parameters:

project_name (str) – Name of the project to remove

Return type:

str

class GetCurrentConfigTool(agent)[source]#

Bases: Tool

Prints the current configuration of the agent, including the active and available projects, tools, contexts, and modes.

Parameters:

agent (SerenaAgent)

apply()[source]#

Print the current configuration of the agent, including the active and available projects, tools, contexts, and modes.

Return type:

str