BrowserGym
                                
                                
                                
                                    BrowserGym copied to clipboard
                            
                            
                            
                        Tool Describe for AbstractActionSet
to be compatible with the tool API and MCP, let's make sure the action_set also provide a tool_describe function that returns a json compatible with standard tool API.
class AbstractActionSet(ABC):
    @abstractmethod
    def tool_describe(self, with_long_description: bool = True, with_examples: bool = True) -> str:
        """
        Returns json describing the set of actions compatible with MCP.
        """
...