def to_tool_result_message(self, result: str) -> dict[str, Any]:
        """
        Creates a tool result message based on the result of the function execution.

        Args:
            result (str): The result of the tool execution.

        Returns:
            dict[str, Any]: A dictionary representing the tool result message.
        """
        return {
            "role": "tool",
            "tool_call_id": self.tool_call_id,
            "name": self.function_name,
            "content": result,
        }

        Creates a tool result message based on the result of the function execution.

        Args:
            result (str): The result of the tool execution.

        Returns:
            dict[str, Any]: A dictionary representing the tool result message.
        
ai/integrations/litellm/src/unitycatalog/ai/litellm/utils.py